Blink: Modifier keys mapping to selectable escape sequences

Created on 16 Jun 2016  Â·  10Comments  Â·  Source: blinksh/blink

That would be awesome to have an ability to reassign the _Caps Lock_, and send _Escape_ key ASCII 27 code instead. While Ctrl-[ works fine in Vim, it's still better to use one key instead of a combination.

feature

Most helpful comment

Great Great Great news, this can be done!! I will add it once the config dialog for keys is completed.

All 10 comments

Strongly seconded. While the 'smart' keyboard for the ipad pro lacks an
escape key, it has a full sized caps lock key just sitting there quietly
mocking me.

On Thu, Jun 16, 2016 at 9:43 AM Vlad Shvedov [email protected]
wrote:

That would be awesome to have an ability to reassign the _Caps Lock_, and
send _Escape_ key codes instead. While _Ctrl-[_ works fine in Vim, it's
still better to use one key instead of combination.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/blinksh/blink/issues/32, or mute the thread
https://github.com/notifications/unsubscribe/ABUBqLAJCto4dUb7eMLwkEEUieFmwLaqks5qMX0sgaJpZM4I3lIv
.

Great Great Great news, this can be done!! I will add it once the config dialog for keys is completed.

Excellent news! Happy to test it once it's ready.

Great news! ESC and CMD-arrows mapping (Page up/down, Home/End) would help me :)

Hi @andrius! You should have Ctrl/Shift/Alt + arrows on v0.916. Let me know!

The user needs to remap Modifier keyboard keys like Ctrl, Alt, Command and Caps Lock, to the escape sequences as desired. This is a must to have the terminal configured to your liking. For example, it should allow to map Caps to Esc, Alt as Esc, Caps as Ctrl, etc...

Caps as ESC
[_kbdCommands addObject:[UIKeyCommand keyCommandWithInput:@"" modifierFlags:UIKeyModifierAlphaShift action:@selector(capsPressed:)]];

Commenting on this following Twitter discussion yesterday. Caps to Ctrl is an awesome feature, and worth moving to Blink for all by itself. However, now I know it's possible to do this kind of remapping...

  1. I use an MS Ultimate Folding keyboard with the iPad. That keyboard does have an escape key, but it seems to just act as a home key; it takes me out of Blink back to the main screen, so I'm still having to use Ctrl-[ in vim. Being able to remap this as a true escape would be great.
  2. On my main machine Caps has two functions; tapping it gets you Esc and holding gets Ctrl. This works amazingly well, and is very addictive once you get used to it. Would it be possible to have different actions on tap and hold?

Version 0.931 includes full support for all modifiers:

  • Caps/Shift as ESC.
  • Cursor Keys (Home, End, PgUp, PgDown), initially mapped to Cmd + arrows.
  • Function Keys (F1-F10) initially mapped to Cmd+number.
    And you can even map them to what you want. For example, @clarkema can now map Caps to Ctrl, and also Caps to ESC, and get ESC on tap and Ctrl on hold.

Sorry to resurrect this thread, @carloscabanero, but could you clarify how to accomplish this:

And you can even map them to what you want. For example, @clarkema can now map Caps to Ctrl, and also Caps to ESC, and get ESC on tap and Ctrl on hold.

In the latest version of Blink?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

treyharris picture treyharris  Â·  3Comments

carloscabanero picture carloscabanero  Â·  4Comments

muammar picture muammar  Â·  3Comments

chrisportela picture chrisportela  Â·  3Comments

basepi picture basepi  Â·  5Comments