Skip to content

Commit 102942b

Browse files
committed
refactor: update file mention format to use backticked relative paths instead of markdown links
1 parent bb22700 commit 102942b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/common/FileMentionPopover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function FileMentionPopover({
5353
normalizedCwd && normalizedPath.startsWith(`${normalizedCwd}/`)
5454
? normalizedPath.slice(normalizedCwd.length + 1)
5555
: normalizedPath;
56-
const link = `[${file.name}](${relativePath})`;
56+
const link = `\`${relativePath}\``;
5757
const newValue = replaceAtTrigger(input, '@', link);
5858
if (newValue !== null) applyEditorReplacement(newValue, setInput, editorRef);
5959
else editorRef.current?.focus();

src/components/features/files/explorer/FileTreeNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function FileTreeNode({
7373
const handleInsert = (e: React.MouseEvent) => {
7474
e.preventDefault();
7575
e.stopPropagation();
76-
appendInputValue(`[${node.name}](${relativePath})`);
76+
appendInputValue(`\`${relativePath}\``);
7777
};
7878

7979
return (

0 commit comments

Comments
 (0)