Integrate the denote
and consult
packages:
- Denote : A file-naming scheme to easily retrieve files of any type. Useful for note-taking and long-term storage files.
- Consult: Enhanced interactivity for the standard Emacs minibuffer, such as a preview mechanism for buffers and an asynchronous grep/find.
The purpose of consult-denote
is as follows:
-
Upgrade all the minibuffer prompts of Denote: For the time being, this means that we show a preview of the file to-be-linked or to-be-opened. Simply enable the
consult-denote-mode
. The prompts use the same patterns of interaction as core Denote and will never deviate from this paradigm, such as to prettify titles or whatnot (that is an expensive operation that slows down Emacs). -
Easy search for the
denote-directory
: Implement Consult-powered Grep and Find commands which operate on thedenote-directory
regardless of where they are called from. See the commandsconsult-denote-grep
andconsult-denote-find
. Customise which command they call by modifying the user optionsconsult-denote-grep-command
andconsult-denote-find-command
. -
Include Denote "sources" for
consult-buffer
: This is also part of theconsult-denote-mode
. It adds new headings/groups to the interface of theconsult-buffer
command. Those lists (i) the buffers that visit Denote files, (ii) the subdirectories of thedenote-directory
, and (iii) the silos listed in the value of the user optiondenote-silo-extras-directories
(for those who opt in to that extension).
In the future we may use other features of Consult, based on user feedback.