From 0b82dd1945f94d236556036782a634992b1a762e Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 6 Jul 2024 09:14:52 +0200 Subject: [PATCH] Extend regular expression to remove cookie when inserting Org links This should also catch the empty cookies `[/]` and `[%]` now. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 79e4f82..3e7f276 100644 --- a/init.el +++ b/init.el @@ -884,7 +884,7 @@ quickly loose their meaning." ;; Taken from `org--get-outline-path-1': (org-trim (replace-regexp-in-string - "\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]" "" + "\\[[0-9]*%\\]\\|\\[[0-9]+/[0-9]+\\]\\|\\[/\\]" "" description))))))) (use-package ol-bbdb