0

How can I create a custom key binding for moving the cursor to the middle of the current line using Karabiner Elements? Is there is any other way to do this? I can't find anything helpful.

New contributor
Khushi Rochwani is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Can Karabiner elements be used to move the cursor to the middle of the line with respect to the console width, not with respect to the line length? – Khushi Rochwani yesterday
  • I want to achieve this keyboard movement across text editing software such as Google Docs, Word, etc and not on emacs and vim mapping in mac. – Khushi Rochwani yesterday
0

Looking at the Karabiner-Elements manual, it doesn't appear that such a keyboard movement is supported. A program that accomplishes this would need to be aware of the full line of text you're typing, like a text editor is.

This answer shows how to accomplish this in Emacs with a custom function, and this answer shows how to accomplish this with a Vim mapping. Out of the box, both have a way to skip to the beginning and ends of lines (0 and $ in Vim, C-a and C-e in Emacs). Both editors also support more advanced cursor movement options that can be used in context to move the cursor to arbitary positions.

|improve this answer|||||
New contributor
gnubeard is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Khushi Rochwani is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.