Let's rewrite all major userspace tools this way, or maybe use emacs ? I don't know.
ps: not sarcastic at all.
ps: not sarcastic at all.
git checkout $(git branch | percol)
to select the branch name interactively from a menu. How would you do that in Vim or Emacs?https://github.com/dhamidi/tmenu
It actually tries to be dmenu for the terminal.
ps: I'd add a readline/inputrc alias for '| tmenu '
$ 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.http://www.reddit.com/r/linux/comments/283ziw/tmenu_dmenu_fo...
ps: even funnier, someone just posted a personal project doing just that.
Use Magit, which is probably the best Git client anyway.
Note that most likely git.el is not on your load-path. After it is loaded, you can use M-x git-status to interactively stage, diff and commit files. In the git-status buffer you can checkout a branch with C-c C-o. If helm is installed, you'll get something similar to percol right in Emacs.