Commit graph

92 commits

Author SHA1 Message Date
Protesilaos Stavrou 9f192263db
Remove file path from front matter; improve links
It is not necessary to pollute the front matter with such details.
Files are always relative to the present directory.  The linking
facility is updated to work as intended (per commit 929157d).

This is an update on commit cfe6e98, which was reverted earlier by
8167d0c.
2022-06-10 05:43:42 +03:00
Protesilaos Stavrou 8167d0c30c
Revert "Stop recording the file path in the front matter"
This reverts commit cfe6e98e7b.

We actually need it for making links.  Perhaps we can find a way to only
rely on the identifier.  Will need to check this further.
2022-06-10 05:14:35 +03:00
Protesilaos Stavrou cfe6e98e7b
Stop recording the file path in the front matter
It ultimately is irrelevant as links are always relative to the current
directory.  Also see commit 929157d.
2022-06-10 05:12:05 +03:00
Protesilaos Stavrou 929157d424
Stop using link abbreviation
Links will now always be relative to the current directory and use the
standard "file:" prefix.

This means that other packages, like org-transclusion, will work with
our notes without further tweaks.
2022-06-10 05:05:21 +03:00
Protesilaos Stavrou ba7299d878
Add TODO about styling 'denote-link' command 2022-06-09 08:38:05 +03:00
Protesilaos Stavrou a809e9ea1d
Clarify active development; things might break 2022-06-09 08:36:13 +03:00
Protesilaos Stavrou ab27f5a547
Tweak sample configuration 2022-06-09 08:33:54 +03:00
Protesilaos Stavrou 5dace99b8d
Acknowledge Kaushal Modi for commit f97f1f8 2022-06-08 19:41:15 +03:00
Protesilaos Stavrou e8c1e31dec
Expand gitignore 2022-06-08 19:40:19 +03:00
Protesilaos Stavrou 91f4780779
Merge pull request #3 from kaushalmodi/add-gitignore
chore: Ignore compiled and autoloads Emacs-Lisp files
2022-06-08 19:36:36 +03:00
Kaushal Modi f97f1f8b56 chore: Ignore compiled and autoloads Emacs-Lisp files 2022-06-08 12:32:43 -04:00
Protesilaos Stavrou d08a72e19a
Re-indent line 2022-06-08 19:16:30 +03:00
Protesilaos Stavrou 0e65f05bbb
Use 'delete-region' instead of 'delete-line'
The latter requires 'subr'.

Thanks to Kaushal Modi for reporting the bug in issue 2 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/2>.
2022-06-08 19:13:44 +03:00
Protesilaos Stavrou 739d485600
Fix bug about missing point in link de-duplication 2022-06-08 14:45:14 +03:00
Protesilaos Stavrou e2c49771f7
Placate the compiler about symbol disambiguation 2022-06-08 14:44:57 +03:00
Protesilaos Stavrou d8b2903fa9
Acknowledge Jack Baty for commit dfc3a8f
Jack's contribution is below the ~15 line threshold that is required for
projects that are distributed via GNU ELPA (denote will be one of them
in the near future).

Contributions exceeding that limit require that the author assigns
copyright to the Free Software Foundation.
2022-06-08 14:36:23 +03:00
Protesilaos Stavrou eafc777268
Use 'denote-directory' function for '#+link'
The function ensures that the path is always returned as a directory.

This commit builds on dfc3a8f.  Thanks to Jack Baty for recognising the
problem.
2022-06-08 14:34:19 +03:00
Protesilaos Stavrou 2eeedaf86a
Placate the compiler about 'denote-directory' 2022-06-08 14:29:11 +03:00
Protesilaos Stavrou a6303a6101
Update doc string of variable 'denote-directory' 2022-06-08 14:27:46 +03:00
Protesilaos Stavrou ebdacb3fea
Update doc string of denote-directory function 2022-06-08 14:26:27 +03:00
Protesilaos Stavrou 147901f971
Rename 'denote--directory' to 'denote-directory' 2022-06-08 14:25:13 +03:00
Jack Baty dfc3a8fc60
Use denote-directory rather than hardcoded path 2022-06-08 14:23:19 +03:00
Protesilaos Stavrou 69e35281da
Document denote-front-matter-date-format 2022-06-08 12:33:07 +03:00
Protesilaos Stavrou 52fd454153
Document denote-sort-keywords 2022-06-08 12:32:52 +03:00
Protesilaos Stavrou 96eee4aeba
Change placement of findex keyword in the manual 2022-06-08 12:18:20 +03:00
Protesilaos Stavrou f8ea03abfb
Add documentation about renaming non-notes 2022-06-08 12:16:24 +03:00
Protesilaos Stavrou e21db9418e
Tweak file regexp to read files with no extension 2022-06-08 12:13:29 +03:00
Protesilaos Stavrou 712e24465a
Update denote-dired.el Commentary 2022-06-08 12:02:33 +03:00
Protesilaos Stavrou 3ef51e9cd7
Update documentation about denote-dired-mode 2022-06-08 11:59:55 +03:00
Protesilaos Stavrou d09b748c8d
Fix fontification; add denote-dired-directories 2022-06-08 11:50:35 +03:00
Protesilaos Stavrou eee100cc50
Add denote-dired-rename-file
This is not limited to notes that were created with Denote: it works on
any file in any directory.  The idea is to apply the Denote-style file
name in more contexts, such as for longer-term storage and attachments
to notes.

