Skip to content

Ctrl+1–9 and Ctrl+0 go to a character's main window (window) - #154

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-vri5o8
Nov 26, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-vri5o8

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

What

In the window, Ctrl+1 to Ctrl+9 and Ctrl+0 go to the main window of the first ten open characters, in the sidebar's order (CommandCatalog.CharacterCycle, the order Alt+J/K walk). A digit with no character behind it says so and opens nothing.

  • Ctrl+0 is the tenth character (Grave's call), so the window's zoom reset moves to Ctrl+Numpad 0, the right-click menu and Ctrl+P.
  • The sidebar's character rows, the header's character menu and Ctrl+P's Switch to entries show ⌃N where the chord exists (instead of ⌥J/⌥K on the two neighbours). Help and --help mention it on that host only.
  • F4 reports Ctrl+digit as taken in the window and as never arriving in a terminal.

Terminal

No Ctrl+digit chord exists there: terminals send Ctrl+1 as 1, Ctrl+3 as Escape, Ctrl+8 as Backspace (MacroKeys.DigitBytes), and the kitty keyboard protocol can't be decoded through SharpConsoleUI. Alt+digit is already the character's own windows, so the terminal keeps Alt+J/K and Ctrl+P. The chords are registered only where HostKeys.ReportsChordsWhole, so nothing in the terminal changes.

Tests

CharacterJumpTests (Tui), TerminalZoomTests.CtrlAndADigitReachTheClientAsTheChordAndTypeNothing (Avalonia), and SurfaceParityTests.F4TellsTheWindowsTruth now uses Ctrl+H as its window-only macro chord. All seven suites pass locally except AReadOnlyCacheDirectory_DegradesToMemoryOnly, which fails only because the container runs as root.


Generated by Claude Code

The window reports Ctrl+digit whole, so the first ten open characters (the
sidebar's order, the one Alt+J/K walk) get a chord each. The sidebar, the
character menu, Ctrl+P, help and --help name it; F4 says taken there and
never-arrives in a terminal, which sends those chords as other keys' bytes.
Ctrl+0 is the tenth character, so the window's zoom reset is Ctrl+Numpad 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7VrK9BTNSCRykCrj3p
@HarryCordewener HarryCordewener self-assigned this Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review November 26, 2026 23:42
@HarryCordewener
HarryCordewener merged commit c577728 into main Nov 26, 2026
3 of 4 checks passed
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.

2 participants