Extend regular expression to remove cookie when inserting Org links
This should also catch the empty cookies `[/]` and `[%]` now.
This commit is contained in:
parent
6f4baa885e
commit
0b82dd1945
2
init.el
2
init.el
@ -884,7 +884,7 @@ quickly loose their meaning."
|
|||||||
;; Taken from `org--get-outline-path-1':
|
;; Taken from `org--get-outline-path-1':
|
||||||
(org-trim
|
(org-trim
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]" ""
|
"\\[[0-9]*%\\]\\|\\[[0-9]+/[0-9]+\\]\\|\\[/\\]" ""
|
||||||
description)))))))
|
description)))))))
|
||||||
|
|
||||||
(use-package ol-bbdb
|
(use-package ol-bbdb
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user