Commit graph

81 commits

Author SHA1 Message Date
Jean-Philippe Gagné Guay a4d50fbf71 Make identifier and date independent 2025-06-12 23:42:30 -04:00
Jean-Philippe Gagné Guay 40f2bf5569 Rename denote-id-regexp and denote-id-format 2025-06-07 22:45:10 -04:00
Protesilaos Stavrou 23bb1ec373
Remove obsolete tests 2025-04-15 17:26:37 +03:00
Protesilaos Stavrou 5fc634ebc4
REMOVE denote-sequence.el as it will be its own package
This is part of the wider reorganisation of the project, as discussed
in issue 543: <https://github.com/protesilaos/denote/issues/543>.
2025-02-10 08:51:54 +02:00
Kierin Bell df89c98b42 Update dt-denote-sequence--get-new-exhaustive for false matches with a common prefix
The new tests will detect false matches resulting from confusing
sequence "1" with "10", "11", "100", etc.
2025-01-31 19:17:11 -05:00
Protesilaos Stavrou 322d6d493e
Update dt-denote-sequence--get-new-exhaustive to account for all denote-sequence-relative-types 2025-01-31 10:42:08 +02:00
Protesilaos Stavrou 2fe245806e
Update dt-denote-sequence--get-new-exhaustive to all test for relatives 2025-01-17 09:04:37 +02:00
Protesilaos Stavrou 78392b86ba
Rename dt-denote-sequence--get-new-child-and-sibling to dt-denote-sequence--get-new-exhaustive
Add the test for parent as well.
2025-01-17 08:22:37 +02:00
Protesilaos Stavrou 0c4fcdedcc
Update dt-denote-sequence--get-new-child-and-sibling to use denote-sequence-get-new 2025-01-17 08:19:32 +02:00
Protesilaos Stavrou f23f84c6e3
Rename the function denote-sequence-convert to denote-sequence-make-conversion
The old name is better for a command.
2025-01-15 16:47:43 +02:00
Protesilaos Stavrou d934da26eb
Make dt-denote-sequence--get-new-child-and-sibling use the system trash 2025-01-15 16:13:53 +02:00
Protesilaos Stavrou b596ca71ad
Consolidate the tests of new child or sibling sequences 2025-01-13 11:24:54 +02:00
Protesilaos Stavrou f9f779847c
Make denote-sequence--get-largest more robust when getting a child 2025-01-13 11:13:51 +02:00
Protesilaos Stavrou a717f46eee
Make denote-sequence-convert also convert complete sequences 2025-01-12 10:57:42 +02:00
Protesilaos Stavrou 182db0675e
Expand tests to also cover alphanumeric sibling sequences 2025-01-12 10:21:53 +02:00
Protesilaos Stavrou a0188e7cba
Expand tests to also cover alphanumeric child sequences 2025-01-12 10:19:44 +02:00
Protesilaos Stavrou b642758ff9
Ensure the sequence tests target the implied scheme 2025-01-12 10:16:07 +02:00
Protesilaos Stavrou 43bd30e6eb
Make the groundwork for alphanumeric (Luhmann) sequences in denote-sequence.el
The idea is to support both numeric and alphanumeric sequencing
schemes, as documented in the new user option 'denote-sequence-scheme'.

We now have the tools to correctly split, join, increment, and convert
input accordingly, such that we can, for example, accurately produce a
child of sequence "1a2" (we could already do that for numeric
sequences).

