4 ms·
I have no idea what glove size I am... but yeah I'm a dude. > I've noticed a tendency for modern keyboard to remove these edit keys... The teeny tiny arrow ke
by dharmaturtle 5y ago
I have no idea what glove size I am... but yeah I'm a dude.
> I've noticed a tendency for modern keyboard to remove these edit keys...
The teeny tiny arrow keys on modern laptops is actually part of the reason why I have Caps+IJKL be arrow keys. I have a lot of opinions/feelings about arrow keys. (Why are the most commonly used keys so small??? /rage)
For me Caps + H and semicolon are home/end, Y/P are PgUp/Down, U/O are 4lefts/4rights, and 8/, are 4ups/4downs. The 4's are surprisingly useful, especially when navigating. Home and End combo with Ctrl to yield beginning/end of document, which is also nice. (so like Ctrl+Caps+H = beginning). Everything combos with Ctrl and Shift for wordskipping/selection which is really nice.
I haven't tried making modifiers do different things when used alone - that's a neat idea.
- csdvrx 5y ago> I have no idea what glove size I am... but yeah I'm a dude. My prediction wasn't very risky given the demographics of HN :) > The teeny tiny arrow keys on modern laptops is actually part of the reason why I have Caps+IJKL be arrow keys. I'm currently back to Lenovo, mostly for the wonderful keyboards that still have decent sized arrow keys and Page Up / Page Down nearby on both side of the up arrow, so I don't feel this need, but the modern trend of teeny up/down next tothe HUGE left/right is concerning. I might end up doing like just you. In fact, I might start adding shortcuts right now. I'm thinking of doing a mapping with Alt, as my Caps key is chorded as Control, and I can't imagine doing without Ctrl-K or Ctrl-L, but. Did you have any specific reason to go with IJKL instead of WASD? > Everything combos with Ctrl and Shift for wordskipping/selection which is really nice. It's wonderful to meet fellow minded people :) My AHK scripts work the same: to go to the beginning of a webpage, I press and hold right Alt, then press on left Alt to send a Home. To to go the end, I use the same keys, but in the opposite order! It quickly gets into muscle memory! > I haven't tried making modifiers do different things when used alone - that's a neat idea. Here's my current implementation which still leaves much to be desired but mostly perform acceptably. Try it for yourself and see if you like it! I've found using less chording whenever possible made sense, and I find myself often scrolling down page by using the Shift key instead of space, as it's just more conveniently placed as a big button right where my thumb rests while holding my laptop ~LShift:: KeyWait, LShift If (A_TimeSinceThisHotkey < 300 and A_PriorKey = "LShift") { if (GetKeyState("RAlt", "P") || ( GetKeyState("LAlt", "P") && !(GetKeyState("CapsLock", "P") || GetKeyState("Enter", "P") ) ) ) { SendInput !{PgUp} } else { SendInput,{PgUp} } } return ~RShift:: if (GetKeyState("RAlt", "P") || ( GetKeyState("LAlt", "P") && !(GetKeyState("CapsLock", "P") || GetKeyState("Enter", "P") ) ) ) { SendInput !{PgDn} } else { SendInput {PgDn} } } return *LAlt:: KeyWait, LAlt If (A_TimeSinceThisHotkey < 300 and A_PriorKey = "LAlt") { if (GetKeyState("LShift", "P") || ( GetKeyState("RShift", "P") && !(GetKeyState("CapsLock", "P") || GetKeyState("Enter", "P") ) ) ) { SendInput +{Home} } else { SendInput {Home} } } return *RAlt:: KeyWait, RAlt If (A_TimeSinceThisHotkey < 300 and A_PriorKey = "RAlt") { if (GetKeyState("RShift", "P") || ( GetKeyState("LShift", "P") && !(GetKeyState("CapsLock", "P") || GetKeyState("Enter", "P") ) ) ) { SendInput +{End} } else { SendInput {End} } } return Replace CapsLock and Enter by your own chording keys if needed, to allow composition. If you end up improving on that, please send me your improved AHK script! My email is my username at outlook dot com.
- dharmaturtle 5y agoTIL about A_PriorKey, thanks! My own scripts are hardly prettier. AHK is not a great language, and I've put very little effort into learning its syntax. Here's my implementation Alt IJKL & friends: https://pastebin.com/F0xgWHH9 https://pastebin.com/F0xgWHH9 Same invitation to you. If you find a way to improve it, email me at my HN handle at gmail :D Note that it has explicit stuff to work with the AltTab window. I daily drive a Thinkpad X1, but honestly these days Alt+IJKL is so ingrained into my muscle memory that I make grumbly noises when I try to use them on another coworker's machine and fail. Well at least I used to precovid. > Did you have any specific reason to go with IJKL instead of WASD? Ergonomics, primarily. I didn't want to twist the fingers of my left hand to try to hit Ctrl/Shift/Alt WASD while my right hand is sitting snickering. Oh. And I just realized I could have used the right alt + WASD. I went with LeftAlt because Caps is also on the left. You can certainly choose to go with RightAlt, though I would encourage you to try ESDF so you get to leave your fingers on the homerow. Also means you have a bit more room for QAZ if you wanna do anything fancy with them. I suppose I could try and make RightAlt+ESDF mouse movement... but TrackPoint. Might be useful for when I'm at the desktop though. Anyway, being able to left click from the keyboard is surprisingly useful. (CtrlCaps for me.) Often times my mouse is exactly where I want it to be. Happens multiple times a day. > To to go the end, I use the same keys, but in the opposite order! That is fantastic.