Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposition: Command to edit dirty/staged file #2330

Open
sodapopcan opened this issue Aug 21, 2024 · 1 comment
Open

Feature proposition: Command to edit dirty/staged file #2330

sodapopcan opened this issue Aug 21, 2024 · 1 comment

Comments

@sodapopcan
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants