Mac OS X has an easy way to type “curly” quotes and apostrophes instead of 'straight' versions. I used both versions in that sentence to show the difference. Here is a bigger version to make the distinction more visible:
- My Defaultkeybinding.dict For Macbook
- DefaultKeyBinding.dict · GitHub
- My Defaultkeybinding.dict For Macbook Air
Many people think “curly” quotes look better than 'straight' ones.
My Defaultkeybinding.dict For Macbook
You can use the following keyboard shortcuts to type a single or double curly quote:
Mac: Key Remapping, Keybinding Tools. Best is to get a programable keyboard. See Programable Keyboards with Onboard Memory. See: Problems of Mac OS X's Keybinding Scheme DefaultKeyBinding.dict. Text System Defaults and Key Bindings By Apple. Default keybindings fix for Mac OS X. Adds multiple sign shortkey: control - shift - 8 = ×; Adds deographic space shortkey. First create the folder /Library/KeyBindings/ and then the file DefaultKeyBinding.Dict. Mkdir /Library/KeyBindings/ vim DefaultKeyBinding.Dict b. Add the contents below to the new file.
- Single quote open (‘) — option ]
- Single quote close (’) — shift option ]
- Double quote open (“) — option [
- Double quote close (”) — shift option [
However, I think it makes more sense to use [ and ] for open and close versions instead of the shift key. I found myself constant typing “mismatched‘ quotes. I also wanted to use the shift key for double quotes since that’s how the normal keyboard button works.
- Single quote open (‘) — option [
- Single quote close (’) — option ]
- Double quote open (“) — option shift [
- Double quote close (”) — option shift ]
Since OS X supports custom key bindings, I looked for a way to fix this. The trick is to create a file called DefaultKeyBinding.dict
in the KeyBindings
folder inside your Library
folder. You can use this file to override the default key bindings for most applications.
Here are my changes. Please feel free to copy the settings below and save them to your own computer. You may need to create the KeyBindings
folder if it isn’t already there.
Other Articles You May Enjoy
- Quote: Abraham Lincoln A great quote from Abraham Lincoln, 16th president of the...
- How to Create an Alias Programmatically Example code showing how to create an alias in Objective-C...
- How to Modify the Dock or Login Items on OS X Working example code showing how to add or remove items...
- Boot Camp and Snow Leopard at the Same Time How I use Winclone on my Leopard machine to switch...
- How to Print a PDF File Using Cocoa Working example code showing how to print an existing PDF...
DefaultKeyBinding.dict · GitHub
This post will show you how to change line movement and control key bindings in macOS to be similar to what we use in Linux (and windows).
The following keyboard shortcuts will be added:
Sequence | Command |
---|---|
Ctrl+Left | Back one word |
Ctrl+Right | Forward one word |
Ctrl+Shift+Left | Back one word and modify selection |
Ctrl+Shift+Right | Forward one word and modify selection |
Home | Beginning of the line |
End | End of line |
Shift+Home | Beginning of the line and modify selection |
Shift+End | End of line and modify selection |
Ctrl+Home | Top of page |
Ctrl+End | End of page |
Shift+Ctrl+Home | Top of page and modify selection |
Shift+Ctrl+End | End of page and modify selection |
Instructions
a. First create the folder ~/Library/KeyBindings/
and then the file DefaultKeyBinding.Dict
b. Add the contents below to the new file:
My Defaultkeybinding.dict For Macbook Air
Note: The code above assumes you are have substituted the Command Key
for the Control Key
in «Keyboard => Modifier Keys…» (see screenshot below). If you haven’t, you can try changing the comment between the commented and uncommented blocks.
c. Restart the application you want to use
Reference:
Comments are closed.