aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-org/oni-org.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 444a508..0acc218 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2026.0324.011543
+;; Version: 2026.0327.005146
;; Package-Requires: (oni-yasnippet oni-hydra org org-edna diminish olivetti org-pretty-table)
;; This program is free software; you can redistribute it and/or modify
@@ -1044,7 +1044,12 @@ CLOSED: %(setq oni-org--capture-D-date (format-time-string (org-time-stamp-forma
(let ((title (read-string "Title: ")))
(find-file (expand-file-name (format "reference/%s-%s.org"
(format-time-string "%Y%m%d%H%M%S")
- (replace-regexp-in-string (rx whitespace) "-" (downcase title)))
+ (replace-regexp-in-string
+ (rx whitespace) "-"
+ (replace-regexp-in-string
+ (rx (not (any whitespace alnum)))
+ ""
+ (downcase title))))
oni-org-todo-dir))
(setq-local oni-org--capture-page-title title)))