Commit graph

279 commits

Author SHA1 Message Date
Damien Cassou 78f6c7ce35
Add missing doclicense.texi
It is required by README.org to compile denote.info.
2022-06-19 20:03:13 +03:00
Protesilaos Stavrou efd9d537cd
Give appropriate name to backlink button object 2022-06-19 16:46:17 +03:00
Protesilaos Stavrou 855c677724
Reword a minor statement 2022-06-18 22:53:36 +03:00
Protesilaos Stavrou 0cc0e609ed
Add minor clarification 2022-06-18 22:48:24 +03:00
Protesilaos Stavrou 55140b83f4
Clarify point about org-roam database 2022-06-18 22:47:25 +03:00
Protesilaos Stavrou 95b5143fc2
Fix link to zetteldeft alternative package 2022-06-18 18:10:41 +03:00
Protesilaos Stavrou b0d8ad46cf
Update denote-known-keywords doc string 2022-06-18 14:30:51 +03:00
Protesilaos Stavrou 3d606cbe95
Simplify completion via 'org-insert-link'
The 'M-x denote-link' is probably better to learn as it works in all
file types, but we still want to support standard Org facilities.
2022-06-18 14:27:09 +03:00
Protesilaos Stavrou d0584c0e15
Refine denote--only-note-p conditions
This should remove the false positives reported by Sven Seebeck in issue
16 over at the GitHub mirror:
<https://github.com/protesilaos/denote/issues/16>.

It also eliminates the potential problem with the use of "^" against
full paths, where it would always fail.
2022-06-18 12:53:39 +03:00
Protesilaos Stavrou edbd2f7f1b
Use our pred instead of generic in file filtering 2022-06-18 12:53:05 +03:00
Protesilaos Stavrou 62e7adfbdb
Replace superfluous 'let*' with 'let' 2022-06-18 11:29:23 +03:00
Protesilaos Stavrou f03d75a72b
Document tasks/ideas to do/explore 2022-06-18 10:31:37 +03:00
Protesilaos Stavrou 8eb27246a5
Refine buffer-local 'denote-directory'; update doc 2022-06-18 10:23:09 +03:00
Protesilaos Stavrou 341cd28b5a
Fix bug with 'default-directory' reset
This would override the default-directory when using something like 'M-x
denote-link-add-links' from a file whose directory had a local value for
'denote-directory'.

Thanks to Sven Seebeck for reporting the bug in issue 16 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/16>.
2022-06-18 10:10:02 +03:00
Protesilaos Stavrou a5940b315a
Replace needless 'let*' with 'let' 2022-06-18 08:58:19 +03:00
Protesilaos Stavrou 0f149afba2
Simplify how temp buffer contents are returned 2022-06-18 08:28:14 +03:00
Protesilaos Stavrou 941258d8d4
Remove faulty MUSTMATCH from file prompt 2022-06-18 08:24:22 +03:00
Protesilaos Stavrou 5686e86cfc
Only show valid notes in file prompt
Builds on commit dcf8739.
2022-06-18 08:18:59 +03:00
Protesilaos Stavrou dcf8739474
Improve valid note test (revise ecaaa6b, 8e5899d) 2022-06-18 08:17:29 +03:00
Protesilaos Stavrou 8e5899d90e
Match only files that start with ID in file search
This way we avoid false positives such as the backups that Emacs
creates.

Also see commit ecaaa6b, which implements the same idea in another
function.
2022-06-18 07:43:03 +03:00
Protesilaos Stavrou ecaaa6bb63
Only consider items with id in directory files
This way we avoid other random files that may exist in the directory,
such as .dir-locals.el
2022-06-18 07:28:18 +03:00
Protesilaos Stavrou aab484d617
Sort grep output with string-lessp
This is a follow-up to commit 429763c.  Basically, we want the file
names to come in a predictable order, otherwise it can be hard to get a
sense of their time range.
2022-06-18 07:17:48 +03:00
Protesilaos Stavrou 429763c246
Fix broken buttons in backlinks' buffer
Sorting them after they are inserted breaks them.  Thanks to Sven
Seebeck for reporting the regression in issue 16 over at the GitHub
mirror: <https://github.com/protesilaos/denote/issues/16>.
2022-06-18 07:17:42 +03:00
Protesilaos Stavrou f21a99775d
Improve rename prompt; only rename regular files
Thanks to Frank Ehmsen for the feedback on the mailing list:
<https://lists.sr.ht/~protesilaos/denote/%3C9deea16e-d0d0-91b0-2b6a-0b8276406c6c@eh-is.de%3E>.
2022-06-17 21:19:21 +03:00
Protesilaos Stavrou 8d504a3264
Check to operate on dired-rename window
Thanks to Frank Ehmsen for the feedback on the mailing list:
<https://lists.sr.ht/~protesilaos/denote/%3C9deea16e-d0d0-91b0-2b6a-0b8276406c6c@eh-is.de%3E>.
2022-06-17 20:33:59 +03:00
Protesilaos Stavrou bb296d35a1
Tweak some statements in the manual 2022-06-17 20:33:39 +03:00
Protesilaos Stavrou d09249d48f
Make 'default-directory' safe for denote-directory
This relates to the example we cover in the manual, which was updated in
commit 47a9024.

