LoginSignup
7
7

More than 5 years have passed since last update.

LightTableのショートカットキー設定

Last updated at Posted at 2014-04-07

LightTableのユーザ定義のショートカットキー設定(User keymap)のメモです。(Windows環境)

:toggle-comment-selectionと:smart-indent-selectionは便利なので必須ですね。

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]
              }
     }
 :- {:tabs {"pmeta-w" [:tabs.close]}}}

デフォルトではalt-wが:editor.watch.watch-selectionの設定になっているかと思いますが、Windowsではalt-wがメニューバーの「Windows」に吸われるのでctrl-wに変更しています。

ctrl-wはデフォルトでは「タブを閉じる」設定になっているので、:-の箇所でその設定を解除しています。

キー 適用コマンド 概要
ctrl-q :workspace.show Workspaceの表示/非表示
alt-c :toggle-console :clear-console Consoleの表示/非表示+クリア
ctrl-w :editor.watch.watch-selection 選択箇所にWatch(実行結果を参照できる箇所)を設定
ctrl-shift-w :editor.watch.remove-all Watchをすべて解除
ctrl-alt-w :editor.watch.unwatch 選択箇所のWatchを解除
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 フルスクリーンに移行/解除

※追記 ctrl-left,rightはalt-に変更しました。さらにf11を追加

他にも便利な機能がありそうですが、調べきれていません。
何かいい機能があったら教えて欲しいです。

つづき

7
7
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
7
7