@@ -104,9 +141,10 @@
{/if}
{#if userInstructions.length > 0}
+ {@const currentInstruction = plugin.settings.userInstruction}
@@ -115,12 +153,16 @@
role="option"
tabindex="-1"
aria-selected={selectedInstruction === index}
+ class:current-instruction={currentInstruction === userInstruction}
style:background-color={selectedInstruction === index ? "var(--interactive-accent)" : "transparent"}
+ bind:this={instructionsElements[index]}
on:mouseenter={() => selectedInstruction = index}
on:click={handleInstructionSelect}
on:keydown={() => {}}>
{basename(userInstruction)}
-
{userInstruction}
+ {#if userInstruction !== basename(userInstruction)}
+
{userInstruction}
+ {/if}
{/each}
@@ -165,6 +207,10 @@
cursor: pointer;
}
+ .user-instruction-container.current-instruction {
+ box-shadow: inset 0px 0px 4px 1px var(--color-accent);
+ }
+
.user-instruction-title {
grid-row: 1;
grid-column: 1;
diff --git a/Enums/Copy.ts b/Enums/Copy.ts
index e7d57bb..8ba06ec 100644
--- a/Enums/Copy.ts
+++ b/Enums/Copy.ts
@@ -3,6 +3,7 @@ export enum Copy {
UserInstructions1 = "You can create custom ",
UserInstructions2 = "instructions",
UserInstructions3 = " that the AI will follow.",
+ NoUserInstruction = "No custom instructions",
// Model display names
ClaudeSonnet_4_5 = "Claude Sonnet 4.5",