Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for vim digraphs #4498

Open
alecjacobson opened this issue May 21, 2021 · 2 comments
Open

Add support for vim digraphs #4498

alecjacobson opened this issue May 21, 2021 · 2 comments

Comments

@alecjacobson
Copy link

@alecjacobson alecjacobson commented May 21, 2021

With vim bindings in insert mode, CRTL+K currently deletes all subsequent characters on the current line. I don't believe this is the default vim behavior.

In vim locally, pressing CTRL+K then two letters will insert a unicode character based on its digraph. This is a very handy way of typing unicode characters with a standard keyboard.

If there's an existing way to use vim digraphs in ACE, what is it?

If not, I would like to request supporting vim digraphs as a new feature.

@nightwing
Copy link
Member

@nightwing nightwing commented May 22, 2021

Insert mode uses general editor key bindings for keys that are not overridden by vim mode. Behavior of Ctrl-K is present in all textareas on mac. Currently there is no way to use digraphs in ace.

Is there a simple rule by which digraphs are defined or would we need to include the whole list of digraphs in the editor?

@alecjacobson
Copy link
Author

@alecjacobson alecjacobson commented May 23, 2021

Some of the digraphs have patterns: e.g., f* → φ, s* → σ, but most are two letter abbreviations intended to be easy to remember .p → ⋅ ("dot" P-roduct).

Probably best to just take the full digraphs table. In vim, this will show up if you type :help digraphs. If you type :digraphs you sees the full screen table with just codes and symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants