Permalink
Browse files

consistent clear, kill, cancels

  • Loading branch information...
1 parent b65ab19 commit 06d208940abb63d1383ff3dfa7bdb361a8337e0f @cldwalker committed Feb 19, 2014
Showing with 9 additions and 25 deletions.
  1. +7 −12 .light_table/user.behaviors
  2. +2 −13 .light_table/user.keymap
@@ -1,14 +1,3 @@
-;; User behaviors
-;; -----------------------------
-;; Behaviors are stored as a set of diffs that are merged together
-;; to create the final set of functionality that makes up Light Table. You can
-;; modify these diffs to either add or subtract functionality.
-;;
-;; Behaviors are added to tags, objects with those tags then automatically gain
-;; whatever logic the behavior imparts. To see a list of user-level behaviors,
-;; start typing a word related to the functionality you want in between the square
-;; brackets (e.g. "theme").
-
{:+ {
;; The app tag is kind of like global scope. You assign behaviors that affect
;; all of Light Table here
@@ -19,9 +8,15 @@
"k" "gk"
;; <Space> is a leader key in normal mode
"<Space>b" ":ltexec behaviors.modify-user"
- "<Space>c" ":ltexec clear-console"
+ ; c - for cancel/clear/kill actions
+ "<Space>cc" ":ltexec clear-console"
+ "<Space>cC" ":ltexec editor.disconnect-clients"
+ "<Space>ce" ":ltexec eval.cancel-all!"
+ "<Space>cw" ":ltexec editor.watch.remove-all"
+ "<Space>cs" ":ltexec reset-working"
"<Space>k" ":ltexec keymap.modify-user"
"<Space>p" ":ltexec plugin-manager.show"
+ ; t - for toggle
"<Space>tc" ":ltexec toggle-console"
"<Space>ti" ":ltexec ltfiles.toggle-current-inline-result"
"<Space>tl" ":ltexec ltfiles.toggle-line-numbers"
View
@@ -1,17 +1,6 @@
-;; User keymap
-;; -----------------------------
-;; Keymaps are stored as a set of diffs that are merged together together
-;; to create the final set of keys. You can modify these diffs to either add
-;; or subtract bindings.
-;;
-;; Like behaviors, keys are bound by tag. When objects with those tags are active
-;; the key bindings are live. Keys can be bound to any number of Light Table commands,
-;; allowing you the flexibility to execute multiple operations together. To see a list
-;; of all the commands you can execute, start typing a word related to the thing you
-;; want to do in between the square brackets (e.g. type "editor").
-
{:+ {:app {"alt-tab" [:tabset.next]
- "cmd-k" [:clear-inline-results]}
+ "cmd-k" [:clear-inline-results]
+ "alt-d" [:dev-inspector]}
:editor {"alt-w" [:editor.watch.watch-selection]
"alt-shift-w" [:editor.watch.unwatch]

0 comments on commit 06d2089

Please sign in to comment.