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

Add ctrl left/right word navigation #5000

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JasonBrownDeveloper
Copy link

No description provided.

  I dedicate any and all copyright interest in this software to the
  public domain.  I make this dedication for the benefit of the public at
  large and to the detriment of my heirs and successors.  I intend this
  dedication to be an overt act of relinquishment in perpetuity of all
  present and future rights to this software under copyright law.
@PJungkamp
Copy link

Why would you do this?

map global prompt <c-right> <a-f>
map global prompt <c-left> <a-b>

If you want to change the default shipped with kakoune you should probably add a description with your argument and some clarification!

I needed to check whether control+arrow navigation is already supported in prompt mode, it really isn't there.
I'm in general pretty indifferent towards this change and don't really see the need.

@JasonBrownDeveloper
Copy link
Author

I'll check if your map covers what I want, I didn't realize prompt was a valid mode to target. Ctrl + arrow is a standard key pretty much everywhere. It's jarring when it doesn't work here.

@PJungkamp
Copy link

According to :doc keys everything but <c-g> and <c-c> should be covered by map. Maybe check out :doc modes to get an overview of map.

@krobelus
Copy link
Contributor

krobelus commented Jan 17, 2024

I think this change makes sense. Prompt mode emulates readline which also accepts this (as does pretty much every text field).

I'm in general pretty indifferent towards this change and don't really see the need.

I think it makes sense to either support none of <left> and <c-left>, or both. Same for a bunch of others like <c-a>/<home> etc.
I personally don't use arrow keys where I have readline bindings but I can see why people would want to - for consistency with the rest of the OS.

An interesting question is whether to support it in insert mode.
When I first started using Kakoune I was really thrown off by the lack of <c-w> in insert mode (which is supported by Vim).
I think I got used to it somehow, I don't think I ever added a mapping.

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.

None yet

3 participants