Skip to content

Conversation

@NextMerge
Copy link

@NextMerge NextMerge commented Dec 23, 2024

Using v makes mappings work in visual and select mode. Using x instead of v makes mappings work only in visual mode which is in my opinion correct. Select mode is mostly used with snippets and current mappings might interfere with them.

@feoh
Copy link
Collaborator

feoh commented Dec 29, 2024

Hi!

What does this PR accomplish and why is this desirable? Could you please add some flavor text so I can understand what I'm merging?

@kuator
Copy link

kuator commented Jan 5, 2025

Hi!

What does this PR accomplish and why is this desirable? Could you please add some flavor text so I can understand what I'm merging?

Using v makes mappings work in visual and select mode. Using x instead of v makes mappings work only in visual mode which is in my opinion correct. Select mode is mostly used with snippets and current mappings might interfere with them.

@feoh
Copy link
Collaborator

feoh commented Jan 7, 2025

@iton0 @dam9000 @benfleis Hi all I have zero opinions on this. What do you think?

Note that in order to change a keymap like this I'd want to see pretty strong feelings from most folks, otherwise we can leave things as they are.

Thanks and apologies for picking on you all. I REALLY appreciate the help!!!!!!

@iton0
Copy link
Contributor

iton0 commented Jan 7, 2025

Follow the keymap setup recommended by gitsigs.nvim. If no recommendation is provided, keep the default settings.

@feoh
Copy link
Collaborator

feoh commented Jan 7, 2025

Thanks all!

Sorry @NextMerge I'm afraid your PR isn't a good fit for this project at this time. Feel free to do this in your fork!

@feoh feoh closed this Jan 7, 2025
@NextMerge
Copy link
Author

NextMerge commented Jan 7, 2025

For some reason I wasn't getting notifications from this PR until just now.

I opened this for the reasons @kuator mentioned. Depending on which leader key you set those mappings can't be used in select mode. The leader key set right now in the config is <space>, and attempting to use the gitsigns binds in select mode just results in inserting a space.

With that said I agree with @iton0. I'll see if gitsigns would want to update their recommended maps first.

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

Successfully merging this pull request may close these issues.

4 participants