You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tui: Tab cannot indent a multi-line Playbook selection — the selection menu claims the key #1106
Spec 0094 gives Tab / S-Tab list nesting that "operate on every list line the selection spans, or just the cursor's line when there is no selection". The multi-line half is unreachable: a selection also shows the selection action menu, and that menu claims Tab first, to focus itself.
if !menu_focused {ifmatches!(key.code,KeyCode::Tab) && !ctrl && !alt && !super_mod {let menu = popup.selection_menu.get_or_insert_with(Default::default);
menu.focused = true;returntrue;}returnfalse;}
(crates/cli/src/app/editor.rs ~lines 1100–1110 @ ad47152 — handle_playbook_selection_menu_key runs before the editor's own key match, so KeyCode::Tab => self.shift_playbook_indent(false) at ~line 811 never sees it.)
S-Tab is not intercepted, so it still outdents the selection. The pair is asymmetric: you can un-nest a multi-line selection but not nest it.
Repro
Document - one\n- two\n- three\n.
Put the caret at the start, press S-Down twice (selection (2, 14), menu appears).
Press Tab.
Observed: document unchanged; the selection menu takes focus.
after Tab with selection: '- one\n- two\n- three\n'
after S-Tab with selection: '- one\n- two\n - three\n' ← outdent applied
Without a selection, Tab indents the caret's line correctly (- three → - three), so the binding works — it is only shadowed while a selection exists, which is exactly when multi-line nesting is wanted.
Expected
Indenting a selected block of list items should work from the keyboard. Options:
Activity
fix(tui): let Tab indent a multi-line Playbook selection; C-o focuses…