default.keymap将pmeta-shift-s绑定到:save-as,但我想将其重新绑定到:save-all。我将以下内容添加到我的user.keymap中
;; Remove the default keybinding
{:- {:editor {"pmeta-shift-s" [:save-as]}}}
;; Add my keybinding
{:+ {:app {"pmeta-shift-s" [:save-all]}}}我保存了我的user.keymap,LightTable说它重新加载了密钥映射,但是按pmeta-shift-s键仍然弹出“另存为”对话框。我做错了什么?
编辑:我确信这是一个bug,所以:https://github.com/LightTable/LightTable/issues/1180
发布于 2014-03-10 16:54:48
显然,这不是一个bug,必须在同一个映射中显示:-和:+键:
{:- {:editor {"pmeta-shift-s" [:save-as]}}
:+ {:app {"pmeta-shift-s" [:save-all]}
:editor {"alt-w" [:editor.watch.watch-selection]
"alt-shift-w" [:editor.watch.unwatch]
"f3" [:find.next]}
:tabs {"pmeta-pagedown" [:tabs.next]
"pmeta-pageup" [:tabs.prev]}}}}https://stackoverflow.com/questions/21221738
复制相似问题