jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
3.13k stars 109 forks source link

request support for custom arrow keys #95

Open I-Want-ToBelieve opened 3 years ago

I-Want-ToBelieve commented 3 years ago

For example, use j k i l instead of the default h j k l, and use h instead of i

jeffreytse commented 3 years ago

Hi @doublethinkio

Thanks for the request, currently I am busy, but I will try to settle it as soon as possible.

Thanks and regards

kitallen23 commented 3 years ago

Hi @jeffreytse. For when you have time to work on this: I feel as though the best way to go about this is to allow the user to "opt-out" of all default bindings, instead being able to map their own. I'm currently trying to set this up as a Colemak user and having a very difficult time.

jeffreytse commented 3 years ago

Hi @kitallen23

Thanks for the information and I will try to make it better.

Thanks and regards

B4rc1 commented 3 years ago

Hey I would very much like this feature, because I'm on an alternate keyboard layout and my homerow is dtrn so this plugin is not usable for me in it's current form. And btw scimming the sourcecode, it seems the basic things like d, t or r are currently not remappable. Thats something I would also need.

I'm willing to assist in this I'm just unsure how to store and configure custom keybindings. In an environment variable?!

jeffreytse commented 3 years ago

Hi @B4rc1

Thanks for your interest in this project. As you know, now the arrow keys are not abled to be remapped, and it's a crucial part in this plugin and should be refactored in some way. I'm taking a consideration on this feature and any update I will reply here. Welcome to star this project for furether updates in the future. I hope you have a good experience in using this plugin. : )

The better way is that we can keep a consistent way to bind arrow keys, in other words, we use zvm_bindkey or bindkey, but now I'm working on how to refactor it.

Thanks and regards

NicolasWebDev commented 1 year ago

Hi, any news on that front? I'm currently switching from bash to zsh, and because I'm using a dvorak-style disposition (bépo), having the possibility to remap the arrow keys is essential to me.

Thanks for the great work by the way!