Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

My dream command is

[somekey] + up

that scrolls through history sorted by frequency of use.



sort by: page size:

Yes, thank you.

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.

Great stuff!


Super awesome!

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.


* 'set -o vi' in bash lets me search my command history with the same keys as moving around vi

* git + sql scripts

* simplenote (notes across devices) Semi-automation of pieces of my job captured in these notes.

* zapier if I'm trying to connect two web apis.


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.

This is really good work. Any plans to support ncurse or something along those lines, so that I can arrow up through my command history?

See, what I want from my history is every command I have ever run, so that ctrl r can find anything I have done.

"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

"\e[A": history-search-backward

"\e[B": history-search-forward


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.

Awesome. I wrote another history tool called "list commands"

The idea is that: many commands are location-specific. When you type `lc`, it will only give you commands that were executed in that directory.

https://github.com/pconerly/lc-listcommands-bash

I would love to get some up/down arrow ability for `lc`. Right now I do a lot of:

$ lc | grep X


I just want to throw in that you can get that nice up-arrow-history in bash too. It's the first thing I put in a new bash environment:

  bind '"\e[A":history-search-backward'
  bind '"\e[B":history-search-forward'

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. :)


Example:

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


I use this in combination with FZF's ctrl-r command history which allows me to fuzzy search command history.

This would not allow me to

1) start typing a command;

2) look at or copy+paste stuff from the previous commands

I usually do my history search through history|grep.


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).

next

Legal | privacy