Commit Graph

357 Commits

Author SHA1 Message Date
Protesilaos Stavrou 5ea4a000d6
Update to version 0.1.0 (first stable release) 2022-06-27 07:29:38 +03:00
Protesilaos Stavrou 51b6e74c04
Tweak doc strings and one-line description 2022-06-27 07:08:32 +03:00
Protesilaos Stavrou 4f85d0ece8
Rephrase description about zk.el alternative 2022-06-26 16:48:28 +03:00
Protesilaos Stavrou 5c13cf4c1c
Rename internal id front matter rx for consistency 2022-06-26 06:57:35 +03:00
Damien Cassou 1f87a456c5
denote--punctuation-regexp: Forbid usage of slash in filenames 2022-06-25 13:45:55 +03:00
Protesilaos Stavrou 84ff0fb674
Fix alignment in sample front matter 2022-06-25 06:36:03 +03:00
Protesilaos Stavrou 8d8e96182b
Fix two typos 2022-06-25 06:34:03 +03:00
Protesilaos Stavrou 6985217de6
Set denote-link-use-org-id to t in sample config
It is nil by default.  Read its doc string
2022-06-24 08:57:20 +03:00
Protesilaos Stavrou d56913b055
Clarify wording of FAQ entries 2022-06-24 08:41:23 +03:00
Protesilaos Stavrou 9888c7087f
Add check mark to task of using id: links 2022-06-24 08:11:59 +03:00
Protesilaos Stavrou 2e13b3451d
Update denote-link.el Commentary section 2022-06-24 06:52:30 +03:00
Protesilaos Stavrou 31e5eb3af8
Update documentation about links 2022-06-24 06:49:04 +03:00
Protesilaos Stavrou 62fc0308c0
Tweak sample configuration 2022-06-24 06:48:55 +03:00
Protesilaos Stavrou 72f77178af
Refine denote-link-use-org-id doc string 2022-06-24 06:42:43 +03:00
Protesilaos Stavrou 8182604ff3
Increase max-mini height for rename prompt
Just to be sure we fit in more text when prompting for the change to the
front matter.
2022-06-24 06:29:52 +03:00
Protesilaos Stavrou e4697c563f
Tweak denote.el Commentary section 2022-06-24 06:25:53 +03:00
Protesilaos Stavrou ed75652925
Remove the ref card from the manual
It will always require that we check it manually.
2022-06-24 06:22:35 +03:00
Protesilaos Stavrou 1be0255183
Reword some statements in the manual 2022-06-24 06:22:13 +03:00
Protesilaos Stavrou b14b5e201e
Make denote-link-add-links use id: when necessary
This will account for the target file.  So if we insert files matching a
regexp, we get the appropriate link type per file.

If it is Org and 'denote-link-use-org-id' is non-nil, then the link type
is 'id:'.

If it is another file type the link is 'denote:'.

If 'denote-link-use-org-id' is nil, the link is also 'denote:'.
2022-06-24 06:07:05 +03:00
Protesilaos Stavrou 0fac78ada3
Refine how link format for target is done 2022-06-24 05:55:18 +03:00
Protesilaos Stavrou fe8042e302
Account for target file when formatting link
We need this so that in Org we do not set an 'id:' type link to a
non-org file: those will use the 'denote:' type.
2022-06-23 21:54:13 +03:00
Protesilaos Stavrou 1b71e736c8
Fix format for denote-org-front-matter 2022-06-23 21:32:02 +03:00
Kaushal Modi 80eb7528aa doc: Update documentation 2022-06-23 11:34:00 -04:00
Kaushal Modi 102d1d2d1e refactor!: Default Org front-matter to use org-id style ID property
Move `denote-use-org-id` from denote.el to `denote-link-use-org-id` in
denote-link.el. Rationale for this change is that the ID property
style will always work for Org files and doesn't need any
customization; also that style doesn't add any org-id dependency.

