From f33865ccc463dea151a06512e4ffc8a021203448 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sat, 6 Sep 2014 13:10:21 -0700 Subject: [PATCH] Added example of enabling `Opt+Shift+Left/Right` shortcut on OSX. --- cfg/user-sample.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cfg/user-sample.lua b/cfg/user-sample.lua index 89b7a7f38c..1531bc72b5 100644 --- a/cfg/user-sample.lua +++ b/cfg/user-sample.lua @@ -153,3 +153,7 @@ luaspec.keywords[1] = luaspec.keywords[1]:gsub(' return', ''):gsub(' break', '') -- assign new style to the added slot (starting from 0) styles["keywords"..num] = {fg = {240, 0, 0}, b = true} + +-- enable `Opt+Shift+Left/Right` shortcut on OSX +editor.keymap[#editor.keymap+1] = {wxstc.wxSTC_KEY_LEFT, wxstc.wxSTC_SCMOD_ALT+wxstc.wxSTC_SCMOD_SHIFT, wxstc.wxSTC_CMD_WORDLEFTEXTEND, "Macintosh"} +editor.keymap[#editor.keymap+1] = {wxstc.wxSTC_KEY_RIGHT, wxstc.wxSTC_SCMOD_ALT+wxstc.wxSTC_SCMOD_SHIFT, wxstc.wxSTC_CMD_WORDRIGHTENDEXTEND, "Macintosh"}