Skip to content

Instantly share code, notes, and snippets.

@vire
Forked from rarous/user.keymap.clj
Created November 14, 2015 12:41
Show Gist options
  • Select an option

  • Save vire/8814d55d9fda5d24ba16 to your computer and use it in GitHub Desktop.

Select an option

Save vire/8814d55d9fda5d24ba16 to your computer and use it in GitHub Desktop.

Revisions

  1. @rarous rarous created this gist Nov 14, 2015.
    95 changes: 95 additions & 0 deletions user.keymap.clj
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,95 @@
    [
    [:app "cmd-t" :workspace.show]
    [:app "cmd-shift-f" :searcher.show]
    [:app "cmd-shift-k" :clear-console]
    [:app "cmd-shift-s" :save-all]
    [:app "cmd-ctrl-f" :window.fullscreen]
    [:app "cmd-k" :toggle-console]
    [:app "tab" :focus-last-editor]

    [:workspace.focused "enter" :lt.plugins.workspace-nav/open-selection]
    [:workspace.focused "backspace" :lt.plugins.workspace-nav/close-parent]
    [:workspace.focused "up" :lt.plugins.workspace-nav/navigate-north]
    [:workspace.focused "down" :lt.plugins.workspace-nav/navigate-south]
    [:workspace.focused "esc" :workspace.show]
    [:workspace.focused "end" :lt.plugins.workspace-nav/navigate-bottom]
    [:workspace.focused "home" :lt.plugins.workspace-nav/navigate-top]

    [:editor.keys.hinting.active "tab" :auto-complete]
    [:editor.keys.hinting.active "enter" :passthrough]

    [:editor "alt-shift-l" :lt.plugins.workspace-nav/focus]

    [:editor "ctrl-b" :editor.sublime.goToBracket]
    [:editor "ctrl-c" :eval.cancel-all! :clear-inline-results]
    [:editor "ctrl-d" :editor.delete-line]
    [:editor "cmd-v" :editor.paste]
    [:editor "alt-shift-w" :editor.watch.unwatch]
    [:editor "ctrl-n" :editor.sublime.selectNextOccurrence]
    [:editor "shift-enter" :editor.sublime.duplicateLine]
    [:editor "ctrl-k d" :editor.select-all :smart-indent-selection :editor.selection.clear :lt.plugins.marks/jump-to-large-move-mark]
    [:editor "cmd-c" :editor.copy]
    [:editor "cmd-d" :editor.doc.toggle]
    [:editor "alt-w" :editor.watch.watch-selection]
    [:editor "ctrl-shift-b" :editor.sublime.selectBetweenBrackets]
    [:editor "ctrl-w" :editor.sublime.selectScope]
    [:editor "ctrl-k r" :lt.plugins.reflow/reflow]

    [:editor "\"" (:editor.open-pair "\"")]
    [:editor "(" (:editor.open-pair "(")]
    [:editor ")" (:editor.close-pair ")")]
    [:editor "ctrl-alt-9" (:editor.open-pair "{")]
    [:editor "ctrl-alt-[" (:editor.open-pair "[")]

    [:editor.clj "shift-alt-s" :paredit.select.parent]
    [:editor.clj "cmd-shift-," :paredit.shrink.right]
    [:editor.clj "alt-s" (:paredit.select.parent "(") :smart-indent-selection :paredit.select.clear]
    [:editor.clj "cmd-shift-." :paredit.shrink.left]
    [:editor.clj "cmd-shift-0" :paredit.grow.right]
    [:editor.clj "alt-enter" (:paredit.select.parent "(") :eval-editor-form :paredit.select.clear]
    [:editor.clj "cmd-shift-s" :paredit-plus.split-sexp]
    [:editor.clj "cmd-shift-9" :paredit.grow.left]
    [:editor.clj "cmd-shift-j" :paredit-plus.join-sexps]
    [:editor.clj "shift-alt-k" :paredit-plus.kill]
    [:editor.clj "cmd-/" :toggle-comment-selection]
    [:editor.clj "ctrl-alt-d" :paredit.move.down.forward]
    [:editor.clj "ctrl-alt-u" :paredit.move.up.backward]
    [:editor.clj "ctrl-alt-p" :paredit.move.down.backward]
    [:editor.clj "ctrl-alt-n" :paredit.move.up.forward]
    [:editor.clj "ctrl-alt-s" :paredit-plus.splice-sexp]
    [:editor.clj "ctrl-alt-up" :paredit-plus.splice-sexp-killing-backward]
    [:editor.clj "ctrl-alt-down" :paredit-plus.splice-sexp-killing-forward]
    [:editor.clj "alt-r" (:eval.custom "(clojure.test/run-tests)" {:result-type :statusbar})]
    [:editor.clj "alt-k" (:eval.custom
    "(do
    (require 'kibit.check)
    (prn :WOW)
    (if-let [better (kibit.check/check-expr '__SELECTION__)]
    (with-out-str
    (clojure.pprint/write (:alt better)
    :suppress-namespaces true
    :dispatch clojure.pprint/code-dispatch))
    __SELECTION*__))"
    {:verbatim true, :result-type :replace})]

    [:editor.cljs "shift-alt-s" :paredit.select.parent]
    [:editor.cljs "cmd-shift-," :paredit.shrink.right]
    [:editor.cljs "alt-s" (:paredit.select.parent "(") :smart-indent-selection :paredit.select.clear]
    [:editor.cljs "cmd-shift-." :paredit.shrink.left]
    [:editor.cljs "cmd-shift-0" :paredit.grow.right]
    [:editor.cljs "alt-enter" (:paredit.select.parent "(") :eval-editor-form :paredit.select.clear]
    [:editor.cljs "cmd-shift-s" :paredit-plus.split-sexp]
    [:editor.cljs "cmd-shift-9" :paredit.grow.left]
    [:editor.cljs "cms-shift-j" :paredit-plus.join-sexps]
    [:editor.cljs "shift-alt-k" :paredit-plus.kill]
    [:editor.cljs "cmd-/" :toggle-comment-selection]
    [:editor.cljs "ctrl-alt-d" :paredit.move.down.forward]
    [:editor.cljs "ctrl-alt-u" :paredit.move.up.backward]
    [:editor.cljs "ctrl-alt-p" :paredit.move.down.backward]
    [:editor.cljs "ctrl-alt-n" :paredit.move.up.forward]
    [:editor.cljs "ctrl-alt-s" :paredit-plus.splice-sexp]
    [:editor.cljs "ctrl-alt-up" :paredit-plus.splice-sexp-killing-backward]
    [:editor.cljs "ctrl-alt-down" :paredit-plus.splice-sexp-killing-forward]

    [:editor.javascript "alt-enter" (:paredit.select.parent "{") :eval-editor-form :paredit.select.clear]
    ]