Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

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

Open
tylercecil opened this issue Jul 20, 2014 · 3 comments
Open
Assignees

Comments

@tylercecil
Copy link

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
Copy link
Author

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.

@joshuafcole
Copy link
Contributor

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

@joshuafcole joshuafcole self-assigned this Oct 22, 2014
@ibdknox
Copy link
Member

ibdknox commented Oct 22, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants