summaryrefslogtreecommitdiffstats
path: root/DefaultKeyBinding.dict
diff options
context:
space:
mode:
authorTeddy Wing2015-07-23 11:46:53 -0400
committerTeddy Wing2015-07-23 11:46:53 -0400
commit51c1186d1b5f9e491e64413cf00776362cd318e1 (patch)
tree99c5d3ca6d871bc239ba053203a4c1cb45c42129 /DefaultKeyBinding.dict
parentcf78a037c2a5575da083d10e3a8081ca667feb8a (diff)
downloadKeyBindings-51c1186d1b5f9e491e64413cf00776362cd318e1.tar.bz2
DefaultKeyBinding.dict: Change delete word forward to Opt-d
Move the `deleteWordForward:` command to Option-d and change the existing command for that (delete paragraph) to Control-Option-d. I wanted to match the Readline/Emacs keys that I'm used to for deleting a word forward. Thus this becomes Meta-d to delete a word forward which is just like the Emacs style and requires no extra memorisation. On top of that, it's easier to type because it requires one less modifier key. Since I feel like I'll be using this one more than 'delete paragraph', the switch made sense. Also, since deleting a whole paragraph is a more destructive change, adding an extra modifier key in order to accomplish it doesn't seem like a bad thing to me.
Diffstat (limited to 'DefaultKeyBinding.dict')
-rw-r--r--DefaultKeyBinding.dict4
1 files changed, 2 insertions, 2 deletions
diff --git a/DefaultKeyBinding.dict b/DefaultKeyBinding.dict
index 9dcbead..8c857ff 100644
--- a/DefaultKeyBinding.dict
+++ b/DefaultKeyBinding.dict
@@ -19,7 +19,7 @@
// delete word before cursor
"^w" = (deleteWordBackward:);
// delete word after cursor
- "^~w" = (deleteWordForward:);
+ "~d" = (deleteWordForward:);
// select word
"~w" = (selectWord:);
// select word backward and modify selection
@@ -31,7 +31,7 @@
// select paragraph excluding leading/trailing whitespace (same as ^$@\UF701)
"^~S" = (moveToEndOfParagraph:, insertText:, " ", selectWord:, moveBackward:, moveToBeginningOfParagraphAndModifySelection:, moveWordForwardAndModifySelection:, moveWordBackwardAndModifySelection:);
// delete line/paragraph
- "~d" = (selectParagraph:, delete:, moveToBeginningOfParagraph:);
+ "^~d" = (selectParagraph:, delete:, moveToBeginningOfParagraph:);
// copy paragraph
"~y" = (setMark:, moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:, copy:, swapWithMark:);
// cut paragraph