1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LightTableにParedit-Plusを導入する

Posted at

さらに前回のつづき。

LightTableのプラグインマネージャからParedit-Plusを導入するともっとショートカットが便利になりそうです。

user.keymap
{:+ {:app {"ctrl-q" [:workspace.show]
           "alt-c" [:toggle-console :clear-console]}

     :editor {"ctrl-w" [:editor.watch.watch-selection]
              "ctrl-shift-w" [:editor.watch.remove-all]
              "ctrl-alt-w" [:editor.watch.unwatch]
              "ctrl-/" [:toggle-comment-selection]
              "ctrl-i" [:smart-indent-selection]
              "alt-left" [:editor.line-start-smart]
              "alt-right" [:editor.line-end]
              "alt-shift-left" [:editor.line-start-smart]
              "alt-shift-right" [:editor.line-end]
              "f3" [:find.next]
              "shift-f3" [:find.prev]
              "esc" [:find.clear :find.hide]
              "ctrl-pageup" [:window.zoom-in]
              "ctrl-pagedown" [:window.zoom-out]
              "f11" [:window.fullscreen]

              "ins left"  [:paredit.grow.left]
              "ins right"  [:paredit.grow.right]
              "ins ins left" [:paredit.shrink.left]
              "ins ins right" [:paredit.shrink.right]
              "home" [:paredit.move.up.backward]
              "end" [:paredit.move.down.forward]
              "ctrl-home" [:paredit.move.down.backward]
              "ctrl-end" [:paredit.move.up.forward]
              "f4" [:paredit.select.parent]
              "f5" [:paredit.unwrap.parent]

              "f6" [:paredit-plus.delete-pair-contents]
              "ctrl-[" [:paredit-plus.wrap-square]
              "ctrl-]" [:paredit-plus.wrap-square]
              "ctrl-shift-[" [:paredit-plus.wrap-curly]
              "ctrl-shift-]" [:paredit-plus.wrap-curly]
              "ctrl-shift-8" [:paredit-plus.wrap-round]
              "ctrl-shift-9" [:paredit-plus.wrap-round]
              "ctrl-shift-2" [:paredit-plus.wrap-quote]
              "ctrl-del" [:paredit-plus.kill]
              }
     }
 :- {:tabs {"pmeta-w" [:tabs.close]
            "pmeta-shift-[" [:tabs.prev]
            "pmeta-shift-]" [:tabs.next]}}}
キー 適用コマンド 概要
f6 :paredit-plus.delete-pair-contents 現在のリストの中身をすべて削除
ctrl-[ :paredit-plus.wrap-square 現在の要素を[ ]で囲む
ctrl-] :paredit-plus.wrap-square 現在の要素を[ ]で囲む
ctrl-shift-[ :paredit-plus.wrap-curly 現在の要素を{ }で囲む
ctrl-shift-] :paredit-plus.wrap-curly 現在の要素を{ }で囲む
ctrl-shift-8 :paredit-plus.wrap-round 現在の要素を( )で囲む
ctrl-shift-9 :paredit-plus.wrap-round 現在の要素を( )で囲む
ctrl-shift-2 :paredit-plus.wrap-quote 現在の要素を" "で囲む
ctrl-del :paredit-plus.kill 現在のリスト内の右側をすべて削除

:paredit-plus.killは便利そうです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?