Life is easier with simple scripting. Grateful for everyone's encouragement and support!
View this project on GitHub
There are a lot of possibilities to create useful and simple keyboard shortcuts with Karabiner Elements. Here are a few examples that I had fun setting up and using.
Update: I ended up uninstalling Karabiner when I figured that I could do the functions I wanted without it. I like not relying on software to take over my computer and prefer to do the system setup myself. Then I know and understand what I am changing and how and how to undo anything. No bugs, no kernel panics. Examples: Newer post about the Eject key assignments and How else to make my keyboard my own.
Default Mac shortcut: ⌘ - option - shift - v
Four keys is a little much to remember and mousing around within the paste menu options takes even longer. But this is a very useful function to paste and not carry over the original font formatting into the new document. I usually just need the text content that matches the surrounding format.
Two options are available for a more simple approach in Karabiner. Both live under "Complex Modifications"
that you see on the right side bar of the Karabiner-Elements settings window. In there, click the button "Add rule"
and then "Import more rules from the internet (Open a web browser)"
.
Search for “Right Command + v to paste without formatting” with expanded description Right Command + v does special paste without formatting, equivalent to. cmd+opt+shift+v. Click the blue "Import"
button on the right to add it to your Karabiner application.
Search for “Command + Shift + v does special paste without formatting, equivalent to cmd+opt+shift+v”. Import that modification. Then remember to paste using the capital V for this function.
Recently I came across a separate mac app that accomplishes just this, with some additional modifications: Pure paste on Mac app store. Options include automatically clearing formatting while the app is running, setting a keyboard shortcut, excluding applications where it may not work well (e.g. Excel) and trimming leading and trailing whitespaces.
Where the command is natively supported, you could create a shortcut in System Settings
→ Keyboard
→ Keyboard Shortcuts
→ App Shortcut
→ +
. Create a new shortcut for All Applications
called Paste and Match Style
. It will propagate to any application that has that option in its menu.
Note: Some applications are not compliant with this menu title convention, even Apple ones. For example, Xcode (currently 14.3.1) is weird. It has menu Edit
→ Paste
with unique titles: Paste
, Paste Special
and Paste and Preserve Formatting
. If you use an app like that you will need to check how it is called in the menu and create another shortcut with that title.
You may end up with something like:
Default Mac shortcut: ⌘ - control - spacebar. Or a globe (fn) key can display the emoji menu if set in Keyboard settings in System Preferences. But that may conflict with changing keyboard input sources or the default forward delete which is fn - delete.
I kept forgetting the default triple shortcut so decided to create a new Karabiner complex modification for it. To share it for anyone’s use I committed it to the main Karabiner list (the json code file lives here).
This is a little limited, but a shortcut can be set under System Preferences
→ Keyboard
→ Keyboard shortcuts
→ App Shortcuts
→ All applications
. Click + to create new, leave Application
as All Applications
and set menu title exactly as Emoji & Symbols
.
Caution: some shortcuts may be set but won’t work. If that is the case, try something else. I found no way to create a shortcut with fn
or globe
key, for example.
Personally, I am frequently deleting text after using the arrow keys to position and adjust the cursor. The hand is on the arrow keys and the right side option
is already right there. So with a "Simple Modifications"
menu I changed that to "forward_delete"
just like the "Eject"
button covered previously. Or: a [Newer post about the Eject button assignments].
Newer post about the Eject key assignments - human interface device (HID) utility for modifying the regular keyboard keys as well as the consumer one shot control (OSC) keys.
How else to make my keyboard my own - user key bindings.