experimenting with definitions in context
This commit is contained in:
parent
5440c93ed0
commit
4dbfd84194
|
|
@ -28,15 +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
|
||||||
"Filetags: Used for note categorization and organization.
|
"filetag: Note categorization system.
|
||||||
Syntax: '# +filetags: :tag1:tag2:tag3:'
|
Syntax: '# +filetags: :tag1:tag2:tag3:'
|
||||||
- Each tag is enclosed in colons
|
- Tags enclosed in colons
|
||||||
- Multiple tags can be specified
|
- Multiple tags allowed
|
||||||
- Placed at the beginning of a note file
|
- Placed at file start
|
||||||
Example: '# +filetags: :work:project:urgent:'
|
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)
|
(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.
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,10 @@
|
||||||
(local-set-key (kbd "C-c f") 'ellama-context-add-file)
|
(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 i") 'ellama-context-add-info-node)
|
||||||
(local-set-key (kbd "C-c d") 'ellama-capture-add-definition)
|
(local-set-key (kbd "C-c d") 'ellama-capture-add-definition)
|
||||||
|
(local-set-key (kbd "C-c D") 'dired)
|
||||||
(setq header-line-format
|
(setq header-line-format
|
||||||
(substitute-command-keys
|
(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
|
(let ((display-buffer-alist
|
||||||
`(((lambda (buffer-name _) (equal buffer-name ,ellama-capture-buffer-name))
|
`(((lambda (buffer-name _) (equal buffer-name ,ellama-capture-buffer-name))
|
||||||
(display-buffer-in-side-window)
|
(display-buffer-in-side-window)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue