Scm_breeze – enhancing your Git CLI workflow(github.com) |
Scm_breeze – enhancing your Git CLI workflow(github.com) |
Git always seems to be the focus of these "redesigns" because the commands are, granted, not intuitive. But is typing `gs` or `git c` better? Git's default API is documented, universally available and already in the muscle memory of most people.
[0] https://robots.thoughtbot.com/streamline-your-git-workflow-w...
$ ${tool} search ${pattern}
res1
res2
res3
# I'm interested in the first and last package names.
$ ${tool} install <grab mouse> <double-click res1> <shift-insert> <double-click res3> <shift-insert>
# On a side-note, this can also be done with tmux copy-mode by appending the
# results to a buffer, but I personally find that using the mouse is faster
# in this case.
Enumerating the results of the search and doing a '${tool} install %1 %3' would be a huge improvement. I once offered to add [1] such functionality to freebsd binary package manager, but nothing came out of it (perhaps for good reasons).$ $(tool) search $(pattern)
res1
res2
res3
# press arrow up, home, r= (`, end, `)
$ r = ( `$(tool) search $(pattern)`)
$ tool install r[1] r[3]
File numbering is already available via `git add -i`.
git add -i
u
1,9
<return>
q
And you get a more powerful tool, and you're using regular git.It would be incredible to have something with magit-like efficiency that could start up in an instant (unlike emacs). I'm aware of "tig", but it seems rather limited, unfortunately.
My favorite feature is that after a `gs` all the files listed are bound to sh variables $e1, $e2, etc.
Big thumbs up to the devs & thanks!