LoginSignup
0
0

More than 5 years have passed since last update.

Nuclide の File Tree でファイルの追加・削除のショートカットキーを設定する

Posted at

Nuclide の File Tree で a (ファイル追加)、shift-a (フォルダ追加)、m (リネーム)、d (削除) のショートカットが使えないのがすごく不便だったので、設定したときのメモ。あと、j (上)、k (下)、h (左)、l (右) も設定。Nuclide の File Tree では、全部入力した文字でファイルを絞って行く go-to-letter- に割り当てられてる。

~/.atom/keymap.cson に、以下を追加。

'.nuclide-file-tree':
  'ctrl-cmd-a': 'nuclide-file-tree:add-file'
  'ctrl-shift-cmd-a': 'nuclide-file-tree:add-folder'
  'ctrl-cmd-m': 'nuclide-file-tree:rename-selection'
  'cmd-d': 'nuclide-file-tree:remove'
  'ctrl-cmd-j': 'core:move-down'
  'ctrl-cmd-k': 'core:move-up'
  'ctrl-cmd-h': 'core:move-left'
  'ctrl-cmd-l': 'core:move-right'

cmd + . で key binding のデバッグができるので、それを見ながら、他と重複しないように設定すれば OK。

アクションは、nuclide-file-tree/lib/FileTreeController.js が参考になる。

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