Skip to content

Commit c36bb93

Browse files
committed
feat(context): Feed the llm with abbreviated paths for buffers
1 parent 12ac344 commit c36bb93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gptel-context.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ context chunk. This is accessible as, for example:
100100
(kill-region (point-min) (point-max))
101101
(goto-char (point-max))
102102
(unless (bobp)
103-
(insert "\n----\n"))))))
103+
(insert "\n----\n")))
104104
(insert kill)
105105
(gptel-context--add-region (current-buffer)
106106
(point-min) (point-max))
107-
(message "*current-kill* has been added as context.")))))
107+
(message "*current-kill* has been added as context."))))
108108

109109
(defun gptel-context-add (&optional arg confirm)
110110
"Add context to gptel in a DWIM fashion.
@@ -435,7 +435,7 @@ START and END signify the region delimiters."
435435
(unless (= previous-line lineno)
436436
(unless (= lineno 1)
437437
(unless is-top-snippet
438-
(insert "\n"))
438+
(insert "\n")))
439439
(insert (format "... (Line %d)\n" lineno))))
440440
(setq previous-line lineno)
441441
(unless (zerop column) (insert " ..."))

0 commit comments

Comments
 (0)