branch: externals/denote commit f698ce0332583cf119723f9366a1ea06d6ec63fc Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Tweak denote--only-note-p to read .gpg extension The idea of using encryption for Denote files was put forward by Paul van Gelder: <https://lists.sr.ht/~protesilaos/denote/%3C1123434736.64290.1658954014673%40kpc.webmail.kpnmail.nl%3E> --- README.org | 6 +++--- denote.el | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 287fd616e9..4f68b33254 100644 --- a/README.org +++ b/README.org @@ -1966,9 +1966,9 @@ Denote is meant to be a collective effort. Every bit of help matters. + Ideas and/or user feedback :: Abin Simon, Alan Schmitt, Alfredo Borrás, Benjamin Kästner, Colin McLear, Damien Cassou, Frank Ehmsen, - Jack Baty, Kaushal Modi, M. Hadi Timachi, Peter Prevos, Shreyas - Ragavan, Summer Emacs, Sven Seebeck, Taoufik, Ypot, hpgisler, - pRot0ta1p. + Jack Baty, Kaushal Modi, M. Hadi Timachi, Paul van Gelder, Peter + Prevos, Shreyas Ragavan, Summer Emacs, Sven Seebeck, Taoufik, Ypot, + hpgisler, pRot0ta1p. Special thanks to Peter Povinec who helped refine the file-naming scheme, which is the cornerstone of this project. diff --git a/denote.el b/denote.el index 236c8dfc1c..ab64acd592 100644 --- a/denote.el +++ b/denote.el @@ -403,7 +403,9 @@ trailing hyphen." (and (not (file-directory-p file)) (file-regular-p file) (string-match-p (concat "\\`" denote--id-regexp - ".*" denote--extension-regexp "\\'") + ".*" denote--extension-regexp + "\\(.gpg\\)?" + "\\'") file-name) (not (string-match-p "[#~]\\'" file)))))