Skip to content

Commit

Permalink
org parsing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceberge committed Sep 6, 2024
1 parent 6f2f05a commit 7a2e631
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions elysium.el
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,10 @@ Must be a number between 0 and 1, exclusive."
(goto-char (point-max))
(message "Querying %s..." (gptel-backend-name gptel-backend))
(insert final-user-query "\n")
(gptel-request
full-query
:system elysium-base-prompt
:buffer chat-buffer
:callback #'elysium-handle-response)))))
(gptel-request full-query
:system elysium-base-prompt
:buffer chat-buffer
:callback #'elysium-handle-response)))))

(defun elysium-keep-all-suggested-changes ()
"Keep all of the LLM suggestions."
Expand Down Expand Up @@ -323,7 +322,7 @@ The query is expected to be after the last '* ' (org-mode) or
(goto-char (point-max))
(let ((case-fold-search t)
(heading-regex (if (derived-mode-p 'org-mode)
"^\\* "
"^\\*** "
"^### ")))
(when (re-search-backward heading-regex nil t)
(buffer-substring-no-properties
Expand Down

0 comments on commit 7a2e631

Please sign in to comment.