You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inserting a link via org-roam-insert, there's no space between the link and the preceding text.
This is very annoying because inserting links is the core feature of org-roam and fixing the space is non-trivial: Simply moving left and inserting a space inserts the space into the link, which is not what you want.
This is essentially org-roam/org-roam#4.
A workaround is available there.
We may want to apply a variant of this here.
(I have no idea how this is done with similar packages in evil mode.)
Reproduction guide 🪲
Start Emacs
Open an org-roam file (e.g. org-roam-dailies-today)
I too was annoyed by the fact that the link was insert before space character at cursor rather than affter.
Following works for me to deal with this.
(defadviceorg-roam-insert (around append-if-in-evil-normal-mode activate compile)
"If in evil normal mode and cursor is on a whitespace character, then go intoappend mode first before inserting the link. This is to put the link after thespace rather than before."
(let ((is-in-evil-normal-mode (and (bound-and-true-p evil-mode)
(not (bound-and-true-p evil-insert-state-minor-mode))
(looking-at"[[:blank:]]"))))
(if (not is-in-evil-normal-mode)
ad-do-it
(evil-append 0)
ad-do-it
(evil-normal-state))))
I know very little about evil stuff, so someone more familiar with evil probably could come up with much more robust code.
bhipple
added a commit
to bhipple/spacemacs
that referenced
this issue
Aug 22, 2021
When we're adding links, without this they get smooshed together under the
curser. Tested to work; resolves#14137
Co-authored-by: Richard Kim <emacs18@gmail.com>
Description
When inserting a link via org-roam-insert, there's no space between the link and the preceding text.
This is very annoying because inserting links is the core feature of org-roam and fixing the space is non-trivial: Simply moving left and inserting a space inserts the space into the link, which is not what you want.
This is essentially org-roam/org-roam#4.
A workaround is available there.
We may want to apply a variant of this here.
(I have no idea how this is done with similar packages in evil mode.)
Reproduction guide 🪲
Observed behaviour: 👀 💔
Expected behaviour: ❤️ 😄
System Info 💻
The text was updated successfully, but these errors were encountered: