Skip to content

Commit 2d4cf7d

Browse files
committed
Improve display of Copy/Paste actions
fixes #184
1 parent 3aca16c commit 2d4cf7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/api/gpt.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,13 @@ export default (
367367
<Detail
368368
actions={
369369
<ActionPanel>
370+
{/* Copy/Paste Actions
371+
We put paste on top or below depending on allowPaste */}
370372
{allowPaste && <Action.Paste content={markdown} />}
371373
<Action.CopyToClipboard shortcut={Keyboard.Shortcut.Common.Copy} content={markdown} />
374+
{!allowPaste && <Action.Paste content={markdown} shortcut={{ modifiers: ["cmd", "shift"], key: "v" }} />}
375+
376+
{/* Actions */}
372377
{(lastQuery.text || lastQuery.files?.length > 0) && (
373378
<Action
374379
title="Continue in Chat"

0 commit comments

Comments
 (0)