[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote a5986742be 315/355: Note the features of filenam
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote a5986742be 315/355: Note the features of filenames for search/filter |
Date: |
Sun, 26 Jun 2022 23:58:35 -0400 (EDT) |
branch: externals/denote
commit a5986742be68afe79869aab4dfa619690c5a8c86
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Note the features of filenames for search/filter
---
README.org | 32 +++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index dbeaf4fe0f..17a7c91ca0 100644
--- a/README.org
+++ b/README.org
@@ -245,7 +245,7 @@ say, ="\\([0-9T]+?\\)--\\(.*?\\)_"= captures the date in
group =\1= and
the title in =\2= (test any regular expression in the current buffer by
invoking =M-x re-builder=).
-[[#h:8ed2bb6f-b5be-4711-82e9-8bee5bb06ece][Extending Denote]].
+[[#h:1a953736-86c2-420b-b566-fb22c97df197][Features of the file-naming scheme
for searching or filtering]].
While Denote is an Emacs package, notes should work long-term and not
depend on the functionality of a specific program. The file-naming
@@ -270,6 +270,36 @@ holds the relevant value. In simple terms:
+ Keywords should not have spaces or other delimiters. If they do, they
are converted into hyphens. Keywords are always downcased.
+** Features of the file-naming scheme for searching or filtering
+:PROPERTIES:
+:CUSTOM_ID: h:1a953736-86c2-420b-b566-fb22c97df197
+:END:
+
+File names have three fields and two sets of field delimiters between
+them:
+
+: DATE--TITLE__KEYWORDS.EXTENSION
+
+The first field delimiter is the double hyphen, while the second is the
+double underscore. These practically serve as anchors for easier
+searching. Consider this example:
+
+: 20220621T062327--introduction-to-denote__denote_emacs.txt
+
+You will notice that there are two matches for the word =denote=: one in
+the title field and another in the keywords' field. Because of the
+distinct field delimiters, if we search for =-denote= we only match the
+first instance while =_denote= targets the second one. When sorting
+through your notes, this kind of specificity is invaluable---and you get
+it for free from the file names alone!
+
+Users can get a lot of value out of this simple arrangement, even if
+they have no knowledge of regular expressions. One thing to consider,
+for maximum effect, is to avoid using multi-word keywords as those get
+hyphenated like the title and will thus interfere with the above: either
+set the user option ~denote-allow-multi-word-keywords~ to nil or simply
+insert single words at the relevant prompts.
+
* Points of entry
:PROPERTIES:
:CUSTOM_ID: h:17896c8c-d97a-4faa-abf6-31df99746ca6
- [elpa] externals/denote 1b9a6a12a0 290/355: Add autoload cookie for buttonization function, (continued)
- [elpa] externals/denote 1b9a6a12a0 290/355: Add autoload cookie for buttonization function, ELPA Syncer, 2022/06/26
- [elpa] externals/denote bb296d35a1 254/355: Tweak some statements in the manual, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 85b5290e8b 229/355: Fix bug where Unicode chars are not encoded, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 1f87a456c5 353/355: denote--punctuation-regexp: Forbid usage of slash in filenames, ELPA Syncer, 2022/06/26
- [elpa] externals/denote fe8042e302 337/355: Account for target file when formatting link, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d304e3556f 281/355: Add regexp for plain link format, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 987854d96c 298/355: Add missing findex directive for denote-dired-mode, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ddbbe549b6 283/355: Use function to test if file likely is a note, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 62e7adfbdb 269/355: Replace superfluous 'let*' with 'let', ELPA Syncer, 2022/06/26
- [elpa] externals/denote 618eff9807 312/355: Make a couple of minor tweaks to the manual, ELPA Syncer, 2022/06/26
- [elpa] externals/denote a5986742be 315/355: Note the features of filenames for search/filter,
ELPA Syncer <=
- [elpa] externals/denote 9888c7087f 348/355: Add check mark to task of using id: links, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d56913b055 349/355: Clarify wording of FAQ entries, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 31e5eb3af8 346/355: Update documentation about links, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 019cccfb1f 015/355: Create denote-directory if absent, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 813004ea53 032/355: Make outline more consistent and informative, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 387ac0c030 033/355: Add denote--file-empty-p, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 9d8748c382 022/355: Add proof-of-concept backlink (lots of TODO), ELPA Syncer, 2022/06/26
- [elpa] externals/denote 991abe5b65 034/355: Use denote--file-empty-p, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 812da918f7 042/355: Insert comment about not editing backlinks, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 60a91fc6ef 044/355: Use correct notation for private variables, ELPA Syncer, 2022/06/26