Fix name, outputs.
This commit is contained in:
parent
7fba16a02e
commit
87ab252815
2 changed files with 39 additions and 39 deletions
|
@ -756,7 +756,7 @@ This means that /every org-mode file I have/ is part of this search.
|
||||||
|
|
||||||
***** org-ql-select-all-regexp
|
***** org-ql-select-all-regexp
|
||||||
#+begin_src elisp
|
#+begin_src elisp
|
||||||
(defun gptel-org-tools--org-ql-select-all-rifle (query)
|
(defun gptel-org-tools--org-ql-select-all-regexp (query)
|
||||||
(org-ql-select
|
(org-ql-select
|
||||||
(org-agenda-files)
|
(org-agenda-files)
|
||||||
`(regexp ,query)
|
`(regexp ,query)
|
||||||
|
@ -764,8 +764,8 @@ This means that /every org-mode file I have/ is part of this search.
|
||||||
|
|
||||||
(add-to-list 'gptel-org-tools
|
(add-to-list 'gptel-org-tools
|
||||||
(gptel-make-tool
|
(gptel-make-tool
|
||||||
:function #'gptel-org-tools--org-ql-select-all-rifle
|
:function #'gptel-org-tools--org-ql-select-all-regexp
|
||||||
:name "org-ql-select-all-rifle"
|
:name "org-ql-select-all-regexp"
|
||||||
:description "Run regexp on ALL files at once."
|
:description "Run regexp on ALL files at once."
|
||||||
:args (list '(:name "query"
|
:args (list '(:name "query"
|
||||||
:type string
|
:type string
|
||||||
|
|
|
@ -374,7 +374,7 @@
|
||||||
:description "The keyword to match entry headings and content against."))
|
:description "The keyword to match entry headings and content against."))
|
||||||
:category "org-ql"))
|
:category "org-ql"))
|
||||||
|
|
||||||
(defun gptel-org-tools--org-ql-select-all-rifle (query)
|
(defun gptel-org-tools--org-ql-select-all-regexp (query)
|
||||||
(org-ql-select
|
(org-ql-select
|
||||||
(org-agenda-files)
|
(org-agenda-files)
|
||||||
`(regexp ,query)
|
`(regexp ,query)
|
||||||
|
@ -382,8 +382,8 @@
|
||||||
|
|
||||||
(add-to-list 'gptel-org-tools
|
(add-to-list 'gptel-org-tools
|
||||||
(gptel-make-tool
|
(gptel-make-tool
|
||||||
:function #'gptel-org-tools--org-ql-select-all-rifle
|
:function #'gptel-org-tools--org-ql-select-all-regexp
|
||||||
:name "org-ql-select-all-rifle"
|
:name "org-ql-select-all-regexp"
|
||||||
:description "Run regexp on ALL files at once."
|
:description "Run regexp on ALL files at once."
|
||||||
:args (list '(:name "query"
|
:args (list '(:name "query"
|
||||||
:type string
|
:type string
|
||||||
|
|
Loading…
Add table
Reference in a new issue