Blink: Slight oddity with ctrl-space fix

Created on 5 Jun 2020  Â·  8Comments  Â·  Source: blinksh/blink

I just got the update which makes ctrl-space work again by adding it as a custom shortcut. I am definitely rejoicing :)

One slight oddity however: generally in Emacs I select text by hitting control space and then hitting n, p, f, or b while still holding down space control. It seems that this doesn't work with the new fix; I have to let go of control and then press it again before typing the other characters.

I'm curious if this is a fixable issue or if it is an inherent limitation of whatever magic is being used to override the OS' ctrl-space binding.

A big thanks for the overall ctrl-space fix though! This issue is slightly annoying but an order of magnitude better than having the emoji picker pop up constantly when I would forget to use my weird workaround shortcut.

Most helpful comment

So: press control, press/release space, press/release n, release control -> normally I would get a line selected, but instead this types an 'n'.

All 8 comments

then hitting n, p, f, or b while still holding down space.

Space or ctrl?

Sorry, I mistyped; while still holding ctrl.

So: press control, press/release space, press/release n, release control -> normally I would get a line selected, but instead this types an 'n'.

Yep, I got it. I will look.

As a workaround, for now, you can map :

  • ctrl+b to hex 02
  • ctrl+n to hex 0e

Etc (you can look codes with showkey command)

Rejoice, indeed! <3

@yury wrote:

As a workaround, for now, you can map :

  • ctrl+b to hex 02
  • ctrl+n to hex 0e

Etc (you can look codes with showkey command)

It appears if you want the hex thing to work you have to set it for _every_ control key; otherwise, the problem just propagates to whatever the first ctrl key you use after using one redefined in “Custom presses”. (So, in other words, if you add C-SPC, C-b, and C-n as above, then C-SPC C-b C-n works great, but then if you type some stuff and type C-a, you get a plain a instead.

Another weirdness: if you enter a hex code, you _must_ press RET after entering the hex code; otherwise, though the GUI sheet will appear to show a successful setting of, say, ⌃B to Hex 02, instead C-b gets swallowed; if you exit the Config sheet and reopen it, though, it “correctly” shows ⌃B as pressing an empty hex code.

I reported the same issue on #782. I’ll try the hex-code workaround as well and see how it goes.

Mapping:
^A -> 01
^E -> 05
^G -> 07
^N -> 0E
^P -> 10
^U -> 15
^[space] -> ^[space]

more or less gets my Emacs text-selection flow back. It’s definitely still more in the category of “extensively worked around” rather than “fixed”, but I’m glad it works. Thanks @yury. Hopefully there’s a cleaner fix for this (maybe like the iSH one pointed to in #782), but ideally, Apple would just allow us to turn off the ctrl-space shortcut, I suppose.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwr picture jwr  Â·  3Comments

balboah picture balboah  Â·  3Comments

basepi picture basepi  Â·  5Comments

peppy picture peppy  Â·  4Comments

jra picture jra  Â·  5Comments