我找不到一张轻便的桌子作弊表

时间:2014-03-04 09:43:12

标签: clojure lighttable paredit

有没有人有LightTable的备忘单,甚至更好的paredit插件,似乎我的google-fu不能找到一个?

4 个答案:

答案 0 :(得分:25)

我认为LightTable的一般备忘单还没有存在! 但对于paredit插件......我希望以下帮助

Paredit命令

  • :paredit.unwrap.parent (a b (c | d) e) => (a b c | d e)
  • :paredit.grow.left (a b (c | d) e) => (a (b c | d))
  • :paredit.grow.right (a b (c | d) e) => (a b (c | d e))
  • :paredit.shrink.left (a b (c | d) e) => (a b c | (d) e)
  • :paredit.shrink.right (a b (c | d) e) => (a b (c) | d e)
  • :paredit.move.up.forward (a b (c | d) e) => (a b (c d)| e)
  • :paredit.move.up.backward (a b (c | d) e) => (a b |(c d) e)
  • :paredit.move.down.forward (a b | (c d) e) => (a b (|c d) e)
  • :paredit.move.down.backward (a b (c d) | e) => (a b (c d|) e)

绑定密钥

要绑定密钥,请首先打开用户密钥映射(设置:用户密钥映射),然后为要进行paredit绑定的编辑器添加绑定条目。

e.g。我将它们绑定在所有编辑器中,因此我的键映射的相关位是:

{:+ {:app { ...}
     :editor { ...
              "ctrl-shift-right" [:paredit.grow.right]
              "ctrl-shift-left" [:paredit.shrink.right]
              "ctrl-right" [:paredit.shrink.left]
              "ctrl-left" [:paredit.grow.left]}}
 :- {}}

答案 1 :(得分:12)

大多数操作都会发生,当你点击CTRL + Space时,你就可以获得所有命令。只需键入一个关键字,您就可以获得所有选项。

我认为你想把paredit的“常用”键盘绑定绑定到lighttable中。这很容易:

  1. 按CTRL +空格
  2. 输入Settings
  3. 您将获得实际5项的列表。选择“默认键盘映射”(或“用户键盘映射”)
  4. 你得到一个哈希映射,其中包含到目前为止设置的键绑定
  5. 在这里,您可以编辑您的paredit插件并绑定您想要使用的命令。对于paredit,我添加到我的默认键映射:

    :editor {"ctrl-left"  [:paredit.shrink.right]
             "ctrl-right" [:paredit.grow.right]
             "ctrl-s"     [:paredit.unwrap.parent]}
    

    如果按CTRL + Space并键入paredit.shrink.right,则可以找到paredit之类的值。如上所示,您可以考虑其他命令的外观:

    “Paredit:Shrink right”是关键字:paredit.shrink.right

    我很确定我在互联网上找到了一个列出这些命令的列表,但此刻我找不到它。但是如果你知道如何将它“转换”为关键字,你可以使用CTRL + Space来查找你需要的所有命令。

    在键绑定上正确绑定关键字时,可以在命令列表CTRL + Space中看到此绑定。

    考虑到这一点,你实际上有一个像Cheatsheet一样的东西,作为绑定和动作的地图打印出来。希望这会有所帮助; - )

答案 2 :(得分:8)

只是因为其他人还没说过。您可以将多个操作绑定到一个快捷方式,因为操作存储在列表中:

:editor {"ctrl-shift-up" [:paredit.grow.right :paredit.shrink.right]
         "ctrl-right-down" [:paredit.shrink.left :paredit.grow.left]}

答案 3 :(得分:0)

