Feature proposition: Command to edit dirty/staged file
sodapopcan opened this issue · 1 comments
sodapopcan commented
I'm looking for something akin to :buffer
for dirty and staged files.
Given this :G
window:
Head: ticket-90210
Push: origin/ticket-90210
Help: g?
Untracked (1)
? bar.txt
Unstaged (2)
M baz.txt
M foo.txt
Staged (1)
A foo.txt
...the hypothetical command :Gbuffer
(this is undoubtedly the wrong name since one can wipe a dirty/staged buffer), typing :Gbuffer<C-D>
would produce:
bar.txt baz.txt foo.txt
IE, fuzzy-complete all the files Fugitive currently "cares" (probably the wrong word) about.
What do you think? Is this something that would be at home in Fugitive or no?
odnoletkov commented
There is already (undocumented?) feature to force tab-completion to target revisions: 8c29bf1
Perhaps there could be a similar prefix to target dirty files, let's say <
. so you can :Gedit <
+ tab