News for hackers. Stuff that matters.
Re:Helix: Post-Modern Text Editor by vitiral on Sunday November 06, 2022 @01:44PM (#33495745)
Remap capslock to CTRL when held and ESC when tapped. Good idea for vim too
Re:Helix: Post-Modern Text Editor by aldanor on Sunday November 06, 2022 @02:41PM (#33496253)
Looks interesting. I've always remapped capslock to CTRL myself, of course, but haven't thought of remapping tap-capslock to ESC. It looks like you need external software to do this though (like Karabiner Elements on mac, or xcape on linux, etc).

(That being said, if you're used to jk/kj/fd/jj/jf, many years of muscle memory would still take a while to erase...)

Re:Helix: Post-Modern Text Editor by deagle50 on Sunday November 06, 2022 @04:08PM (#33497181)
Do it now and your only regret will be not doing it sooner :)
Re:Helix: Post-Modern Text Editor by cassepipe on Sunday November 06, 2022 @04:39PM (#33497536)
For Ubuntu/LinuxMint :

Ubunutu --> Gnome Tweaks --> Additional Layout options --> Make Caps Lock an additional ESC

Linux Mint --> Keyboard --> Layout --> Options --> Same

From the terminal : setxkbmap -option caps:escape

There are option to swap CapsLock and Escape too, or you can have CapsLock when pressing both shift keys and other worthwhile options

Re:Helix: Post-Modern Text Editor by jrop on Sunday November 06, 2022 @07:44PM (#33499550)
Actually, MacOS can do this out of the box with no extra software installed. It's in the keyboard settings
Re:Helix: Post-Modern Text Editor by aldanor on Monday November 07, 2022 @03:25AM (#33502847)
You can only map CapsLock to a single modifier in keyboard settings? Which is how I've always had it myself (caps->ctrl) but that's not what's being discussed here.
Re:Helix: Post-Modern Text Editor by godDLL on Tuesday November 08, 2022 @12:19PM (#33521503)
What is? Tap to that, hold to this?

In Mac? Never.

Shame tho...

Re:Helix: Post-Modern Text Editor by divbzero on Sunday November 06, 2022 @02:25PM (#33496097)
Using caps lock to escape is close to the ergonomics of an early terminal used by Bill Joy where the escape key sat to the left of Q.

https://twobithistory.org/2018/08/05/where-vim-came-from.htm...

Re:Helix: Post-Modern Text Editor by samatman on Sunday November 06, 2022 @02:08PM (#33495926)
The classic mapping is Alt/Meta to send escape when tapped, because terminals send Alt-q as `ESC q`.

I have no strong opinions about how people lay out their keyboards, other than that people should try a split key if they haven't. My layout sends ESC when Alt is tapped, capslock is for backspace.

Re:Helix: Post-Modern Text Editor by Shared404 on Sunday November 06, 2022 @02:18PM (#33496025)
What about holding spacebar to overheat the computer and exit emacs?
Re:Helix: Post-Modern Text Editor by qu4z-2 on Sunday November 06, 2022 @04:13PM (#33497236)
What about it?
Re:Helix: Post-Modern Text Editor by mike-the-mikado on Sunday November 06, 2022 @05:19PM (#33498054)
Re:Helix: Post-Modern Text Editor by qu4z-2 on Wednesday November 09, 2022 @04:35PM (#33538228)
I know the xkcd, I just don't understand your point.
Re:Helix: Post-Modern Text Editor by Shared404 on Thursday November 10, 2022 @01:49AM (#33543099)
I was just making a joke about how deep we can all get into configuring every little thing on a PC - no offense or point intended, I spend as much time configuring my boxes as using them if I'm being honest.
Re:Helix: Post-Modern Text Editor by CorrectHorseBat on Sunday November 06, 2022 @04:22PM (#33497343)
I tried that for a while, but having ESC on release instead of on press just didn't feel right for me
Re:Helix: Post-Modern Text Editor by definitely-not on Monday November 07, 2022 @02:18AM (#33502269)
CTRL+[ also sends ESC control code.

So you don't even need to map ESC on tap (I prefer to map layout switching to it).

Re:Helix: Post-Modern Text Editor by aldanor on Monday November 07, 2022 @03:38AM (#33502951)
It's a matter of habit, I guess, but.

- Ctrl-[ is a chord that you have to press with 4/5 fingers using both hands at once.

- Whereas jk/fd etc are next to each other on the home row and pressed with 2/3 of the same hand sequentially.

Given the number of times you would have to exit insert mode, the second option is arguably more ergonomic...

Re:Helix: Post-Modern Text Editor by definitely-not on Tuesday November 08, 2022 @04:52AM (#33517585)
The one cool thing about CTRL+[ - it is universal in terminal and doesn't depend on configuration.