On Sun, Dec 28, 2008 at 9:27 PM, Philip Ganchev <phil.ganc...@gmail.com> wrote: > On Sun, Dec 28, 2008 at 4:04 PM, Sy Ali <sy1...@gmail.com> wrote: > I am usually pointed to the command 'showkey', which for me generates > the ascii code of ^[[H for Home. I don't know how to use it with > 'bind'.
That points me in the right direction. I also found some notes that talk about using xev. I'll re-read some docs and explore some more. >> Also, when pressing home, I am expecting the current string to be >> remembered and for me to be shown the previous command. > ... > > .. In Fish, UpArrow searches through the history of executed commands for > a string that contains the current string as a substring. ... I noticed this behaviour. It's not what I'm used to, but I like the idea and I'll get used to it. >> ... I press control-c to kill what I'm doing. Then >> I press home to look through my history. It still goes through its >> searching mode. ... > > This works for me as expected, assuming you mean UpArrow instead of > 'home'. (Home also works as expected.) What terminal do you use? What > are the contents of your "TERM" and "LC_ALL" variables? Yes, I meant uparrow >> ... I press control-c to kill what I'm doing. Then >> I press <UpArrow> to look through my history. It still goes through its >> searching mode. I have to press control-c then enter to be able to >> use up/down to go through history. Is this normal? > > This works for me as you described After reading that, I re-tested. It works for me now too! I don't get it. After installing I did not reboot. I did reboot recently, so maybe there were some environment settings or such which somehow confused fish? I'm not sure how to reproduce this problem now, and I'm not sure what may have changed in my setup recently to have caused or fixed this issue. If this happens again, I'll report back. Some of problem 2 remains: On a blank line (new shell), I do this: <UpArrow> (previous command) <control-c> <UpArrow> (second-to-previous command) I am expecting to see the previous command. I am currently forced to do this: <UpArrow> (previous command) <control-c> <Enter> <UpArrow> (previous command) I very regularly press control-c to blank the line, and I want to avoid needing to press enter. Instead of control-c, I could use control-u but that's not optimal as it will begin to insert junk in my clipboard, and it's not fast or easy to do with one hand. >> problem 3: >> > ... >> when viewing the command history and pressing <home> it wipes out the line. >> >> I am expecting it to move my cursor to the beginning of the line. > ... > > This works for me as expected. Thanks. I expect that this is a simple binding issue. I'll do some work on this right now. ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users