Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Proposal: Visual selection of lines to be staged #303

Open
anselstetter opened this issue Jan 13, 2025 · 3 comments
Open

Proposal: Visual selection of lines to be staged #303

anselstetter opened this issue Jan 13, 2025 · 3 comments

Comments

@anselstetter
Copy link

This project is getting better and better.
Thank you for your work on it. ❤️

Coming from Magit and using evil mode, I've used visual mode to highlight the lines I wanted to stage.
So after pressing s, everything highlighted was staged at once, without the need to individual select each line.

Did you consider something like this?

This was really convenient.

@altsem
Copy link
Owner

altsem commented Feb 3, 2025

Sorry for the late reply. Yes I think this should be in there!
I can't remember how lines are selected in evil-magit. But preferably we'd just copy the behaviour imo.

@altsem
Copy link
Owner

altsem commented Feb 4, 2025

Had a peek in Doom Emacs' Magit.

Reverse is bound to -
Revert is bound to _
v and V enter VISUAL LINE mode.

Whereas in gitu, v is reverse and V Revert.

I guess we may want to mimic those.

@anselstetter
Copy link
Author

Awesome. Nice to hear.

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

3 participants
@anselstetter @altsem and others