Also see commit 431124f, which is thematically aligned with this one.

Thanks to Ypot for giving me the idea in issue 1 over at the GitHub
mirror: <https://github.com/protesilaos/denote/issues/1>.
2022-06-08 10:47:18 +03:00
Protesilaos Stavrou a5120e0e93
Enable optional EXTENSION in file name creation 2022-06-08 10:45:55 +03:00
Protesilaos Stavrou 431124fea1
Generalise dired fontification
There is no need to limit it to the denote-directory.  We ultimately
want to fontify all Denote-style file names, not just the notes created
by Denote.

For example, I have been recording all my longer-term storage using such
a naming scheme: this mode gives me the extra faces for .pdf, .mp3, and
other files.

Users of Denote may want this for attachments.

The upside of having this as a buffer-local mode is that the user can
write a wrapper function that applies the mode only in a given
directory (like we were doing before).

Thanks to Ypot for suggesting a kernel of this idea in issue 1 over at
the GitHub mirror: <https://github.com/protesilaos/denote/issues/1>.
2022-06-08 10:45:46 +03:00
Protesilaos Stavrou 3209bc23ef
Use "#+filetags" for wider Org compatibility
This is because there are other packages which read the filetags for
their purposes.  There is no compelling reason to have a non-standard
"#+keywords" for this entry.

Thanks to Kaushal Modi for the feedback, which was sent via email (this
is shared with permission).
2022-06-08 07:53:25 +03:00
Protesilaos Stavrou 9bf10437e0
Add denote-front-matter-date-format user option
Thanks to Kaushal Modi for proposing the use of an Org timestamp.  (It
was done via email and this information is shared with permission.)
2022-06-08 07:50:36 +03:00
Protesilaos Stavrou bf342a1d39
Correct factual statement about command args 2022-06-07 21:29:48 +03:00
Protesilaos Stavrou 20a915672e
Remove interactive-only from 'denote' 2022-06-07 21:25:12 +03:00
Protesilaos Stavrou 610c2f1670
Comment out inactive link to change log
We will have one eventually.
2022-06-07 18:47:24 +03:00
Protesilaos Stavrou 4d90cbb5da
Remove needless to-do 2022-06-07 18:41:30 +03:00
Protesilaos Stavrou f33f8a7040
Rewrite README as a manual 2022-06-07 17:22:03 +03:00
Protesilaos Stavrou 418a21dccb
Tweak file and defgroup descriptions 2022-06-07 17:21:49 +03:00
Protesilaos Stavrou 9a2c501cd4
Tweak wording in description 2022-06-07 14:33:09 +03:00
Protesilaos Stavrou d0dbbab603
Update short descriptions 2022-06-07 14:15:45 +03:00
Protesilaos Stavrou 06cbd091d1
Tweak README---this is a work-in-progress 2022-06-07 10:44:59 +03:00
Protesilaos Stavrou de00f939d3
Fix typo 2022-06-07 10:42:02 +03:00
Protesilaos Stavrou fa6a3315dc
Add correct group for org capture specifiers 2022-06-07 10:41:21 +03:00
Protesilaos Stavrou 0185f38dde
Add denote-dired.el for useful fontification 2022-06-07 10:41:19 +03:00
Protesilaos Stavrou d57ff29c3b
Add denote--file-regexp 2022-06-07 09:40:42 +03:00
Protesilaos Stavrou 60a91fc6ef
Use correct notation for private variables 2022-06-07 09:40:30 +03:00
Protesilaos Stavrou 3b62f8e167
Implement denote-link-clear-stale-backlinks 2022-06-07 08:45:14 +03:00