4 ms·
Zsh completion with the menu style can do that, git checkout <tab> and you get a browseable list of branch names.
by 0x0 12y ago
Zsh completion with the menu style can do that, git checkout <tab> and you get a browseable list of branch names.
- agumonkey 12y agoor dmenu
- dhamidi 12y agoFunnily enough, I recently implemented something akin to percol: https://github.com/dhamidi/tmenu https://github.com/dhamidi/tmenu It actually tries to be dmenu for the terminal.
- agumonkey 12y agoGlorious, I was about to start a similar thing (in python though). Time to play with your toy. ps: I'd add a readline/inputrc alias for '| tmenu '
- dhamidi 12y agoWould you mind sharing what that alias would look like and do? I can only imagine it appending the string "| tmenu" to the current line, eventually pressing Return for the user as well.
- agumonkey 12y ago$ bind '"\C-L": "\| less -S \C-j"' Warning: seems like GNU readline isn't case sensitive so C-L === C-l thus, in this example, C-l default behavior (clear screen?) is overridden. I didn't RTFM so trust yourself.
- agumonkey 12y agoAlso, a redditor told me about slmenu (dmenu parody for shell) http://www.reddit.com/r/linux/comments/283ziw/tmenu_dmenu_for_ttyshell/ci7cat1 http://www.reddit.com/r/linux/comments/283ziw/tmenu_dmenu_fo...
- dhamidi 12y agoUpdate: the README now describes the available key bindings and gives more usage examples.
- 0x0 12y agoGoogle says it's an x11 app? I prefer something that works on random ssh connections and is more "inline" to the current command context
- agumonkey 12y agoHa what a moron I am. The funniest part is that I was ranting on #python about the need for a tui only version of that. ps: even funnier, someone just posted a personal project doing just that.