mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-20 10:44:38 +10:00
Minor edits.
This commit is contained in:
@@ -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 ###
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user