My Defaultkeybinding.dict For Mac

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:

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.

  1. Single quote open (‘) — option ]
  2. Single quote close (’) — shift option ]
  3. Double quote open (“) — option [
  4. Double quote close (”) — shift option [
Fix

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.

  1. Single quote open (‘) — option [
  2. Single quote close (’) — option ]
  3. Double quote open (“) — option shift [
  4. 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

  1. Quote: Abraham Lincoln A great quote from Abraham Lincoln, 16th president of the...
  2. How to Create an Alias Programmatically Example code showing how to create an alias in Objective-C...
  3. How to Modify the Dock or Login Items on OS X Working example code showing how to add or remove items...
  4. Boot Camp and Snow Leopard at the Same Time How I use Winclone on my Leopard machine to switch...
  5. How to Print a PDF File Using Cocoa Working example code showing how to print an existing PDF...
Defaultkeybinding.dictFor

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:

SequenceCommand
Ctrl+LeftBack one word
Ctrl+RightForward one word
Ctrl+Shift+LeftBack one word and modify selection
Ctrl+Shift+RightForward one word and modify selection
HomeBeginning of the line
EndEnd of line
Shift+HomeBeginning of the line and modify selection
Shift+EndEnd of line and modify selection
Ctrl+HomeTop of page
Ctrl+EndEnd of page
Shift+Ctrl+HomeTop of page and modify selection
Shift+Ctrl+EndEnd 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.