Commit graph

357 commits

Author SHA1 Message Date
Protesilaos Stavrou
a7a0bf0255
Tweak doc string 2022-06-16 08:47:34 +03:00
Protesilaos Stavrou
683180bcfc
Remove superfluous function and var
I believe we were using those in the early code that inserted backlinks
in files.  Now it is not required.
2022-06-16 08:47:34 +03:00
Protesilaos Stavrou
f2cfcd26ea
Refine denote-retrieve regular expressions 2022-06-16 08:47:34 +03:00
Protesilaos Stavrou
1a124c2be6
Make 'denote:' link follow links like 'file:'
We want it to behave exactly like the standard 'file:' hyperlink type.
With this change, we made it work with what is described in the manual.
Evaluate:

    (info "(org) Search Options")
2022-06-16 05:49:37 +03:00
Protesilaos Stavrou
f8b2d44508
Depend on Emacs 27.2, not 27.1 2022-06-16 05:49:29 +03:00
Protesilaos Stavrou
98113698a7
Expand sample configuration
If you had the "C-c n" key binding before, the code's evaluation will
throw an error.  You either need to set it to nil beforehand or add the
code and restart Emacs.
2022-06-15 19:26:13 +03:00
Protesilaos Stavrou
2e56f06381
Install aliases for certain commands
The alternative names might help the user understand what the command
does just by looking at the commands' symbol.
2022-06-15 19:10:21 +03:00
Protesilaos Stavrou
bcbd52a784
Use format specifiers for denote-link-add-links 2022-06-15 18:16:14 +03:00
Protesilaos Stavrou
b64cc491bc
Add history to denote-link-add-links command 2022-06-15 18:05:53 +03:00
Protesilaos Stavrou
e37e429844
Add possible to-do for using xref 2022-06-15 16:54:28 +03:00
Protesilaos Stavrou
5195f13f55
Add optional absolute for denote--directory-files
There is currently no use for it, but I am aware at least of one
function we might use in the future which requires absolute paths.
2022-06-15 16:53:33 +03:00
Protesilaos Stavrou
a160d9f147
Fix typo in the manual 2022-06-15 16:52:46 +03:00
Protesilaos Stavrou
bfb2cdefd7
Rewrite manual on links (getting closer to v0.1.0) 2022-06-15 12:06:21 +03:00
Protesilaos Stavrou
aab21a74dd
Register 'denote:' custom Org hyperlink type 2022-06-15 12:05:54 +03:00
Protesilaos Stavrou
a76b7fb0b8
Make plain text links the same as Org's
The plan is to recommend using org-open-at-point-global for such cases.
If we use a custom format for plain text, we lose that valuable feature.
2022-06-15 12:03:45 +03:00
Protesilaos Stavrou
92a4ff20b6
Remove obsolete description from doc string 2022-06-15 12:03:24 +03:00
Protesilaos Stavrou
5c400d80d9
Document regexp example for file extension 2022-06-15 09:16:27 +03:00
Protesilaos Stavrou
4a5ba1603a
Document how to write metanotes 2022-06-15 07:56:50 +03:00
Protesilaos Stavrou
49a2932d42
Implement denote-link-add-links 2022-06-15 07:56:31 +03:00
Protesilaos Stavrou
8a33364dc6
Add helper fn to filter files matching regexp 2022-06-15 07:54:57 +03:00
Protesilaos Stavrou
ebd14ebbd6
Change placement of maxdepth argument for find 2022-06-15 05:27:18 +03:00
Protesilaos Stavrou
b54dd3404d
Tweak doc string 2022-06-15 05:26:43 +03:00
Protesilaos Stavrou
4dc46d1b68
Set denote-link-fontify-backlinks to t by default 2022-06-15 05:20:26 +03:00
Protesilaos Stavrou
a47f32ec71
Implement new backlink facility 2022-06-15 05:17:18 +03:00
Protesilaos Stavrou
7fab21926d
Process 'find' output in denote-retrieve 2022-06-15 05:16:42 +03:00
Protesilaos Stavrou
d6285c8c5a
Omit current file from backlinks 2022-06-14 21:22:03 +03:00
Protesilaos Stavrou
2338ee4698
Refine how identifier is retrieved from file names 2022-06-14 21:13:59 +03:00
Protesilaos Stavrou
91090d42c6
Fix regexp match for backlinks 2022-06-14 21:13:45 +03:00
Protesilaos Stavrou
fc9f909061
Change denote--id to denote--id-format
It is important for clarity, otherwise I keep getting confused.
2022-06-14 21:09:33 +03:00
Protesilaos Stavrou
553c10a9cc
Tweak doc string 2022-06-14 21:06:16 +03:00
Protesilaos Stavrou
768372281f
Fix formatting typo 2022-06-14 20:10:36 +03:00
Protesilaos Stavrou
88e64be2cb
Fix plain text link format
Sorry, this was my original intent.  I got it mixed up with Org...
2022-06-14 19:59:38 +03:00
Protesilaos Stavrou
340f9103fd
Fix typo in manual 2022-06-14 19:40:34 +03:00
Protesilaos Stavrou
8e6e2736dc
Add generic denote-link-find-file 2022-06-14 19:39:55 +03:00
Protesilaos Stavrou
d9f439e47f
Add helper function to prepare completion table 2022-06-14 18:30:56 +03:00
Protesilaos Stavrou
d66312e517
Fix regression in file extension caused by f57e9c5 2022-06-14 17:36:48 +03:00
Protesilaos Stavrou
02507c6f0d
Rename private variable 2022-06-14 17:29:10 +03:00
Protesilaos Stavrou
7674c6f854
Retrieve identifier from filename alone 2022-06-14 17:27:01 +03:00
Protesilaos Stavrou
ecc7922a77
BREAKING remove support for hardcoded backlinks
We will find a more robust solution that will be with us for the
long-term.  The gist is that we need links that work even when the user
renames the underlying file.  Only the identifier is a constant: it is
unreasonable to expect that, say, the keywords in the file name of a
note will never change.  As such, writing the full path is not a viable
option.

