GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(web): configure terminal copy and paste shortcuts by fionn77 · Pull Request #26836 · pingdotgg/t3code

feat(web): configure terminal copy and paste shortcuts #26836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fionn77 wants to merge 10 commits into pingdotgg:main
base: main
Loading
Loading
from fionn77:feat/terminal-clipboard-keybindings
+146 −29
Open

feat(web): configure terminal copy and paste shortcuts #26836

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit Hold shift + click to select a range
07f25bd
feat(web): configure terminal copy and paste shortcuts
fionn77 Oct 29, 2026
1324888
fix(web): preserve native terminal paste shortcuts
maria-rcks Nov 1, 2026
27b6837
fix(web): retain native terminal copy fallback
maria-rcks Nov 1, 2026
d839a20
Merge origin/main into feat/terminal-clipboard-keybindings
juliusmarminge Nov 17, 2026
fba2873
fix(web): route Alt-modified clipboard chords through configured actions
juliusmarminge Nov 17, 2026
1416db8
refactor(web): share layout-aware terminal clipboard matchers from ke…
juliusmarminge Nov 17, 2026
5d63a7d
Merge origin/main into feat/terminal-clipboard-keybindings
fionn77 Nov 20, 2026
4a8d326
test(web): cover Alt-modified Insert clipboard chords
fionn77 Nov 20, 2026
5039deb
Merge origin/main into feat/terminal-clipboard-keybindings
fionn77 Nov 27, 2026
41ec448
feat(web): label terminal copy and paste in keybinding settings
fionn77 Nov 27, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
Merge origin/main into feat/terminal-clipboard-keybindings
Keeps main's terminal.previous/next commands and prompt navigation next to
the configurable clipboard commands, and moves the clipboard note into the
condensed keybindings guide's special-behavior list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@fionn77 @claude
fionn77 and claude committed Nov 27, 2026
commit 5039debc7a73abccf2e765e2cbaaaaaf70e9f546

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

6 changes: 5 additions & 1 deletion 6 apps/web/src/components/ThreadTerminalDrawer.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import {
isTerminalCopyShortcut,
isTerminalNewShortcut,
isTerminalPasteShortcut,
isTerminalCycleShortcut,
isTerminalSplitShortcut,
isTerminalSplitVerticalShortcut,
isTerminalToggleShortcut,
Expand Down Expand Up @@ -1162,7 +1163,10 @@ function TerminalSessionViewport({
return false;
}

const navigationData = terminalNavigationShortcutData(event);
const activeTerminal = terminalRef.current;
const navigationData = activeTerminal
? terminalPromptNavigationData(activeTerminal, event)
: null;
if (navigationData !== null) {
event.preventDefault();
event.stopPropagation();
Expand Down
39 changes: 2 additions & 37 deletions 39 docs/user/keybindings.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -66,43 +66,7 @@ Join modifiers and keys with `+` (`mod`, `cmd`/`meta`, `ctrl`/`control`, `alt`/`

Available context keys: `terminalFocus`, `terminalOpen`, `previewFocus`, `previewOpen`, `rightPanelOpen`, `modelPickerOpen`, `usagePageOpen`, `composerFocus`, `draftThreadRoute`, `turnRunning`, `composerEmpty`, `editableFocus`, `isWeb`, `isDesktop`. Unknown keys evaluate to `false`.

## Terminal clipboard shortcuts

To add your own terminal copy and paste shortcuts, bind `terminal.copy` and
`terminal.paste` in **Settings → Keybindings**, with the condition `terminalFocus`.
For example, these rules use the Super key on Linux and Windows, or Command on macOS:

```json
[
{ "key": "meta+c", "command": "terminal.copy", "when": "terminalFocus" },
{ "key": "meta+v", "command": "terminal.paste", "when": "terminalFocus" }
]
```

Copy uses the terminal's selected output; without a selection it leaves the
clipboard alone. Paste requires permission to write to the terminal. These bindings
add shortcuts without changing the platform's built-in terminal shortcuts.
Your window manager must pass the chosen keys through to T3 Code.

## When conditions

Available context keys are `terminalFocus`, `terminalOpen`, `previewFocus`,
`previewOpen`, `rightPanelOpen`, `modelPickerOpen`, `usagePageOpen`, `composerFocus`,
`draftThreadRoute`, `turnRunning`, `editableFocus`, `isWeb`, and `isDesktop`.
In a thread, `rightPanelOpen` is true while its right panel is open; the default
`mod+t` uses it to open the panel's new-tab menu.
`draftThreadRoute` is true on a draft thread, including a restored draft, until it is first sent.
`editableFocus` is true while a text field, the composer, or another editor has
the keyboard. `isWeb` is true in a browser tab. `isDesktop` is true in the
desktop app. Unknown keys evaluate to `false`.

`mod+1` through `mod+9` jump to the first nine threads, and to models while the
model picker is open. The thread jumps do not run while the model picker is open.
Those defaults use `isDesktop` so they do not steal the
browser's tab-switch shortcuts. Remove that condition in Settings if you want
the same jumps in a browser.

Combine keys with `!` for not, `&&` for and, `||` for or, and parentheses:
Combine with `!`, `&&`, `||`, and parentheses:

```json
{ "key": "mod+j", "command": "terminal.toggle", "when": "terminalOpen && !terminalFocus" }
Expand All @@ -120,6 +84,7 @@ The last matching rule in `keybindings.json` wins, even across different command
- `thread.regenerateTitle`: Regenerates the focused thread's title (unbound by default).
- `thread.undo` (`mod+z`): Undoes recent sidebar actions (unpin, settle, snooze, archive, discard draft) within 5 seconds, including consecutive actions of the same kind.
- `navigation.back` (`mod+[`) / `navigation.forward` (`mod+]`): Moves through visited pages.
- `terminal.copy` / `terminal.paste`: Copy the terminal selection or paste into the terminal (unbound by default). Bind them with `when: terminalFocus`, for example `meta+c` / `meta+v`; your window manager must pass the keys through. Copy without a selection leaves the clipboard alone, paste requires terminal write permission, and built-in terminal shortcuts are unchanged.
- `chat.new` / `chat.newLocal` / `chat.newWithoutProject` (`mod+alt+n`): Start new threads using your [new-thread defaults](./thread-sidebar.md#start-a-thread) or [without a project](./thread-sidebar.md#start-without-a-project).

## Reserved and platform shortcuts
Expand Down
2 changes: 2 additions & 0 deletions 2 packages/contracts/src/keybindings.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export const STATIC_KEYBINDING_COMMANDS = [
"terminal.close",
"terminal.copy",
"terminal.paste",
"terminal.previous",
"terminal.next",
"rightPanel.toggle",
"rightPanel.new",
"threadPanel.toggle",
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.