Function: zoxide-query-with
zoxide-query-with is an interactive and natively compiled function
defined in zoxide.el.
Signature
(zoxide-query-with QUERY)
Documentation
Search zoxide database with QUERY by calling zoxide query.
When calling interactively, it will open a buffer to show results. Otherwise, a list of paths is returned.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/hrvvrg8iq0dy80la0z05ls131gycsm2z-emacs-packages-deps/share/emacs/site-lisp/elpa/zoxide-20241003.1103/zoxide.el
;;;###autoload
(defun zoxide-query-with (query)
"Search zoxide database with QUERY by calling zoxide query.
When calling interactively, it will open a buffer to show results. Otherwise,
a list of paths is returned."
(interactive "squery: ")
(let ((results (zoxide-run nil "query" query)))
(if (called-interactively-p 'any)
(let ((buf-name "*zoxide query*"))
(when (get-buffer buf-name)
(kill-buffer buf-name))
(switch-to-buffer-other-window buf-name)
(with-current-buffer buf-name
(erase-buffer)
(insert results)
(special-mode)))
(remove "" (split-string results "\n")))))