mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(feature): insert link as downcased title with org-roam-insert
(#110)
This commit is contained in:
@ -122,7 +122,7 @@
|
||||
(with-current-buffer buf
|
||||
(with-simulated-input
|
||||
"File SPC 1 RET"
|
||||
(org-roam-insert))))
|
||||
(org-roam-insert nil))))
|
||||
(expect (buffer-string) :to-match (regexp-quote "file:f1.org")))
|
||||
|
||||
(it "temp2 -> nested/f1"
|
||||
@ -130,7 +130,7 @@
|
||||
(with-current-buffer buf
|
||||
(with-simulated-input
|
||||
"Nested SPC File SPC 1 RET"
|
||||
(org-roam-insert))))
|
||||
(org-roam-insert nil))))
|
||||
(expect (buffer-string) :to-match (regexp-quote "file:nested/f1.org")))
|
||||
|
||||
(it "nested/temp3 -> f1"
|
||||
@ -138,7 +138,7 @@
|
||||
(with-current-buffer buf
|
||||
(with-simulated-input
|
||||
"File SPC 1 RET"
|
||||
(org-roam-insert))))
|
||||
(org-roam-insert nil))))
|
||||
(expect (buffer-string) :to-match (regexp-quote "file:../f1.org")))
|
||||
|
||||
(it "a/b/temp4 -> nested/f1"
|
||||
@ -146,5 +146,5 @@
|
||||
(with-current-buffer buf
|
||||
(with-simulated-input
|
||||
"Nested SPC File SPC 1 RET"
|
||||
(org-roam-insert))))
|
||||
(org-roam-insert nil))))
|
||||
(expect (buffer-string) :to-match (regexp-quote "file:../../nested/f1.org"))))
|
||||
|
Reference in New Issue
Block a user