Hi Org-Roam Discourse,
I need some help with implementing a work around to an org-roam issue with opening back-links. Currently, backlinks open up in a split window. This is a known issue that is tracked on github repo, and is talked about on this forum ( Opening Internal Links in The Same Window/Frame).
The workaround solution given on github for this issue is: emacs - How to let Org-mode open a link like [[file://file.org]] in current window instead of default in other window? - Stack Overflow :
(defun org-force-open-current-window ()
(let ((org-link-frame-setup (quote
((vm . vm-visit-folder)
(vm-imap . vm-visit-imap-folder)
(gnus . gnus)
(file . find-file)
(wl . wl)))
;; Depending on universal argument try opening link
(defun org-open-maybe (&optional arg)
;; Redefine file opening without clobbering universal argumnet
(define-key org-mode-map “\C-c\C-o” 'org-open-maybe)
I’m struggling to get this to work, given I’m new to emacs. My first problem, is that when I rebind C-c C-o to any command (e.g. i rebound it to so C-c C-o opens eshell), the rebind works when I go C-c C-o, but doesn’t get triggered when I just press the backlinks normally. Why is this? Is this because I use doom? If so how do I re-bind clicking on the backlinks to this org-force-open-current-window function?
Hope this was the appropriate place to ask,