The org-id dependency is needed only if the user wants to access
"active" feature of the "id:" type links like following and exporting.
2022-06-23 11:02:41 -04:00
Protesilaos Stavrou d6543cfa0d Add support for org-id
For a discussion, read issue 8 on the GitHub mirror:
<https://github.com/protesilaos/denote/issues/8>.
2022-06-23 10:42:13 -04:00
Protesilaos Stavrou 25cc5a79e6
Require built-in xref to parse cross-references
Otherwise we run into errors such as the one reported by Frank Ehmsen on
the mailing list:
<https://lists.sr.ht/~protesilaos/denote/%3C579a31b8-d1dd-5c02-aa2f-498526c5982e@eh-is.de%3E>.
2022-06-23 10:16:15 +03:00
Protesilaos Stavrou b25235e93e
Add header links to the mailing list 2022-06-23 08:35:41 +03:00
Protesilaos Stavrou 662a71d051
Remove development note about links
Part of the final preparations for the release of version 0.1.0.
2022-06-23 08:08:12 +03:00
Protesilaos Stavrou 27e02a0436
Add outline heading for denote-link-add-links 2022-06-23 08:04:53 +03:00
Protesilaos Stavrou 8c7808eab8
Remove completed to-do about links, backlinks 2022-06-23 08:03:44 +03:00
Protesilaos Stavrou 2d3a6fd8f3
Reword comment about multi-line button recognition 2022-06-23 08:01:47 +03:00
Protesilaos Stavrou 1f5077181a
Remove completed to-do about Embark
It is now covered in the manual.
2022-06-23 07:59:50 +03:00
Protesilaos Stavrou 091990d030
Use 'declare-function' instead of 'autoload' 2022-06-22 18:46:21 +03:00
Protesilaos Stavrou 1b5634ba1c
Clarify that xrefs are returned as an alist 2022-06-22 18:46:07 +03:00
Protesilaos Stavrou 66bb8083ec
Tweak indentation of function 2022-06-22 18:44:37 +03:00
Protesilaos Stavrou 3b2db33812
Remove development note about backlinks
See commit 92f9cb8 for the technicalities.
2022-06-22 18:15:37 +03:00
Protesilaos Stavrou 18af2cbcec
Update Acknowledgements
This is about commit 92f9cb8 which adds the xref method to retrieve
paths to backlinks.  See issue 18 over at the GitHub mirror:
<https://github.com/protesilaos/denote/issues/18>.
2022-06-22 18:10:05 +03:00
Protesilaos Stavrou 02d6f42ab4
Merge branch 'xref-instead-of-find' 2022-06-22 18:09:09 +03:00
Protesilaos Stavrou a2e4497486
Expand the "Extending Denote" section 2022-06-22 16:50:20 +03:00
Protesilaos Stavrou 92f9cb8cb9
Use xref instead of relying on find+grep
With xref we delegate to a built-in facility instead of passing a
hard-coded list of arguments to 'process-lines'.

The old method is prone to errors, such as not working on builds of
Emacs for macOS, as reported by Colin McLear in issue 18 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/18>.

Users of Emacs 28 or higher can configure 'xref-search-program' to
change from the default 'grep' to 'ripgrep', 'ugrep', or a user-defined
alternative.

THIS CHANGE IS PROVISIONAL and subject to further edits.
2022-06-22 13:57:23 +03:00
Protesilaos Stavrou 8394280f95
Refine regexp for front-matter date extraction
This should solve the bug reported by Sven Seebeck where dates in the
org-timestamp style would lose their closing bracket after a rename
operation altered their front matter.

See issue 19 on the GitHub mirror:
<https://github.com/protesilaos/denote/issues/19>.
2022-06-22 07:27:30 +03:00
Protesilaos Stavrou ee4aed6376
Refine check for denote dir in dired revert
This pertains to the post-rename operation where relevant Dired buffers
are reverted.  The previous check would sometimes compare incompatible
file paths and thus return nil when it shouldn't.

Thanks to Sven Seebeck for reporting the problem in issue 17 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/17>.
2022-06-21 13:22:38 +03:00
Protesilaos Stavrou a5986742be
Note the features of filenames for search/filter 2022-06-21 08:38:19 +03:00
Protesilaos Stavrou 047b396f16
Remove superfluous word 2022-06-21 08:36:28 +03:00
Protesilaos Stavrou 6b7aa9db48
Reword a statement in the manual 2022-06-20 20:12:19 +03:00
Protesilaos Stavrou 618eff9807
Make a couple of minor tweaks to the manual 2022-06-20 20:09:16 +03:00
Protesilaos Stavrou 2fdd20dc0f
Tweak spacing in denote-org-capture.el Commentary 2022-06-20 19:51:59 +03:00
Protesilaos Stavrou 5a1b05d6c7
Update denote.el Commentary 2022-06-20 19:49:48 +03:00
Protesilaos Stavrou 26d282be00
Acknowledge Damien Cassou for code contributions
Commits 6b200b3 and 78f6c7c.
2022-06-20 18:39:12 +03:00
Damien Cassou 6b200b31ef
Simplify denote-dired--rename-buffer
The new code is basically what `dired-rename-file' does.
2022-06-20 18:37:06 +03:00