Skip to content

Commit fd81a99

Browse files
committed
feat(context): Feed the llm with abbreviated path for files
1 parent 5e111a1 commit fd81a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gptel-context.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ context overlays, see `gptel-context--alist'."
501501
(overlay-put ov 'evaporate t)
502502
(insert "\n" (make-separator-line) "\n"))
503503
;; BUF is a file path, not a buffer
504-
(insert (propertize (format "In file %s:\n\n" (file-name-nondirectory buf))
504+
(insert (propertize (format "In file %s:\n\n" (abbreviate-file-name buf))
505505
'face 'bold))
506506
(setq beg (point))
507507
(if-let* ((mime (plist-get ovs :mime)))

0 commit comments

Comments
 (0)