From 4dbfd8419451a97e6eb1cfcc80ee26613df8db5a Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:49:51 +0200 Subject: [PATCH] experimenting with definitions in context --- emacs/module/module-ellama-capture-definitions.el | 13 +++++++------ emacs/module/module-ellama-capture.el | 3 ++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/emacs/module/module-ellama-capture-definitions.el b/emacs/module/module-ellama-capture-definitions.el index 55d82fb..eb061ce 100644 --- a/emacs/module/module-ellama-capture-definitions.el +++ b/emacs/module/module-ellama-capture-definitions.el @@ -28,15 +28,16 @@ "Add the filetag definition to the Ellama context." (interactive) (let ((filetag-definition - "Filetags: Used for note categorization and organization. + "filetag: Note categorization system. Syntax: '# +filetags: :tag1:tag2:tag3:' -- Each tag is enclosed in colons -- Multiple tags can be specified -- Placed at the beginning of a note file +- Tags enclosed in colons +- Multiple tags allowed +- Placed at file start Example: '# +filetags: :work:project:urgent:' -Purpose: Enable efficient filtering and searching of notes.")) +Purpose: Efficient note filtering and searching. +Usage: When prompted about filetags, use only this syntax.") (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 f5928fc..1de44c1 100644 --- a/emacs/module/module-ellama-capture.el +++ b/emacs/module/module-ellama-capture.el @@ -27,9 +27,10 @@ (local-set-key (kbd "C-c f") 'ellama-context-add-file) (local-set-key (kbd "C-c i") 'ellama-context-add-info-node) (local-set-key (kbd "C-c d") 'ellama-capture-add-definition) + (local-set-key (kbd "C-c D") 'dired) (setq header-line-format (substitute-command-keys - "C-c C-c: send, C-c C-k: abort, C-c f: file, C-c i: info node, C-c d: definition"))) + "C-c C-c: send, C-c C-k: abort, C-c f: file, C-c i: info node, C-c d: definition C-c D: dired"))) (let ((display-buffer-alist `(((lambda (buffer-name _) (equal buffer-name ,ellama-capture-buffer-name)) (display-buffer-in-side-window)