Protesilaos
9fd6692a32
Bump version number to trigger GNU ELPA package rebuild to include commit 420710f
2026-05-27 20:30:00 +03:00
Protesilaos
420710fb17
Ensure :get-file-type-function is called only when file exists
...
Otherwise we get an error upon creating the file.
Thanks to potchie-maker for reporting the bug in issue 709:
<https://github.com/protesilaos/denote/issues/709 >.
2026-05-27 20:28:38 +03:00
Protesilaos
77813e9956
Bump version number to trigger GNU ELPA rebuild
...
I am bumping it straight to 4.2.2 because I had a tag earlier for
4.2.1 even though I forgot to update this header...
2026-05-23 23:15:15 +03:00
Protesilaos
cf1c81cba9
Make stylistic tweak to denote-file-prompt--format-identifier
2026-05-23 23:12:49 +03:00
Marco Baringer
d47464e23b
Require non-empty captures in the four field regexps
...
denote-{identifier,signature,title,keywords}-regexp used a lazy
zero-or-more capture ([^.]*?), so they matched the bare separator
followed by an extension, e.g. __.js, --.org, ==.org, @@.org. Combined
with denote-file-has-denoted-filename-p, this meant such files were
treated as valid denote notes. lodash's node_modules ships __.js files,
which made a denote-directory containing a lodash checkout enumerate
junk candidates in the file prompt (and previously crash, see preceding
commit).
Switch to a non-empty lazy capture ([^.]+?) so the field must contain at
least one character.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 16:20:49 +02:00
Marco Baringer
6ba209704d
Fix file-prompt crash when denote-directory contains files like __.js
...
Using denote in a directory that includes files matching '*/__.js'
breaks with "Wrong type argument: stringp, nil" on the file prompt.
lodash ships such files in node_modules, so accidentally pointing
denote at a lodash checkout (or having one under denote-directory)
triggers the error.
These files pass denote-file-has-denoted-filename-p because the empty
keywords section matches denote-keywords-regexp, but they have no
identifier, so denote-file-prompt--format-identifier passed nil to
propertize during affixation. Return nil in that case;
denote-file-prompt-affixate already substitutes "" for a nil prefix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 16:17:47 +02:00
Protesilaos
30c0d6536e
Be precise in the denote-file-prompt-extra-metadata docstring
2026-05-21 20:09:22 +03:00
Protesilaos
13b2164369
Update to Denote version 4.2.0
2026-05-20 15:41:08 +03:00
Protesilaos
e40bdc8cdc
Remove spacing in denote--get-front-matter-rewrite-prompt
2026-05-20 15:24:30 +03:00
Protesilaos
3ef7380190
Remove the denote-sort-dired-focus alias
...
I want to reach a point where only denote-dired and related are used.
Maybe this is more appropriate for the next major version, but I can
do it here since this is a new command.
2026-05-20 12:37:13 +03:00
Protesilaos
ea398e9a2a
Throw a user-error if denote-dired-focus is called in a Dired buffer without prior denote-dired
2026-05-20 12:35:57 +03:00
Protesilaos
dbfe4b189a
Remove faulty 'or' from denote--dir-in-denote-directory-p
...
Thanks to Jean-Philippe Gagné Guay for pointing out the problem with
it in a comment to issue 705:
<https://github.com/protesilaos/denote/issues/705#issuecomment-4436808008 >.
2026-05-13 11:12:45 +03:00
Protesilaos
3f5ede71d4
Reindent denote-valid-date-p
2026-05-12 13:26:37 +03:00
Protesilaos
1aedcff2d7
Make stylistic tweaks to denote--prepare-note
2026-05-12 13:25:01 +03:00
Protesilaos
59eea50d4b
Reindent denote--valid-file-type
2026-05-12 13:22:35 +03:00
Protesilaos
21b1c81d1a
Make denote--dir-in-denote-directory-p more robust
...
This is in response to a bug reported by Kevin Izevbigie in issue 705:
<https://github.com/protesilaos/denote/issues/705 >.
2026-05-12 13:18:27 +03:00
Protesilaos
0ff9573362
Make stylistic refinements to the helpers introduced in 8e6d83c
...
I was testing them and was too eager to commit before refining them.
Will need to write tests eventually, but I do not have time right now.
2026-05-01 18:48:34 +03:00
Protesilaos
8e6d83c652
Make rename commands not interfere with existing front matter indentation
...
This is to address the comment posted by Morten Kjeldgaard in issue
703: <https://github.com/protesilaos/denote/issues/703 >.
2026-05-01 18:40:39 +03:00
Protesilaos
06c520de36
Do for the keyword include/exclude commands the same as commit 9b8c96f
2026-04-28 23:31:03 +03:00
Protesilaos
9b8c96f5e8
Redefine denote-query-only-include-files and denote-query-exclude-files to use helper function
...
The macro we had before was okay, but this feels easier to reason about.
2026-04-28 23:27:03 +03:00
Protesilaos
d78ad3f74e
Make denote-link-ol-store work in org-capture as well
...
This affects the org-capture specifiers that create a link such as %a
and %l.
Thanks to jarofromel for bringing this matter to my attention in
discussion 702: <https://github.com/protesilaos/denote/discussions/702 >.
2026-04-28 22:56:36 +03:00
Protesilaos
97ffb56320
Use "Protesilaos" instead of "Protesilaos Stavrou"
...
As I announced here: <https://protesilaos.com/news/2026-04-21-omitting-the-surname/ >.
2026-04-24 13:26:01 +03:00
Protesilaos
dd4551ad9c
Rewrite the doc string of denote-file-type
2026-04-23 21:17:20 +03:00
Protesilaos
ee1ad314fc
Add :get-file-type-function to the denote-file-type function
2026-04-23 21:01:38 +03:00
Protesilaos
8b9a4e511d
Add a :get-file-type-function to the denote-file-types
2026-04-23 21:00:59 +03:00
Protesilaos
5281b7c3fc
Add a comment related to where denote--title-value-reverse-function is called
2026-04-23 19:55:38 +03:00
Protesilaos
207a365b83
Expand the TODO comment about denote-file-type
2026-04-23 19:30:51 +03:00
Protesilaos
568c807d8d
Add a TODO about denote-file-type
2026-04-23 19:27:16 +03:00
Protesilaos
ec4fed24f7
Prevent denote-retrieve-xref-alist-for-backlinks from throwing an error if file type is nil
2026-04-23 19:09:09 +03:00
gnuhack
aaa75e7f13
Macro for denote-query-exclude-files and denote-query-only-include-files
...
Replaced both functions with a new macro. Created the new functions through the macro.
2026-04-20 12:47:02 +02:00
Protesilaos Stavrou
c3b60fcada
Replace "doc string" with "docstring"
2026-04-13 08:41:39 +03:00
Protesilaos Stavrou
0993df4fbc
Fix typo about "keymap"
2026-04-09 21:11:40 +03:00
Protesilaos Stavrou
160444b853
Mention denote-dired-focus in the manual and expand its docstring
2026-04-07 12:11:54 +03:00
Protesilaos Stavrou
b4924c853d
Make denote-sort-dired always produce a new buffer
...
Thanks to 82Kang for telling me about the use-case of maintaining
multiple Denote Dired buffers side-by-side. This is done as part of
issue 693: <https://github.com/protesilaos/denote/issues/693 >.
2026-04-07 11:55:38 +03:00
Protesilaos Stavrou
21b8c6d024
Implement prototype of denote-dired-focus
...
I am doing this in response to a question posted by 82Kang in issue
693: <https://github.com/protesilaos/denote/issues/693 >.
We already have similar functionality for the denote-grep (and
related) buffers. This is an opportunity for me to also review all
that.
2026-04-07 11:39:28 +03:00
Protesilaos Stavrou
fd4d20b472
Make small stylistic tweaks to denote-grep and a helper function
2026-04-07 11:32:30 +03:00
Protesilaos Stavrou
9dc7420031
Tweak the denote-grep-display-buffer-action documentation
2026-04-07 11:32:13 +03:00
Protesilaos Stavrou
beb698f632
Deprecate the denote-grep-history
2026-04-07 11:22:26 +03:00
Protesilaos Stavrou
1058caea0c
Tweak the make-obsolete warnings for the grep prompt and its history
2026-04-07 11:19:46 +03:00
Protesilaos Stavrou
dcb3daf81a
Add TODO for denote-grep and friends
2026-04-06 22:59:03 +03:00
Protesilaos Stavrou
3e8c2c835d
Make stylistic changes and minor refinements to the query include/exclude commands
2026-04-06 22:57:54 +03:00
Protesilaos Stavrou
37beb39c3b
Consolidate the query/grep prompts for a REGEXP
2026-04-06 22:57:20 +03:00
Protesilaos Stavrou
5e4b95a1b7
Make stylistic refinements to denote-query-focus-last-search
2026-04-06 22:30:03 +03:00
Protesilaos Stavrou
d0252aff0c
Make stylistic refinements to denote-query-prompt
2026-04-06 22:29:51 +03:00
Protesilaos Stavrou
15415e7956
Refine how the prompt for query buffer narrowing is implemented
2026-04-06 22:23:39 +03:00
Protesilaos Stavrou
7b9be290e5
Inhibit denote--regexp-in-file-p error in denote-file-type
...
In the case where the check returns nil, we want to move to the next
condition, so no need for an error here.
2026-04-06 21:57:15 +03:00
Protesilaos Stavrou
acadd80426
Move denote--regexp-in-file-p further up
2026-04-06 21:56:59 +03:00
Protesilaos Stavrou
53bb758384
Rewrite denote-file-has-denoted-filename-p docstring for clarity
2026-04-06 21:56:43 +03:00
Protesilaos Stavrou
ded4c50b8c
Make denote-directories--get-paths take an argument and do error checking
2026-04-06 21:56:24 +03:00
Protesilaos Stavrou
627ed49989
Move denote--user-error-if-not-major-mode further up
2026-04-06 11:48:25 +03:00