![]() Maybe there's a simple way to fix it, but the hack works perfectly for me. Ke圜ode::VK_CONFIG_TOGGLE_remap_keypadnumlock,Īs you can see, I needed to include the ".TOGGLE_NUMLOCK" three times to get the Num Lock LED status to appropriately indicate the state (otherwise it was backwards, whereas it would be lit for arrow functions and dark for numbers). Num Lock light turns on/off as appropriate as well :-) Use a generic external numerical keypad with Mac OS X, and Num Lock on/off toggles number vs arrow/Home/End/PgUp/PgDn functionality. Here's what I put in my private.xml file (using Karabiner.app), and it allows the following functionality: # Keypad 9 and Page Up -> Keyboard Page Up # Keypad 3 and Page Down -> Keyboard Page Down # Keypad 8 and Up Arrow -> Keyboard Up Arrow # Keypad 6 and Right Arrow -> Keyboard Right Arrow # Keypad 4 and Left Arrow -> Keyboard Left Arrow ![]() # Keypad 2 and Down Arrow -> Keyboard Down Arrow ~/Library/KeyBindings/DefaultKeyBinding.Following the idea explained in How do I remap a key in macOS Sierra, e.g., Right Alt to Right Control?, I enable the numlock cursor keys using the following script: # Uses the keyboard usage IDs documented in. I assumed the user has already swapped the Control and Super keys to fix cutting, copying, and pasting. I don't think this is exhaustive, but it's working pretty well for me right now. For example, Control Left and Control Right are supposed to move between words not Alt Left and Alt Left. There are whole bunch of other differences between the Apple shortcuts and literally everybody else's shortcuts that I added. It'll mimic the regular home/end movement you're after. Those are the Emacs-style keybindings that the Terminal uses for line movement by default. Set the Home key to send control-a and End key to send control-e. Using moveToBeginningOfLine and moveToEndOfLine, like does, may cause inconsistent behaviour. You can do that in Terminal -> Preferences -> Keyboard. Super Left and Super Right used to actually be mapped to moveToLeftEndOfLine and moveToRightEndOfLine. ![]() (In this answer, I use the non-Apple names for keys, so Command = Super and Option = Alt) _KeyToKey_ FROMKEYCODE_END, Ke圜ode::CURSOR_RIGHT, answer is awesome ( thank you so much this was driving me insane), but I ended up modifying it a little. _KeyToKey_ FROMKEYCODE_HOME, Ke圜ode::CURSOR_LEFT, ModifierFlag::COMMAND_L _KeyToKey_ FROMKEYCODE_END, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, Ke圜ode::CURSOR_DOWN, ModifierFlag::COMMAND_L _KeyToKey_ FROMKEYCODE_END, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, Ke圜ode::CURSOR_DOWN, ModifierFlag::COMMAND_L _KeyToKey_ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, Ke圜ode::CURSOR_UP, ModifierFlag::COMMAND_L _KeyToKey_ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, Ke圜ode::CURSOR_UP, ModifierFlag::COMMAND_L _KeyToKey_ FROMKEYCODE_END, Ke圜ode::E, ModifierFlag::CONTROL_L _KeyToKey_ FROMKEYCODE_HOME, Ke圜ode::A, ModifierFlag::CONTROL_L _KeyToKey_ FROMKEYCODE_HOME, Ke圜ode::HOME Just remember to allow karabinergrabber and karabinerobserver in System Preferences -> Security & Privacy -> Input Monitoring. _KeyToKey_ FROMKEYCODE_END, Ke圜ode::END, ModifierFlag::SHIFT_L Karabiner-Elements: it modifies keys Goku: it is a DSL (domain specific language) to help define key combos for Karabiner-Elements Their installations are straight forward. _KeyToKey_ FROMKEYCODE_HOME, Ke圜ode::HOME, ModifierFlag::SHIFT_L You could remap home and end by creating ~/Library/KeyBindings/ and saving a property list like this as DefaultKeyBinding.dict: ⌥ ← and ⌥ → move backwards/forward by words, and all of these are compatible with holding Shift to select during the corresponding moves. ⌥ ↑ and ⌥ ↓ or ⌃ A and ⌃ E move to the beginning or end of unwrapped lines (or paragraphs). The default shortcuts for moving to beginning or end of (wrapped) lines are ⌘ ← and ⌘ →. I do use multiple languages and switch between keyboard layouts, so any solutions would be expected to work even when toggling between multiple keyboard layouts.If this isn't possible, I think I probably have the strongest preference! It would be nice if my user settings didn't break other peoples experience. Is there a way to rebind the functions of these keys to the functions I am familiar with? I am willing to give up the document based versions which seem of little use to me.Are there existing keybindings I'm missing for beginning and end of line? (I mostly use a Terminal, Chrome and LibreOffice).I am gradually getting used to using the one Apple computer in my life, but it is still frustrating than these keys seem to be bound to the beginning and end of the document and there doesn't seem to be any key at all for the line based actions. ![]() On these platforms the Home and End keys universally jump to the beginning or end of the current line. Most of my computing time is spent in Linux (with occasional time in Windows).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |