scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Expands d{number} to be dirname $e{number} #211

Closed JoeEnnever closed 7 years ago

ghthor commented 7 years ago

Considering the current plan for maintenance is going to be heavily focused on refactoring I'd rather not merge this feature addition at this time. But I'm curious about the use case that guided you to this feature, as it may be worth revisiting this in the future.

JoeEnnever commented 7 years ago

Ok, I'd be happy to re-submit this when the refactor is done.

I wrote this because I use pants as a build tool, where you end up operating on changed directories quite often. For example, if I have a changed file src/foo/Foo.scala, and want to recompile it with pants, I'd run

$ ./pants compile src/foo

With this change, if $e1 is set to Foo.scala, that becomes

$ exec_scmb_expand_args ./pants compile d1