Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

leader keys that work in normal mode

  • Loading branch information...
commit c092d85330226a8f173a3cb2712432eee4dc23f5 1 parent d935ee2
@cldwalker authored
Showing with 16 additions and 8 deletions.
  1. +12 −1 .light_table/user.behaviors
  2. +4 −7 .light_table/user.keymap
View
13 .light_table/user.behaviors
@@ -13,7 +13,18 @@
;; The app tag is kind of like global scope. You assign behaviors that affect
;; all of Light Table here
:app [(:lt.objs.style/set-skin "dark")
- (:lt.objs.plugins/load-js "recall.js" true)]
+ (:lt.objs.plugins/load-js "recall.js" true)
+ :lt.objs.intro/show-new-file
+ (:lt.plugins.vim/map-keys {"-" "$",
+ "0" "^",
+ "j" "gj",
+ "k" "gk"
+ ;; <Space> is a leader key in normal mode
+ "<Space>b" ":ltexec behaviors.modify-user"
+ "<Space>c" ":ltexec toggle-console"
+ "<Space>k" ":ltexec keymap.modify-user"
+ "<Space>p" ":ltexec plugin-manager.show"
+ "<Space>w" ":ltexec workspace.show"})]
;; The editor tag is applied to all editors
:editor [:lt.objs.editor/no-wrap
View
11 .light_table/user.keymap
@@ -24,14 +24,11 @@
;; requires master until 0.0.2 paredit
"alt-s" [:paredit.unwrap.parent]}
- :editor.keys.normal {;;cmd-/ is a leader - must be in insert mode :(
- "cmd-/ b" [:behaviors.modify-user]
- "cmd-/ c" [:toggle-console]
+ :editor.keys.normal {
+ ;; for leader keys that work in normal mode see :vim/map-keys in behaviors
+ ;;cmd-/ is a leader for multi-command keys - must be in insert mode :(
;; open browser tab with focus to type url
- "cmd-/ h" [:add-browser-tab :browser.url-bar.focus]
- "cmd-/ k" [:keymap.modify-user]
- "cmd-/ p" [:plugin-manager.show]
- "cmd-/ w" [:workspace.show]
+ "cmd-/ o" [:add-browser-tab :browser.url-bar.focus]
;; view current html in a split window
"cmd-/ s" [:tabset.new :tabset.next :editor.open-current-file-in-browser]
Please sign in to comment.
Something went wrong with that request. Please try again.