Last active
August 27, 2016 14:16
-
-
Save bryan-lott/38714adc0c9e086840cd to your computer and use it in GitHub Desktop.
Lighttable user.keymap file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; User keymap | |
;; ----------------------------- | |
;; Modify this file to add and subtract keybindings (keyboard shortcuts). | |
;; Keybindings allow custom keys to invoke any desired LightTable functionality that is behind a command. | |
;; A keybinding has the following format: | |
;; | |
;; [:TAG "KEYS" :COMMAND] | |
;; | |
;; * A tag indicates in what context the keybinding applies. Common tags are :app and :editor which respectively | |
;; indicate the keybinding can be used anywhere and the keybinding can only be used when editing text. | |
;; | |
;; * Keys are the actual keys you type for the keybinding. Most keybindings start with modifier(s) e.g. alt or control. | |
;; Keybindings with modifiers have the format "modifier(s)-key". For example "alt-shift-x" means press alt, shift and x | |
;; at once. For more on configuring keys see https://github.com/LightTable/LightTable/blob/master/doc/behavior-and-keymap-configuration.md#keys. | |
;; | |
;; * Command is the specific LightTable command(s) to invoke. To search available commands, | |
;; start typing a search term after "KEYS". Once you've found the desired command, press TAB to have autocomplete | |
;; fill in the command name. For more on configuring commands see https://github.com/LightTable/LightTable/blob/master/doc/behavior-and-keymap-configuration.md#commands-in-keybindings. | |
[ | |
[:editor "ctrl-alt-w" :editor.watch.watch-selection] | |
[:editor "alt-shift-w" :editor.watch.unwatch] | |
[:app "ctrl-pageup" [:tabs.prev]] | |
[:app "ctrl-pagedown" [:tabs.next]] | |
[:editor "ctrl-d" [:editor.doc.toggle]] | |
[:editor "ctrl-/" [:toggle-comment-selection]] | |
[:editor "ctrl-shift-/" [:toggle-comment-selection | |
:editor.line-down | |
:editor.selection.clear]] | |
[:editor "ctrl-i" [:smart-indent-selection]] | |
[:editor "ctrl-'" [:paredit.select.parent]] | |
[:editor "ctrl-shift-k" :editor.kill-line] | |
[:editor "ctrl-j" [:editor.sublime.joinLines]] | |
[:editor "alt-t" (:eval.custom "(clojure.test/run-all-tests | |
(re-pattern | |
(str \"^\" *ns* \".*\")))" | |
{:result-type :statusbar})] | |
;; To subtract a keybinding, prefix the key with '-' e.g. | |
;; [:app "-ctrl-shift-d" :docs.search.show] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment