any workaround for evil users
i am new to emacs can you please help me setup some evil-mode keys as alternatives to o O e d keys while point being on the transclusion. I am using doom emacs for now.
I don't use Doom and do not know how its keybindings work -- I presume it has its own way from my memory. I would need to suggest to speak with someone in the Doom community / Discord.
How is this issue going?
I think you'd need to find a way to customize org-transclusion-map.
It's documented on the documentation: https://nobiot.github.io/org-transclusion/#Getting-Started
This single-letter-context-menu is defined in org-transclusion-map. The default keybindings are shown below. Adapt them to your liking, especially if you use Vim keybindings with Evil Mode, etc.
How is this issue going?
for the time being i have done nothing substantial about it i plan to spend some time on weekend to make it work in evil i am thinking of posting a request in doom discord for initial boilerplate code or an example for setting such mappings in evil but for the time being i am too overwhelmed with workload :(
I'm just getting things set up myself, so I can't vouch for the ergonomic soundness of these choice, but I've set up this mapping in my doom config:
(use-package! org-transclusion
:after org
:init
(map!
:map (org-mode-map)
:localleader
:prefix ("u" . "transclUde")
:desc "Mode" "t" #'org-transclusion-mode
:desc "Deactivate" "D" #'org-transclusion-deactivate
:desc "Refresh" "f" #'org-transclusion-refresh
;; Adding
:desc "Add" "a" #'org-transclusion-add
:desc "Add all" "A" #'org-transclusion-add-all
:desc "Add From link" "l" #'org-transclusion-make-from-link
;; Removing
:desc "Remove all" "r" #'org-transclusion-remove
:desc "Remove all" "R" #'org-transclusion-remove-all
;; Live sync
:desc "Start live sync" "s" #'org-transclusion-live-sync-start
:desc "Stop live sync" "S" #'org-transclusion-live-sync-exit
;; Navigating
:desc "Open source" "o" #'org-transclusion-move-to-source
;; Subtrees
:desc "Demote Subtree" "m" #'org-transclusion-demote-subtree
:desc "Promote Subtree" "i" #'org-transclusion-promote-subtree)
:config
(add-hook 'before-save-hook #'org-transclusion-refresh))
(m/i for demote/promote due to colemacs keyboard layout. This would be h/l in qwerty.)