fix(tui): label worktree copy as session location
This commit is contained in:
parent
5e342f7114
commit
8385cc2f44
1 changed files with 3 additions and 3 deletions
|
|
@ -579,15 +579,15 @@ function App(props: { onSnapshot?: () => Promise<string[]>; pluginHost: TuiPlugi
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "workspace.copy_path",
|
name: "workspace.copy_path",
|
||||||
title: "Copy worktree path",
|
title: "Copy session location",
|
||||||
category: "Workspace",
|
category: "Session",
|
||||||
enabled: () => currentWorktreeWorkspace() !== undefined,
|
enabled: () => currentWorktreeWorkspace() !== undefined,
|
||||||
run: async () => {
|
run: async () => {
|
||||||
const workspace = currentWorktreeWorkspace()
|
const workspace = currentWorktreeWorkspace()
|
||||||
if (!workspace?.directory) return
|
if (!workspace?.directory) return
|
||||||
await clipboard
|
await clipboard
|
||||||
.write?.(workspace.directory)
|
.write?.(workspace.directory)
|
||||||
.then(() => toast.show({ message: "Copied worktree path", variant: "info" }))
|
.then(() => toast.show({ message: "Copied session location", variant: "info" }))
|
||||||
.catch(toast.error)
|
.catch(toast.error)
|
||||||
dialog.clear()
|
dialog.clear()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue