Also starting to type a command and using up-arrow to scroll through (I assume) endings of that command line that are in history. That's great too. But I often don't do, say,a do-release-upgrade (I use Kubuntu but prefer command line upgrade) within the time the command stays in history.
In addition to this, I think something that would help me a lot is being able to step back and forward through any history of commands that I'm experimenting with.
Feature request: up-arrow support (like bash shell has). IE: I want to reply the last command, or fix something in it (because I typed it wrong). Being able to up-arrow through my command history is something I use regularly on my normal command line, and would be cool to have here.
I was today years old when I learned about CTRL+R. I've always just done history | grep
Also, I use zsh which filters history when using up/down arrows to whatever you typed. So you can do "git" [up] [up] [up] to cycle through all recent git commands which is super useful.
I'm sure this exists in some form somewhere but something I really want is a way to pull up my command history numbered with a shortcut and then punch that number to run the last command than mindlessly hitting the up arrow for several seconds (why do we do this?). If anyone knows anything that has this functionality please share, thanks.
"By way of comparison, on my home PC I used a third-party command shell called 4DOS [...] It had a wonderful command line history mechanism: type part of a command, then press up-arrow."
Want in bash? Add to ~/.inputrc:
# up and down arrows do incremental history search
This looks like a neat idea but the use case seems very specific. I have always found history (which I always alias to “hh”) to be very useful, combined with !<number> to quickly execute previous commands. The README doesn’t do enough to explain exactly how to use it, besides 3 screenshots.
I really like how the search feature shows the frequency of each entry. I've thought before it would be cool to see the most used commands of some of the more experienced folks I work with, though ideally it would be slightly more generic than exact commands - i.e. Different arguments would count for the same command.
This is so much better than CTRL+R that I've bound the key combo (CTRL+R/F) to this. `history | grep` suffices in those rare cases where I need the original CTRL+R behaviour.
I tried binding the arrow keys first, but it turns out I sometimes give up in the middle of writing a command in favor of reusing one from recent history, for which I need the original arrow bindings.
Or ^Rpartofcommand to do an interactive history search.
This is a priceless feature, which, as I keep finding out, too many people do not know about, and they waste time faffing about pressing up and down, trying to find that one command their entered ten minutes ago. :)
Tip: Bash reverse search, because manually scrolling through your history is a nuisance.
How (OS X): CTRL+R, start typing a word from your command history. Press CTRL+R to cycle through matches, ENTER to execute, TAB to edit. If you want to add forward search to bash, you can re-map your key bindings in your bash profile with the following (maps to CTRL+T): bind "\C-t":forward-search-history
Wow, this is awesome! I'm just learning Lisp/Arc now, so this will be a very handy tool for me.
One quick suggestion...put a hook on the "onkeypress" event of the arc textarea for the up and down arrows, so that you can scroll backwards and forwards through the command history (which you could store in a javascript variable as a simple string array).
[somekey] + up
that scrolls through history sorted by frequency of use.
reply