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のショートカットキーを設定する

Last updated at Posted at 2014-04-08

前回のつづき。

LightTableにはpareditというLisp系言語に便利な機能のショートカットを設定できるようです。

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]
              }
     }
 :- {:tabs {"pmeta-w" [:tabs.close]}}}
キー 適用コマンド 概要
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 現在のリストの囲いを削除

まだあまり使っていませんが便利かもしれません。
少し使いましたが:paredit.grow.rightと:paredit.select.parentは便利ですね。

つづき

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?