What is covered herein is just the groundwork. I still need to extend
the helper functions which directly support the creation of new
parent, child, or sibling sequences. While this still is a lot of
work, the hard part is now done.
2025-01-11 19:37:56 +02:00
Protesilaos Stavrou 07aec1b587
Fix the shorthand in denote-test.el 2025-01-11 08:21:21 +02:00
Protesilaos Stavrou c3b2a9dce1
Expand the test for denote-sequence--get-new-child
This is to test the case reported by elliottw in issue 519:
<https://github.com/protesilaos/denote/issues/519> .
2025-01-08 11:48:31 +02:00
Protesilaos Stavrou 383a610399
Make denote-test.el use Elisp shorthands 2025-01-01 08:50:52 +02:00
Protesilaos Stavrou 9da97d3dc2
Update copyright years in denote-test.el 2025-01-01 08:32:04 +02:00
Protesilaos Stavrou cd772dad09
Add TODO for possibly sharing state between some tests 2024-12-31 11:59:43 +02:00
Protesilaos Stavrou c0bcc13ef3
Write test for denote-sequence--get-new-sibling given commit 43322b3 2024-12-31 11:57:43 +02:00
Protesilaos Stavrou 6a43e5cad5
Add test about denote-sequence--get-new-child 2024-12-31 08:46:05 +02:00
Protesilaos Stavrou 2ab74c1d47
Merge pull request #495 from jeanphilippegg/denote--date-convert
Small adjustments for notes without identifier
2024-12-14 09:10:59 +02:00
Jean-Philippe Gagné Guay 779fe017dc Validate the presence of at least one file name component 2024-12-13 23:42:45 -05:00
Jean-Philippe Gagné Guay 8f3e5dd407 Fix tests 2024-12-13 23:23:25 -05:00
Jean-Philippe Gagné Guay 0a5c142287 Refactor denote--date-convert 2024-12-13 22:31:48 -05:00
Protesilaos Stavrou f89f9ee963
Make denote-date-prompt accept optional INITIAL-DATE and PROMPT-TEXT
Thanks to Alex Griffin for starting the discussion about this feature
and to Jean-Philippe Gagné Guay for contributing to it. It was done in
issue 489: <https://github.com/protesilaos/denote/issues/489>.
2024-12-09 11:51:08 +02:00
Jean-Philippe Gagné Guay a204554b8d denote-get-identifier returns an empty string when date is nil
Also make the date parameter mandatory
2024-11-08 22:58:14 -05:00
Protesilaos Stavrou a05ed292bf
Clarify denote-test--denote--format-front-matter doc string 2024-11-03 17:28:11 +02:00
Jean-Philippe Gagné Guay 7ccddb5837 Add signature parameter to denote--format-front-matter 2024-11-02 01:13:26 -04:00
Jean-Philippe Gagné Guay 6446650c36 Make date parameter a date object in denote--format-front-matter 2024-11-02 00:15:04 -04:00
Jean-Philippe Gagné Guay acad7c3577 Do not check type in denote-format-string-for-{org/md}-front-matter 2024-10-25 23:37:57 -04:00
Protesilaos Stavrou 6a67534820
Clarify a doc string in denote-test.el 2024-09-22 08:08:32 +03:00
Jean-Philippe Gagné Guay 68e31fdb87 Make slug functions public and remove some options and functions 2024-09-13 21:56:25 -04:00
Protesilaos Stavrou afe2bcaafe
Add test for denote-slug-keep-only-ascii 2024-09-03 14:02:14 +03:00
Protesilaos Stavrou 839d68e8a1
Update all the header information of denote-test.el 2024-09-01 09:26:10 +03:00
Protesilaos Stavrou c66521caeb
Add missing year range to denote-test.el copyright header 2024-09-01 09:25:15 +03:00
Protesilaos Stavrou 87a9e5e731
Fix typo in a comment 2024-09-01 09:21:09 +03:00
Protesilaos Stavrou addff3d4d7
Write tests for denote-identifier-p and denote--id-to-date 2024-09-01 09:19:52 +03:00
Protesilaos Stavrou 07a16f5dac
Expand the tests about retrieving file name components 2024-06-10 20:26:26 +03:00
Protesilaos Stavrou 08223cbb62
Write test for denote-retrieve-filename-signature 2024-06-10 20:19:52 +03:00
Protesilaos Stavrou 3ae0c7816b
Write test for denote-retrieve-filename-keywords 2024-06-10 20:18:04 +03:00
Protesilaos Stavrou d983c5c56b
Write test for denote-retrieve-filename-title 2024-06-10 20:17:43 +03:00
Protesilaos Stavrou 8f61dc1124
Write test for denote-retrieve-filename-identifier 2024-06-10 20:11:26 +03:00
Jean-Philippe Gagné Guay df44843766 Make denote-filetype-heuristics return nil with unrecognized file types 2024-05-15 22:29:28 -04:00
Jean-Philippe Gagné Guay 943d20d124 Remove denote-convert-file-name-keywords-to-crm 2024-04-14 15:28:19 -04:00
Jean-Philippe Gagné Guay 10cede7f5c Remove denote-desluggify 2024-03-22 23:22:42 -04:00