This commit is contained in:
Levi Neely 2024-09-18 18:51:54 +02:00
parent 965fc99e81
commit 0e2a1dc1b4
3 changed files with 10 additions and 9 deletions

View File

@ -28,16 +28,16 @@
"Add the filetag definition to the Ellama context." "Add the filetag definition to the Ellama context."
(interactive) (interactive)
(let ((filetag-definition (let ((filetag-definition
"filetag: Note categorization system. "Instruction: When prompted about a filetag or filetags, search
the text in all provided files for the following syntax:
Syntax: '# +filetags: :tag1:tag2:tag3:' Syntax: '# +filetags: :tag1:tag2:tag3:'
- Tags enclosed in colons
- Multiple tags allowed
- Placed at file start
Example: '# +filetags: :work:project:urgent:' Example: '# +filetags: :work:project:urgent:'
Purpose: Efficient note filtering and searching.
Usage: When prompted about filetags, use only this syntax.") The words between the ':' characters are the filetags. Look for
exact matches only."))
(ellama-context-add-text filetag-definition) (ellama-context-add-text filetag-definition)
(message "Filetag definition added to Ellama context")))) (message "Filetag definition added to Ellama context")))
(provide 'module-ellama-capture-definitions) (provide 'module-ellama-capture-definitions)
;;; module-ellama-capture-definitions.el ends here. ;;; module-ellama-capture-definitions.el ends here.

View File

@ -10,6 +10,7 @@
;;; Code: ;;; Code:
(require 'ellama) (require 'ellama)
(require 'dired)
(defvar ellama-capture-buffer-name "*Ellama Input*" (defvar ellama-capture-buffer-name "*Ellama Input*"
"Name of the buffer used for Ellama input capture.") "Name of the buffer used for Ellama input capture.")
@ -53,8 +54,6 @@
(quit-window t) (quit-window t)
(message "Ellama input aborted")) (message "Ellama input aborted"))
(require 'module-ellama-capture-definitions)
(global-set-key (kbd "C-x A SPC") #'ellama-capture) (global-set-key (kbd "C-x A SPC") #'ellama-capture)
(provide 'module-ellama-capture) (provide 'module-ellama-capture)

View File

@ -44,6 +44,8 @@
(define-key dired-mode-map (kbd "C-c e") #'ellama-context-add-marked-files)) (define-key dired-mode-map (kbd "C-c e") #'ellama-context-add-marked-files))
(require 'module-ellama-capture) (require 'module-ellama-capture)
(require 'module-ellama-capture-definitions)
(provide 'module-llm) (provide 'module-llm)
;;; module-llm.el ends here. ;;; module-llm.el ends here.