Emacs icon indicating copy to clipboard operation
Emacs copied to clipboard

Ctrl-f moves one character forward when emacs mode is not active.

Open tylercecil opened this issue 10 years ago • 3 comments

Feel free to let me know how crazy I am. I did not add :lt.plugins.emacs/activate-emacs to my behaviors file. Nowhere do I map Ctrl-f (neither in user.keymap or default.keymap), yet Ctrl-f moves forward a character.

Any ideas? I'm finding this to be... confusing...

tylercecil avatar Jul 20 '14 02:07 tylercecil

So immediately looking at the source, I see on line 20 of the keymap file: :editor.keys.normal {"ctrl-f" [(:emacs.keymap-cmd "Ctrl-F")]}. Why is this the desired behavior? I feel like it's more intuitive to only add editor keymaps to :editor.keys.emacs. What's the reasoning, here? I personally only wanted access to the codemirror wrapper functions, and did not want to load the whole keymap, so this was a bit confusing to me.

tylercecil avatar Jul 20 '14 02:07 tylercecil

I agree on all counts here, unsure why it was initially written this way. Any input @ibdknox ?

joshuafcole avatar Oct 22 '14 06:10 joshuafcole

This made sure that ctrl-f was overwritten properly, though it should've been done by just creating a more specific tag as opposed to binding it in normal.

ibdknox avatar Oct 22 '14 15:10 ibdknox