[vim] Use keymap binding instead of event handlers #10101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "github/fork/mightyguava/keymap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Revert back to using CodeMirror keymap for key handling instead of direct key handlers.
https://github.com/codemirror/CodeMirror/issues/2915
@heppeplease review at your convenience.@nightwingyou probably have to add a proxy for thecallproperty on keymaps in ACEgithub.com/codemirror/CodeMirror@dd2b9d86accan you be more specific here?
why is that a problem?
Technically, it's not, but we want to match vim where possible, so I added a TODO to document it.
Fixed, I was just being lazy.
It looks like there's still a bunch of places where the callers are expecting command.
not a new problem, but can you put a log message here into the console? Do we have any mechanism to do that?
(If you really want a
console.login production code, writeconsole["log"]to prevent the linter from complaining.)I don't understand what you mean by this.
findKeyis a new function added to use for CodeMirror keymap'scallparam.handleKey's API has not changed, so there should not be any side effectson lines 238 and 635 you are assigning command = findkey(), and then testing against 'function', but findkey is defined as returning true or false.
Or maybe I'm missing something.
Ah, the documentation is out of date. Updated.
Merged as
4fad3f8Pull request closed