Skip to content

Commit 140e16c

Browse files
committed
fix: add alt+v keybind for pasting images
Fixes anomalyco#8490
1 parent 6e13e2f commit 140e16c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/opencode/src/cli/cmd/tui/component/tips.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const TIPS = [
5353
"Use {highlight}/redo{/highlight} to restore previously undone messages and file changes",
5454
"Run {highlight}/share{/highlight} to create a public link to your conversation at opencode.ai",
5555
"Drag and drop images into the terminal to add them as context",
56-
"Press {highlight}Ctrl+V{/highlight} to paste images from your clipboard into the prompt",
56+
"Press {highlight}Ctrl+V{/highlight} or {highlight}Alt+V{/highlight} to paste images from your clipboard into the prompt",
5757
"Press {highlight}Ctrl+X E{/highlight} or {highlight}/editor{/highlight} to compose messages in your external editor",
5858
"Run {highlight}/init{/highlight} to auto-generate project rules based on your codebase",
5959
"Run {highlight}/models{/highlight} or {highlight}Ctrl+X M{/highlight} to see and switch between available AI models",

‎packages/opencode/src/config/config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ export namespace Config {
659659
agent_cycle_reverse: z.string().optional().default("shift+tab").describe("Previous agent"),
660660
variant_cycle: z.string().optional().default("ctrl+t").describe("Cycle model variants"),
661661
input_clear: z.string().optional().default("ctrl+c").describe("Clear input field"),
662-
input_paste: z.string().optional().default("ctrl+v").describe("Paste from clipboard"),
662+
input_paste: z.string().optional().default("ctrl+v,alt+v").describe("Paste from clipboard"),
663663
input_submit: z.string().optional().default("return").describe("Submit input"),
664664
input_newline: z
665665
.string()

0 commit comments

Comments
 (0)