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

Could KeyFunctions config remap to control combination? #873

Closed
palmtenor opened this issue May 8, 2019 · 6 comments
Closed

Could KeyFunctions config remap to control combination? #873

palmtenor opened this issue May 8, 2019 · 6 comments

Comments

@palmtenor
Copy link

For example, if I want to map Esc to Control + E (hypothetically), can I do that by using the KeyFunctions config? I tried ^E with string literal syntax (quotes) but that doesn't seem to work.

@mintty
Copy link
Owner

mintty commented May 8, 2019

Space, Enter, Esc and Tab are only considered with at least one modifier

Also, key definitions may interfere with mintty keyboard shortcuts or Windows hotkeys...

@palmtenor
Copy link
Author

I may have used a bad example. Let me explain my motivation. I have CtrlExchangeShift turned on because I prefer Windows style copy / paste shortcuts. But I still want to use Control + {} for most other keys other than c and v, at least those I care about like h / j / k / l for vim. So I was wondering if I could write something like

KeyFunctions=h:^h;j:^j;...

which effectively make that I only do CtrlExchangeShift on c and v?

@mintty
Copy link
Owner

mintty commented May 8, 2019

To achieve that, you'd have to enclose the text in double quotes, and embed the control character verbatim.
As noted in the manual, there is no escape notation. ^j will not work right now.

@palmtenor
Copy link
Author

I see, that makes sense. How do I enter or find those control characters? Or do we want to add the ability to escape ^ in the KeyFunction value?

@mintty
Copy link
Owner

mintty commented May 9, 2019

How do I enter or find those control characters?

That depends entirely on your text editor.

Or do we want to add the ability to escape ^ in the KeyFunction value?

Possibly.

@mintty
Copy link
Owner

mintty commented May 28, 2019

Released 3.0.1.

@mintty mintty closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants