Skip to content

Commit

Permalink
[sublime] Make goSubwordLeft/Right shortcuts match Sublime on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaran-google authored and marijnh committed Jul 4, 2016
1 parent 6a84559 commit a0547b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions keymap/sublime.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
});
}

cmds[map["Alt-Left"] = "goSubwordLeft"] = function(cm) { moveSubword(cm, -1); };
cmds[map["Alt-Right"] = "goSubwordRight"] = function(cm) { moveSubword(cm, 1); };
var goSubwordCombo = mac ? "Ctrl-" : "Alt-";

cmds[map[goSubwordCombo + "Left"] = "goSubwordLeft"] = function(cm) { moveSubword(cm, -1); };
cmds[map[goSubwordCombo + "Right"] = "goSubwordRight"] = function(cm) { moveSubword(cm, 1); };

if (mac) map["Cmd-Left"] = "goLineStartSmart";

Expand Down

0 comments on commit a0547b7

Please sign in to comment.