コンテンツにスキップ

カスタムキーバインド

Switch to Zen Mode

Mutsumi では、プリセット(vim/emacs/arrows)をベースに、個別のキーバインドをオーバーライドできます。

config.tomlkey_overrides セクションで、アクション名に新しいキーを割り当てます:

keybindings = "vim" # ベースプリセット
[key_overrides]
quit = "ctrl+q" # 'q' の代わりに Ctrl+Q で終了
cursor_down = "ctrl+j" # 'j' の代わりに Ctrl+J で下に移動
cursor_up = "ctrl+k" # 'k' の代わりに Ctrl+K で上に移動

オーバーライド可能なアクション

Section titled “オーバーライド可能なアクション”

以下のアクション名を使用して、任意のキーバインドをオーバーライドできます:

アクション名説明vim デフォルト
cursor_downカーソルを下に移動j
cursor_upカーソルを上に移動k
cursor_topリストの先頭にジャンプgg
cursor_bottomリストの末尾にジャンプG
アクション名説明vim デフォルト
toggle_done完了/未完了の切り替えspace
new_task新しいタスクの作成n
edit_taskタスクの編集e
inline_editインライン編集i
show_detail詳細パネルの展開enter
close_detailパネルを閉じるescape
priority_up優先度を上げる+
priority_down優先度を下げる-
copy_taskタスクをコピーy
paste_taskペースト(下)p
paste_task_aboveペースト(上)P
add_childサブタスクの追加A
toggle_foldサブタスクの折りたたみz
sortソートs
アクション名説明vim デフォルト
next_tab次のタブへtab
prev_tab前のタブへshift+tab
tab_1Today タブ1
tab_2Week タブ2
tab_3Month タブ3
tab_4Inbox タブ4
アクション名説明vim デフォルト
collapse_groupグループを折りたたみh
expand_groupグループを展開l
アクション名説明vim デフォルト
move_downタスクを下に移動J
move_upタスクを上に移動K
アクション名説明vim デフォルト
quitMutsumi を終了q
search検索/
show_helpヘルプ画面?

~/.config/mutsumi/keys/custom.toml にフルカスタムのキーマップを定義することもできます:

[keys]
move_down = "j"
move_up = "k"
toggle_done = "space"
new_task = "n"
edit_task = "e"
delete_task = "d,d" # コード: 2 回キー押下
quit = "q"
search = "/"
help = "?"
tab_next = "tab"
tab_prev = "shift+tab"
tab_1 = "1"
tab_2 = "2"
tab_3 = "3"
tab_4 = "4"
expand = "enter"
top = "g"
bottom = "shift+g"
記法説明
単一キーそのままの文字j, k, n
修飾キーctrl+, shift+, alt+ctrl+q, shift+g
特殊キーキー名space, enter, escape, tab
コードカンマ区切りd,d(dd シーケンス)