Minor edits.

This commit is contained in:
Derek Taylor
2021-02-13 20:13:19 -06:00
parent 35527ccc95
commit 87de23f359
5 changed files with 23 additions and 7 deletions

View File

@@ -171,6 +171,20 @@ end
function take --argument number
head -$number
end
# Function for org-agenda
function org-search -d "send a search string to org-mode"
set -l output (/usr/bin/emacsclient -a "" -e "(message \"%s\" (mapconcat #'substring-no-properties \
(mapcar #'org-link-display-format \
(org-ql-query \
:select #'org-get-heading \
:from (org-agenda-files) \
:where (org-ql--query-string-to-sexp \"$argv\"))) \
\"
\"))")
printf $output
end
### END OF FUNCTIONS ###