Skip to content

Add Ctrl+Shift+Home/End selection and document Windows Terminal workaround - #927

Open
barkure (barkure) wants to merge 1 commit into
microsoft:mainfrom
barkure:fix/687-ctrl-shift-home-end
Open

Add Ctrl+Shift+Home/End selection and document Windows Terminal workaround#927
barkure (barkure) wants to merge 1 commit into
microsoft:mainfrom
barkure:fix/687-ctrl-shift-home-end

Conversation

@barkure

Copy link
Copy Markdown
Contributor

Fixes #687

The VT sequences CSI 1;5 H/F (Ctrl+Home/End) and CSI 1;6 H/F (Ctrl+Shift+Home/End) were already correctly parsed in input.rs:parse_modifiers and handled in tui.rs HOME/END (combined CTRL+SHIFT check). The remaining gap was test coverage and user-facing documentation for the Windows Terminal interception.

  • add regression test for VT parsing of ESC[1;5H/ESC[1;6H/ESC[1;5F/ESC[1;6F
  • add TUI test that Ctrl+Shift+Home/End creates selection to file start/end
  • document required Windows Terminal settings.json unbind in README.md

Validation:

  • cargo test -p edit --lib
  • cargo test -p stdext
  • cargo clippy -p edit -p stdext
  • cargo fmt --check

…round

Fixes microsoft#687

The VT sequences CSI 1;5 H/F (Ctrl+Home/End) and CSI 1;6 H/F
(Ctrl+Shift+Home/End) were already correctly parsed in
input.rs:parse_modifiers and handled in tui.rs HOME/END. Add
regression tests for the VT parsing and the selection behavior,
and document the required Windows Terminal keybinding unbind in
README.md.
@barkure
barkure (barkure) force-pushed the fix/687-ctrl-shift-home-end branch from c8b2639 to 0f5ae36 Compare August 19, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Shift+Ctrl+Home and Shift+Ctrl+End support

1 participant