Relevant discussions on the GitHub mirror:

* <https://github.com/protesilaos/denote/issues/13>
* <https://github.com/protesilaos/denote/issues/13>

This, by the way, is the first time a project of mine is busy on GitHub.
You are welcome to use the mirror or the official mailing list.
Whatever works for you (that's why I maintain all those sources, after
all).
2022-06-14 17:10:00 +03:00
Protesilaos Stavrou
3f768cc438
Remove commented-out 'require' 2022-06-14 17:10:00 +03:00
Protesilaos Stavrou
e9bc790675
Clarify that auto-backlinks may be removed 2022-06-14 16:50:26 +03:00
Protesilaos Stavrou
4bc7aa4dfd
Remove outdated doc string from private function 2022-06-14 16:49:28 +03:00
Protesilaos Stavrou
f57e9c5c9f
Change internal variable symbols for consistency 2022-06-14 16:46:30 +03:00
Protesilaos Stavrou
5977a9bc7b
Add warning about likely changes to denote-link.el 2022-06-14 16:44:08 +03:00
Protesilaos Stavrou
be58aec5db
Include journal sample that prompts for TITLE 2022-06-14 14:50:50 +03:00
Protesilaos Stavrou
479899d973
Clarify wording about journal/diary extras
Thanks to svnsbck for the feedback in the discussion below the previous
commit on this topic (over at the GitHub mirror):
8565d36e7d
2022-06-14 13:40:12 +03:00
Protesilaos Stavrou
8565d36e7d
Add note in the manual about journal/diary 2022-06-14 11:39:45 +03:00
Protesilaos Stavrou
cdb7f554f2
Remove extra parenthesis from sample configuration
Thanks to Ypon for reporting it:
<https://github.com/protesilaos/denote/issues/1#issuecomment-1153858068>.
2022-06-13 16:20:50 +03:00
Protesilaos Stavrou
e783662363
Tweak sample configuration 2022-06-13 15:07:40 +03:00
Protesilaos Stavrou
45bea4166a
Update Acknowledgements 2022-06-13 15:05:02 +03:00