Show each extension's own prompt, not only the batch script.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1666,6 +1666,12 @@
|
||||
@blur="saveRename(item)"
|
||||
>
|
||||
<p v-else class="min-w-0 flex-1 truncate text-sm font-medium">{{ item.name || item.prompt }}</p>
|
||||
<PromptPreviewTip
|
||||
v-if="item.prompt"
|
||||
:text="item.prompt"
|
||||
:aria-label="'Copy prompt for ' + (item.name || 'this clip')"
|
||||
@copy="copyPrompt"
|
||||
/>
|
||||
</div>
|
||||
<p class="truncate text-xs text-zinc-500">{{ clipMetaLine(item) }}</p>
|
||||
<PermanenceRefStrip
|
||||
@@ -1839,6 +1845,12 @@
|
||||
@blur="saveRenameStill(item)"
|
||||
>
|
||||
<p v-else class="min-w-0 flex-1 truncate text-sm font-medium">{{ stillTitle(item) }}</p>
|
||||
<PromptPreviewTip
|
||||
v-if="item.prompt"
|
||||
:text="item.prompt"
|
||||
:aria-label="'Copy prompt for ' + stillTitle(item)"
|
||||
@copy="copyPrompt"
|
||||
/>
|
||||
</div>
|
||||
<p class="truncate text-xs text-zinc-500">{{ stillMetaLine(item) }}</p>
|
||||
<div class="mt-1.5 flex flex-wrap items-center gap-3">
|
||||
|
||||
+6
-2
@@ -479,8 +479,12 @@ const focusedNavIndex = computed(() => {
|
||||
return index < 0 ? 0 : index
|
||||
})
|
||||
const detailPrompt = computed(() => {
|
||||
if (focused.value?.kind === 'clip') return focused.value.group?.head.prompt || ''
|
||||
return focused.value?.stillGroup?.head.prompt || ''
|
||||
if (focused.value?.kind === 'clip' && focused.value.group) {
|
||||
const item = focused.value.group.parts.find(part => part.id === focusedPartId.value) || focused.value.group.head
|
||||
return item.prompt || ''
|
||||
}
|
||||
const still = focused.value?.stillGroup?.parts.find(part => part.id === focusedPartId.value) || focused.value?.stillGroup?.head
|
||||
return still?.prompt || ''
|
||||
})
|
||||
const detailMeta = computed(() => {
|
||||
const entry = focused.value
|
||||
|
||||
Reference in New Issue
Block a user