我在搜索默认键绑定的备忘单时找到了此页面,但现有答案仅关注paredit。我一直在搜索并最终在命令窗格中发现命令“Settings:Default keymap”。此命令显示内联评估等任务的所有默认键绑定,在查找和放大期间浏览匹配项。替换,并浏览选项卡。以下是截至2017年4月的默认键绑定:

 [:app "pmeta-shift-f" :searcher.show]
 [:app "ctrl-space" :show-commandbar-transient]
 [:app "pmeta-shift-n" :window.new]
 [:app "pmeta-shift-o" :open-file]
 [:app "pmeta--" :window.zoom-out]
 [:app "pmeta-n" :new-file]
 [:app "ctrl-shift-d" :docs.search.show]
 [:app "pmeta-o" :navigate-workspace-transient]
 [:app "pmeta-shift-=" :window.zoom-in]
 [:app "pmeta-=" :window.zoom-in]
 [:app "pmeta-0" :window.zoom-reset]
 [:app "pmeta-r" :refresh-connected-browser]
 [:app "f11" :window.fullscreen]

 [:browser "pmeta-l" :browser.url-bar.focus]

 [:browser.url-bar "esc" :browser.focus-content]
 [:browser.url-bar "enter" :browser.url-bar.navigate!]

 [:editor "pmeta-enter" :eval-editor-form]
 [:editor "ctrl-d" :editor.doc.toggle]
 [:editor "ctrl-," :editor.unjump]
 [:editor "ctrl-." :editor.jump-to-definition-at-cursor]
 [:editor "pmeta-shift-s" :save-as]
 [:editor "pmeta-l" :goto-line]
 [:editor "pmeta-shift-enter" :eval-editor]
 [:editor "ctrl-=" :editor.fold-code]
 [:editor "pmeta-s" :save]
 [:editor "pmeta-/" :toggle-comment-selection]

 [:editor.keys.hinting.active "enter" :passthrough]

 [:editor.keys.normal "pmeta-shift-g" :find.prev]
 [:editor.keys.normal "pmeta-f" :find.fill-selection :find.show]
 [:editor.keys.normal "pmeta-g" :find.next]
 [:editor.keys.normal "tab" :auto-complete]
 [:editor.keys.normal "backspace" :passthrough :editor.backspace-indent]

 [:filter-list.input "down" (:filter-list.input.move-selection 1)]
 [:filter-list.input "esc" (:filter-list.input.escape! :force)]
 [:filter-list.input "enter" :filter-list.input.select!]
 [:filter-list.input "up" (:filter-list.input.move-selection -1)]

 [:find-bar "pmeta-shift-g" :find.prev]
 [:find-bar "shift-enter" :find.prev]
 [:find-bar "pmeta-g" :find.next]
 [:find-bar "esc" :find.clear :find.hide]
 [:find-bar "enter" :find.next]

 [:find-bar.replace "pmeta-enter" :find.replace-all]
 [:find-bar.replace "pmeta-shift-g" :find.prev]
 [:find-bar.replace "pmeta-g" :find.next]
 [:find-bar.replace "esc" :find.clear :find.hide]
 [:find-bar.replace "enter" :find.replace]

 [:options-input "esc" :options-input.escape!]
 [:options-input "enter" :options-input.select!]

 [:plugin-manager.search "enter" :plugin-manager.search]

 [:popup "left" (:popup.move-active 1)]
 [:popup "shift-tab" (:popup.move-active -1)]
 [:popup "esc" (:popup.escape)]
 [:popup "tab" (:popup.move-active 1)]
 [:popup "enter" (:popup.exec-active)]
 [:popup "right" (:popup.move-active -1)]

 [:popup.input "left" :passthrough]
 [:popup.input "right" :passthrough]

 [:searcher.location "enter" :searcher.search]

 [:searcher.replace "pmeta-enter" :searcher.replace-all]

 [:searcher.search "enter" :searcher.search]

 [:sidebar.clients "esc" :show-connect]

 [:sidebar.doc.search.input "esc" :docs.search.hide]
 [:sidebar.doc.search.input "enter" :docs.search.exec]

 [:tabs "pmeta-8" (:tabs.goto 7)]
 [:tabs "pmeta-9" (:tabs.goto :last)]
 [:tabs "ctrl-shift-tab" :tabs.prev]
 [:tabs "ctrl-tab" :tabs.next]
 [:tabs "pmeta-shift-[" :tabs.prev]
 [:tabs "pmeta-1" (:tabs.goto 0)]
 [:tabs "pmeta-shift-]" :tabs.next]
 [:tabs "pmeta-2" (:tabs.goto 1)]
 [:tabs "pmeta-3" (:tabs.goto 2)]
 [:tabs "pmeta-4" (:tabs.goto 3)]
 [:tabs "pmeta-5" (:tabs.goto 4)]
 [:tabs "pmeta-6" (:tabs.goto 5)]
 [:tabs "pmeta-7" (:tabs.goto 6)]
 [:tabs "pmeta-w" :tabs.close]

 [:tree.rename "esc" :workspace.rename.cancel!]
 [:tree.rename "enter" :workspace.rename.submit!]

希望这有助于某人。