[note_editor]
key_bindings = [
  { key = "k", command = "note_editor_cursor_up" },
  { key = "j", command = "note_editor_cursor_down" },
  { key = "up", command = "note_editor_cursor_up" },
  { key = "down", command = "note_editor_cursor_down" },
  { key = "t", command = "note_editor_toggle_explorer" },
  { key = "tab", command = "note_editor_switch_pane_next" },
  { key = "shift+backtab", command = "note_editor_switch_pane_previous" },
  { key = "ctrl+b", command = "note_editor_toggle_explorer" },
  { key = "ctrl+u", command = "note_editor_scroll_up_half_page" },
  { key = "ctrl+d", command = "note_editor_scroll_down_half_page" },
  { key = "ctrl+o", command = "note_editor_toggle_outline" },
  { key = "gg", command = "note_editor_scroll_to_top" },
  { key = "G",  command = "note_editor_scroll_to_bottom" },

  # Experimental editor
  { key = "i", command = "note_editor_insert_mode" },
  { key = "ctrl+e", command = "note_editor_experimental_toggle_view" },
  { key = "shift+r", command = "note_editor_experimental_set_read_view" },
  { key = "ctrl+x", command = "note_editor_experimental_save" },
  { key = "h", command = "note_editor_experimental_cursor_left" },
  { key = "l", command = "note_editor_experimental_cursor_right" },
  { key = "left", command = "note_editor_experimental_cursor_left" },
  { key = "right", command = "note_editor_experimental_cursor_right" },
  { key = "w", command = "note_editor_experimental_cursor_word_forward" },
  { key = "b", command = "note_editor_experimental_cursor_word_backward" },
]

[explorer]
key_bindings = [
  { key = "k", command = "explorer_up" },
  { key = "j", command = "explorer_down" },
  { key = "up", command = "explorer_up" },
  { key = "down", command = "explorer_down" },
  { key = "t", command = "explorer_toggle" },
  { key = "h", command = "explorer_hide_pane" },
  { key = "l", command = "explorer_expand_pane" },
  { key = "left", command = "explorer_hide_pane" },
  { key = "right", command = "explorer_expand_pane" },
  { key = "s", command = "explorer_sort" },
  { key = "n", command = "explorer_new_untitled_note" },
  { key = "shift+n", command = "explorer_new_untitled_folder" },
  { key = "r", command = "explorer_toggle_input_rename" },
  { key = "tab", command = "explorer_switch_pane_next" },
  { key = "shift+backtab", command = "explorer_switch_pane_previous" },
  { key = "enter", command = "explorer_open" },
  { key = "ctrl+b", command = "explorer_toggle" },
  { key = "ctrl+u", command = "explorer_scroll_up_half_page" },
  { key = "ctrl+d", command = "explorer_scroll_down_half_page" },
  { key = "ctrl+o", command = "explorer_toggle_outline" },
  { key = "gg", command = "explorer_scroll_to_top" },
  { key = "G",  command = "explorer_scroll_to_bottom" },
]

[outline]
key_bindings = [
  { key = "k", command = "outline_up" },
  { key = "j", command = "outline_down" },
  { key = "up", command = "outline_up" },
  { key = "down", command = "outline_down" },
  { key = "ctrl+o", command = "outline_toggle" },
  { key = "ctrl+b", command = "outline_toggle_explorer" },
  { key = "t", command = "outline_toggle_explorer" },
  { key = "tab", command = "outline_switch_pane_next" },
  { key = "shift+backtab", command = "outline_switch_pane_previous" },
  { key = "enter", command = "outline_expand" },
  { key = "g", command = "outline_select" },
  { key = "gg", command = "explorer_scroll_to_top" },
  { key = "G",  command = "explorer_scroll_to_bottom" },
]

[input_modal]
key_bindings = [
  { key = "esc", command = "input_modal_cancel" },
  { key = "enter", command = "input_modal_accept" },
  { key = "i", command = "input_modal_edit_mode" },
  { key = "h", command = "input_modal_left" },
  { key = "l", command = "input_modal_right" },
  { key = "left", command = "input_modal_left" },
  { key = "right", command = "input_modal_right" },
  { key = "w", command = "input_modal_word_forward" },
  { key = "b", command = "input_modal_word_backward" },
]
