Skip to content

Instantly share code, notes, and snippets.

@jordn
Created December 28, 2015 20:19
Show Gist options
  • Save jordn/956f2ee0f3dc6616b1c1 to your computer and use it in GitHub Desktop.
Save jordn/956f2ee0f3dc6616b1c1 to your computer and use it in GitHub Desktop.
Keymap of sublime shortcuts in LightTable
;; User keymap
;; -----------------------------
;; Keymaps are stored as a set of diffs that are merged 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").
[
[:editor "alt-w" :editor.watch.watch-selection]
[:editor "alt-shift-w" :editor.watch.unwatch]
;; Sublime
[:editor "pmeta-/" :toggle-comment-selection]
[:editor "ctrl-shift-up" :editor.sublime.selectLinesUpward]
[:editor "ctrl-shift-down" :editor.sublime.selectLinesDownward]
[:editor "pmeta-d" :editor.sublime.selectNextOccurrence]
[:editor "ctrl-m" :editor.sublime.goToBracket]
[:editor "ctrl-shift-m" :editor.sublime.selectBetweenBrackets]
[:editor "shift-pmeta-space" :editor.sublime.selectScope]
[:editor "ctrl-pmeta-up" :editor.sublime.swapLineUp]
[:editor "ctrl-pmeta-down" :editor.sublime.swapLineDown]
[:editor "shift-pmeta-l" :editor.sublime.splitSelectionByLine]
[:editor "pmeta-j" :editor.sublime.joinLines]
[:editor "shift-pmeta-d" :editor.sublime.duplicateLine]
;; To subtract a binding, 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