anthropics / anthropics/claude-code

[DOCS] Desktop: Ctrl+1–Ctrl+9 session switching is missing from the Code tab shortcut table

Đang mở Phù hợp với người mới
#90,762 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:desktop documentation enhancement platform:windows
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

The Code tab has a direct-jump session shortcut that the documentation never mentions: `Ctrl`+`1` through `Ctrl`+`9` switch to a session by its position in the sidebar.

It is clearly a deliberate feature rather than an accident — hold `Ctrl` and each eligible sidebar row displays the number assigned to it, so the app teaches the shortcut in the UI while the docs stay silent about it.

## Where it is missing

The [Desktop application](https://code.claude.com/docs/en/desktop) page covers the neighboring behavior twice and skips this one both times:

* The **Keyboard shortcuts** table lists `Ctrl` `Tab` / `Ctrl` `Shift` `Tab` and `Cmd` `Shift` `]` / `Cmd` `Shift` `[` as "Next or previous session". No direct-jump row.
* **Work in parallel with sessions** describes `Ctrl+Tab` cycling and the `Ctrl`-click gesture that opens a session in a split pane — so the prose covers a different `Ctrl` chord on the same sidebar rows, and still not this one.

The table's only digit row is `1`–`9`, "Select item in an open menu". That is a different behavior in a different context, so a reader scanning for digit shortcuts is actively pointed away from the session one.

## What the row should say

Confirmed on Windows. Following the page's own convention that Windows uses `Ctrl` where the table writes `Cmd`, the macOS chord is presumably `Cmd`+digit, but that was not tested here.

| Shortcut | Action |
| -------- | ------ |
| `Ctrl` `1`–`Ctrl` `9` | Switch to the session in that sidebar position |

Three details are worth stating alongside it, because each one surprises people who assume browser-tab semantics:

* Positions are counted across the **whole sidebar**, flattened over projects, not restarted per project.
* `Ctrl`+`9` is the **ninth slot**, not the last session. There is no jump-to-the-end.
* Sessions past the ninth position **get no number** and cannot be reached this way at all.

## Why this is worth a docs fix rather than shrugging at

The docs are effectively the only reference for Desktop shortcuts:

* Desktop does not read `keybindings.json` (#84101), so `/keybindings` and the keybindings reference — which document the CLI's contexts and actions in full — describe nothing that applies here.
* The in-app shortcut list is the other route, and it is unreachable on keyboard layouts where `/` needs Shift (#86641), so on those layouts the published table is the only list a user can get to.

The third detail above also matters beyond discoverability: The nine-slot ceiling is exactly why direct jumps do not substitute for recency-ordered cycling, which is the subject of #90624.

## Related

* #81920 — the same class for the composer: Markdown formatting shortcuts exist but are documented nowhere. That report asks for formatting shortcuts specifically; this one is about a session shortcut omitted from a table that otherwise covers session navigation.
* #75523 — the pinned-sidebar state behind `Ctrl+B` is likewise undiscoverable and undocumented.

## Environment

* Claude Desktop 1.40609.0 (Microsoft Store MSIX build), bundled engine `claude-code` 2.1.247
* Windows 11 Education 25H2, build 26200
* Documentation read 2026-08-30

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Open the Desktop application page and inspect the Keyboard shortcuts table alongside the Work in parallel with sessions section. Add the missing Ctrl+1–Ctrl+9 session-switching entry and document the whole-sidebar positions, ninth-slot limit, and sessions beyond the ninth position. Confirm the wording distinguishes it from menu selection and session cycling.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
desktop, documentation
Loại issue
Tài liệu
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
92/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.