Commit Graph

15 Commits

Author SHA1 Message Date
dff82d885f
Bump version 2022-09-01 16:38:02 +02:00
f8e68356d1
Rename option auto-id' to unique-id' 2022-09-01 16:26:30 +02:00
8633b3b83b
Simpler expression 2022-09-01 16:22:22 +02:00
8f0f99121f
Bump version to 0.3.1 2022-08-24 18:25:44 +02:00
81212e7c60
Remove redundant let, ensure the whole buffer is checked for auto-id
Redundant let was left over from past refactoring. This commit removes
it.

It also ensures the search for auto-id:t is made throughout the whole
buffer.
2022-08-24 18:22:53 +02:00
c32fc49d3d
Make org-unique-id-maybe interactive 2022-08-24 18:17:16 +02:00
1766d9c911
Version bump 2022-08-24 03:29:33 +02:00
1646098bfa
More readable regexes, fix a potential issue with a dash 2022-08-24 03:27:27 +02:00
bc48314435
Fallback value
The `when' block would only return a string when the condition is
satisfied. If not, it returns `nil'. This is not acceptable, as
`postfix' is later used in a `concat'. This commit makes `postfix' an
empty string if the `when' condition fails in order to prevent this
concatenation issue.
2022-08-24 03:27:26 +02:00
c303340523
Add local variables to ensure consistent formatting
Also edit formatting of comments and docstring to respect said
variables
2022-08-24 02:53:39 +02:00
975311184a
Add org-unique-id-maybe as a wrapper to org-unique-id
This new function allows for a cleaner hook addition. It also moves
the check for the presence of the auto-id option to this function.
This allows the user to call org-unique-id on any org buffer,
regardless of the presence of auto-id and its value.
2022-08-24 02:48:58 +02:00
c8c96c65d0
Add missing require and parent group to org-unique-id gorup 2022-08-24 02:44:38 +02:00
ea91cc015f
Fix wrong regex 2021-06-15 18:39:23 +02:00
8618a7580a
Change some function names, add README, LICENSE and CONTRIBUTING 2021-06-15 18:32:21 +02:00
5d4d042612
Initial commit 2021-06-15 18:10:08 +02:00