Thanks to Sven Seebeck for reporting the bug in issue 16 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/16>.
2022-06-17 18:45:21 +03:00
Protesilaos Stavrou 47a9024b00
BREAKING update the .dir-locals.el sample
The previous value was fault.  We just want to get the
'default-directory'.  We shall handle it internally from there.
2022-06-17 18:44:53 +03:00
Protesilaos Stavrou 7ce2f7d3e3
Use the 'denote-directory' function, not variable
Just to be sure we always get the appropriate value.
2022-06-17 18:44:53 +03:00
Protesilaos Stavrou c3feb9a0ec
Remove superfluous when
The diff is mostly indentation.  The very first 'when' was just moved
inside the subsequent 'when-let*'
2022-06-17 18:02:46 +03:00
Protesilaos Stavrou da32e7f7f9
Tweak denote-dired-rewrite-front-matter docstring 2022-06-17 18:02:03 +03:00
Protesilaos Stavrou 443c687f05
Update denote-dired--edit-front-matter-p docstring 2022-06-17 17:59:50 +03:00
Protesilaos Stavrou 995ef56415
Improve check in denote-dired--edit-front-matter-p 2022-06-17 17:58:26 +03:00
Protesilaos Stavrou 737c647957
Rename buffer post file rename 2022-06-17 17:58:19 +03:00
Protesilaos Stavrou 83d53afae4
Improve dired revert-buffer post rename 2022-06-17 17:52:08 +03:00
Protesilaos Stavrou a785de6760
Make sure minibuffer can be resized while renaming
We need it to display the echo are message about the potential change to
the file's front matter.
2022-06-17 11:26:32 +03:00
Protesilaos Stavrou 34d11cea33
Include 'denote-retrieve' in sample configuration 2022-06-17 11:26:15 +03:00
Protesilaos Stavrou cea51a8a11
Add section with Frequently Asked Questions 2022-06-17 10:07:11 +03:00
Protesilaos Stavrou 5213c9e7af
Add section with alternatives to Denote 2022-06-17 09:10:06 +03:00
Protesilaos Stavrou cbaab43170
Update Acknowledgement: svnsbck => Sven Seebeck
I prefer to use names instead of handles:
<https://github.com/protesilaos/denote/issues/15#issuecomment-1158497383>.
2022-06-17 08:14:34 +03:00
Protesilaos Stavrou d46c8fec55
Add "Contributing" section to the manual 2022-06-17 08:01:49 +03:00
Protesilaos Stavrou e0ff114a93
Update Denote sources in manual's introduction 2022-06-17 07:52:47 +03:00
Protesilaos Stavrou a1d315ff84
Reword statement about metanotes 2022-06-17 07:38:37 +03:00
Protesilaos Stavrou b651200fdf
Include "hackability" in the manual's overview 2022-06-17 07:38:12 +03:00
Protesilaos Stavrou 13bae5f9c4
Remove instability warnings (v0.1.0 is close) 2022-06-17 07:19:56 +03:00
Protesilaos Stavrou 8dcb3aea4e
Add minor tweaks to the manual 2022-06-17 07:19:24 +03:00
Protesilaos Stavrou 90875d5419
Sort backlinks from oldest to newest
I think we do not need a user option for this, as too many options make
it difficult to understand what is really needed to get started.  Though
the 'denote-link-backlinks-sort' variable can be set to t to reverse the
order.
2022-06-17 07:16:46 +03:00
Protesilaos Stavrou 10b30d1e15
Expand manual on journaling with past date
Thanks to svnsbck for the discussion on issue 15 over at the GitHub
mirror: <https://github.com/protesilaos/denote/issues/15>.
2022-06-17 06:17:12 +03:00
Protesilaos Stavrou 5228b1bb17
Sort 'denote-link-add-links' contents 2022-06-16 20:23:19 +03:00
Protesilaos Stavrou 9b9a764e57
Fix typo about package name
This is not relevant right now, as the package does not exist.  Just a
placeholder.
2022-06-16 17:39:31 +03:00