-
-
Notifications
You must be signed in to change notification settings - Fork 607
Add stage_item/unstage_item to its own key_config #909
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
Comments
That makes sense 👍 |
I would like to work on that 🙂 |
Feature requested by Issue gitui-org#909.
Feature requested by Issue gitui-org#909.
I've opened a PR to implement this feature. Please let me know if it needs adjustments. |
@alessandroasm thanks for approaching this. now that I look into it I am wondering if we have any practical reason to separate staging/unstaging into separate keys? we only ever have one fo the two options anyway so my proposal would be to have one new @merikan your thoughts? |
@merikan next question: this new key should probably also apply instead of enter for staging hunks, right? |
@extrawurst |
* Add specific key bindings to stage / unstage items Feature requested by Issue #909. * Updating Help popup with stage / unstage keys * Merging staging and unstaging into a single `stage_unstage_item` key * Add/remove hunk now use the `stage_unstage_item` key
Is your feature request related to a problem? Please describe.
It's not a problem but would be an improvement to avoid misunderstandings
Describe the solution you'd like
I wanted to remap the stage_item/unstage_item to
Spacebar
instead ofEnter
, so I changedto
and it works great.
I have now changed the
Enter
key toSpace
but I do not know if it affects any other function that also uses theEnter
keybinding.It would be awesome if we had separate key-bindings for
stage_item
andunstage_item
and they can of course be linked toEnter
by default.Describe alternatives you've considered
I have looked around in the code and can see that
Enter
is used in several places, so there are probably more places for improvements.For me,
Space
is great to toggle on/off, andEnter
is a great fit for confirming an operation, but that's just my personal preference. 😉Thx for an awesome project 👍
The text was updated successfully, but these errors were encountered: