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: Mark all changes in a directory for a commit #28

Open
1 task done
sboesebeck opened this issue Mar 24, 2024 · 3 comments
Open
1 task done

feature: Mark all changes in a directory for a commit #28

sboesebeck opened this issue Mar 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@sboesebeck
Copy link

Did you check the docs?

  • 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 sboesebeck added the enhancement New feature or request label Mar 24, 2024
@SuperBo
Copy link
Owner

SuperBo commented Mar 25, 2024

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.

Screen.Recording.2024-03-25.at.12.18.53.mov

@sboesebeck
Copy link
Author

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.

@SuperBo
Copy link
Owner

SuperBo commented Mar 25, 2024

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

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

No branches or pull requests

2 participants