From 0e2a1dc1b4449f8c14d0a6a08aa422432e3a6e76 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 18 Sep 2024 18:51:54 +0200 Subject: [PATCH] reorg --- emacs/module/module-ellama-capture-definitions.el | 14 +++++++------- emacs/module/module-ellama-capture.el | 3 +-- emacs/module/module-llm.el | 2 ++ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/emacs/module/module-ellama-capture-definitions.el b/emacs/module/module-ellama-capture-definitions.el index eb061ce..113e03e 100644 --- a/emacs/module/module-ellama-capture-definitions.el +++ b/emacs/module/module-ellama-capture-definitions.el @@ -28,16 +28,16 @@ "Add the filetag definition to the Ellama context." (interactive) (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:' -- Tags enclosed in colons -- Multiple tags allowed -- Placed at file start 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) - (message "Filetag definition added to Ellama context")))) + (message "Filetag definition added to Ellama context"))) (provide 'module-ellama-capture-definitions) ;;; module-ellama-capture-definitions.el ends here. diff --git a/emacs/module/module-ellama-capture.el b/emacs/module/module-ellama-capture.el index 1de44c1..81264d7 100644 --- a/emacs/module/module-ellama-capture.el +++ b/emacs/module/module-ellama-capture.el @@ -10,6 +10,7 @@ ;;; Code: (require 'ellama) +(require 'dired) (defvar ellama-capture-buffer-name "*Ellama Input*" "Name of the buffer used for Ellama input capture.") @@ -53,8 +54,6 @@ (quit-window t) (message "Ellama input aborted")) -(require 'module-ellama-capture-definitions) - (global-set-key (kbd "C-x A SPC") #'ellama-capture) (provide 'module-ellama-capture) diff --git a/emacs/module/module-llm.el b/emacs/module/module-llm.el index 440fc39..c9c6778 100644 --- a/emacs/module/module-llm.el +++ b/emacs/module/module-llm.el @@ -44,6 +44,8 @@ (define-key dired-mode-map (kbd "C-c e") #'ellama-context-add-marked-files)) (require 'module-ellama-capture) +(require 'module-ellama-capture-definitions) + (provide 'module-llm) ;;; module-llm.el ends here.