LTを始めたとき、私はこのフラストレーションを共有しました。http://docs.lighttable.com/から
キーバインドを変更しますか?
キーバインドは、ライト テーブルの .keymap ファイルで定義されます。ユーザー キーマップを開くには、Settings: User keymap コマンドを実行します。デフォルトのキーバインドを確認するには、Settings: Default keymap コマンドを実行します。キーはコンテキスト (タグ) に基づいてバインドされるため、コンテキストに応じたコマンド スキームを作成できます。
キーバインドを構成する
user.keymap ファイルにキーバインドを追加するには、[:TAG "KEYBINDING" :COMMAND] の形式でベクトルを追加します (例: [:editor "alt-w" :editor.watch.watch-selection])。コマンドが引数を取る場合は、コマンドとその引数を括弧で囲みます。例: [:editor "alt-(" (:paredit.select.parent "(")]]。 「-」付きのキー 例 [:app "-ctrl-shift-d" :docs.search.show]。
emacs プラグインが途中でこれらすべてを台無しにしていることを考慮してください。私は MAC OS を実行しており、ほとんどの emacs キーバインドをすぐに使用できます。正確な理由はわかりませんが、あまり気にしないので、最終的に実際には使用しなくなり、emacs plugin
見逃したキーバインドを定義しただけです。私のuser.keymap
;; Your file has been converted to the new flat format.
;; Conversion does not preserve comments or indentation.
;; File is backed up at /Users/jaime/Library/Application Support/LightTable/User/user.keymap.bak
[
[:editor "ctrl-g" :goto-line]
[:editor "ctrl-l" :lt.plugins.openurl/open-url "http://google.com"]
[:editor "ctrl-i" :smart-indent-selection]
[:editor "ctrl-o" :editor.doc.toggle]
[:editor "ctrl-s" :editor.sublime.splitSelectionByLine]
;; [:editor "alt-w" :editor.watch.watch-selection]
;; [:editor "alt-shift-w" :editor.watch.unwatch]
;; ;; lt floating bars
[:editor "ctrl-u" :toggle-comment-selection]
[:editor "ctrl-c" :toggle-console]
[:editor "ctrl-w" :workspace.show]
;; ;; emacs inheritance
[:editor "ctrl-k" :editor.cut]
[:editor "ctrl-y" :editor.paste]
[:filter-list.input "ctrl-n" (:filter-list.input.move-selection 1)]
[:filter-list.input "ctrl-p" (:filter-list.input.move-selection -1)]
]
kill-ring
LTには実数がないことに注意してください。のいくつかのキーバインドもコメントアウトしましたdefault.keymap
。
;; [:editor "ctrl-d" :editor.doc.toggle]
これはデフォルトの操作を隠します。必要に応じて、emacs プラグインを無効にするか、コマンド ウィンドウ トグルを隠している をdelete
コメント アウトする必要があります。ctrl-space
ローカル バージョンは http://docs.lighttable.com/#plugins-directoryにあります。