Does anyone have a cheatsheet for LightTable, even better for the paredit plugin, it seems my google-fu is not up to finding one?
相关问题
- Better Sequence Duplicate Remover
- Installation of Leiningen 2.X in Mac OS X
- Questions about Lists and other stuff in Clojure
- How do I add CORS to a compojure-api app?
- How do I use Clojure in Android Studio using Gracl
相关文章
- Factor Clojure code setting many different fields
- Does learning one Lisp help in learning the other?
- Better way to nest if-let in clojure
- Idiomatic approach for structuring Clojure source
- Is a “transparent” macrolet possible?
- Detect operating system in Clojure
- Using quote in Clojure
- Enums and Clojure
I don't think a general cheat sheet for LightTable exists yet! But for the paredit plugin...I hope the following helps
Paredit Commands
(a b (c | d) e) => (a b c | d e)
(a b (c | d) e) => (a (b c | d))
(a b (c | d) e) => (a b (c | d e))
(a b (c | d) e) => (a b c | (d) e)
(a b (c | d) e) => (a b (c) | d e)
(a b (c | d) e) => (a b (c d)| e)
(a b (c | d) e) => (a b |(c d) e)
(a b | (c d) e) => (a b (|c d) e)
(a b (c d) | e) => (a b (c d|) e)
Binding the keys
To bind the keys, first open user keymap (Settings: User Keymap), and then add binding entries in for the editors in which you want paredit bindings.
e.g. I have them bound in all editors, so the relevant bit of my keymap is:
I found this page while searching for a cheat sheet of the default keybindings, but the existing answers only focused on paredit. I kept searching and eventually discovered the command "Settings: Default keymap" in the command pane. This command shows all the default keybindings for tasks like inline evaluation, navigating through matches during find & replace, and navigating through tabs. Here are the default keybindings as of April 2017:
Hope this helps someone.
Only because the others have not said it yet. You can bind multiple actions to one shortcut as the actions are stored in a list:
Most of the action happens, when you hit CTRL + Space so you get all commands in there. Just type a keyword and you get all options for it.
I think you want to bind the "usual" keyboard bindings from paredit into lighttable. That's very easy:
Settings
Here you can edit your paredit plugin and bind the commands you would like to use. For paredit I added to my default keymap:
Values like
paredit.shrink.right
can be found if you hit CTRL + Space and typeparedit
. As you have 3 examples above, you can just think of how the other commands would look like:"Paredit: Shrink right" is the keyword
:paredit.shrink.right
I am pretty sure that I found a list in the internet where those commands were written down, but I can't find it at this moment. But if you know how to "convert" it to keywords, you can just use CTRL + Space to find all commands you need.
When you correctly bound a keyword on a keybinding you can see this binding in the command list CTRL + Space.
With this in your mind, you actually have something like a Cheatsheet printed as a map of bindings and actions. Hope this helps ;-)