@@ -69,6 +69,15 @@ type CoreConfig struct {
6969 Atuin int `toml:"atuin-history"`
7070 AtuinDBPath string `toml:"atuin-db-path"`
7171 CobraProbeEnabled bool `toml:"cobra-probe-enabled"`
72+ // NavigateClosed decides what the navigate keys do while the suggestion
73+ // menu is closed: "history" browses iris' own merged history (the default),
74+ // "shell" forwards the key to the shell instead.
75+ //
76+ // Forwarding matters when the navigate keys are left on the arrows and
77+ // something else already owns them at the prompt -- atuin binds Up, for
78+ // instance. Without it the only way to keep that binding is to move iris
79+ // onto other keys, which costs arrow-key navigation of the menu entirely.
80+ NavigateClosed string `toml:"navigate-closed"`
7281}
7382
7483type UIConfig struct {
@@ -101,15 +110,6 @@ type KeybindingsConfig struct {
101110 NavigateUp string `toml:"navigate-up"`
102111 NavigateDown string `toml:"navigate-down"`
103112 NavigateRight string `toml:"navigate-right"`
104- // NavigateClosed decides what the navigate keys do while the suggestion
105- // menu is closed: "history" browses iris' own merged history (the default),
106- // "shell" forwards the key to the shell instead.
107- //
108- // Forwarding matters when the navigate keys are left on the arrows and
109- // something else already owns them at the prompt -- atuin binds Up, for
110- // instance. Without it the only way to keep that binding is to move iris
111- // onto other keys, which costs arrow-key navigation of the menu entirely.
112- NavigateClosed string `toml:"navigate-closed"`
113113}
114114
115115type ZoxideConfig struct {
@@ -279,8 +279,8 @@ func Load() (*Config, error) {
279279 if cfg .Keybindings .SelectSuggestion == "" {
280280 cfg .Keybindings .SelectSuggestion = "tab"
281281 }
282- if cfg .Keybindings .NavigateClosed == "" {
283- cfg .Keybindings .NavigateClosed = "history"
282+ if cfg .Core .NavigateClosed == "" {
283+ cfg .Core .NavigateClosed = "history"
284284 }
285285 if cfg .Keybindings .NavigateUp == "" {
286286 cfg .Keybindings .NavigateUp = "up"
0 commit comments