monolith-code icon indicating copy to clipboard operation
monolith-code copied to clipboard

FR: vim-like keymap

Open mwoz123 opened this issue 3 years ago • 3 comments

is there a chance for vim-like keymappings ?

Thanks mwoz

mwoz123 avatar May 14 '22 08:05 mwoz123

Yes, this is very much possible. I'm using the ace editor which allows for different key mappings. I would just need to figure out how to best expose those settings in the app.

Haeri avatar May 14 '22 15:05 Haeri

In fact, what you can do is press ctrl + shift + i to open up the chrome dev tool and type editor.setKeyboardHandler("ace/keyboard/vim"); into the console. This will enable vim controls. Obviously, OS operations are not set up but at least you should be able to perform the usual editing operations within the editor.

Haeri avatar May 15 '22 22:05 Haeri

Awesome news:) how about creating keymap.js config file and exposing editor property so it set to vim keymap?

mwoz123 avatar May 16 '22 06:05 mwoz123