fugit2.nvim icon indicating copy to clipboard operation
fugit2.nvim copied to clipboard

feature: Mark all changes in a directory for a commit

Open sboesebeck opened this issue 1 year ago • 3 comments

Did you check the docs?

  • [X] I have read all the docs

Is your feature request related to a problem? Please describe.

When opening Fugit2 and you have a lot of changes it would be great, if hitting space on a directory would add all changes in that directory to the commit (similar as lazygit does it)

Describe the solution you'd like

see above

Describe alternatives you've considered

not sure about alternatives though. Maybe another keybinding.

Additional context

No response

sboesebeck avatar Mar 24 '24 20:03 sboesebeck

Tips: You can toggle visual mode, select all file under one directory, then press "-", "space" or "s" for staging.

This way is more vim-like motion and you can see what file you have selected. And you don't have to move all the way up to the parent directory to stage it.

https://github.com/SuperBo/fugit2.nvim/assets/2666479/e25510ab-fd55-4527-98d6-6ae7e037b781

SuperBo avatar Mar 25 '24 05:03 SuperBo

Ah. yes, this is cool But not really what I meant: In your video, it would be a lot easier to just hit space fugit2 and all changes in that directory would be added. But visual mode is of course also helpful, as vimmotions work.

sboesebeck avatar Mar 25 '24 07:03 sboesebeck

@sboesebeck, I got your point, I think I can reuse the same visual staging code for this feature, please wait for my update

SuperBo avatar Mar 25 '24 16:03 SuperBo

@sboesebeck, implemented this feature on latest changes. Please test :D.

SuperBo avatar Jul 05 '24 11:07 SuperBo