Apologies if the question is poorly formulated, I am a beginner at understanding internals of Emacs/packages.
I am using using Doom Emacs, which provides Ivy as an interface for, for example, finding files.
I understand that custom actions can be created for acting on candidates. In my case (with Doom's Evil bindings), I select a candidate and hit C-o
to open the actions menus
I wrote a function that opens the selected file in a vertical split rather than in the current window, and added it as an action.
However, I would like to call this function directly by hitting a keyboard shortcut when I'm in Ivy (as I'm filtering files/buffers and selecting a candidate), instead of having the additional step of opening the actions menu.
So, for example, when I open ivy in my personal config folder and select the file I want, I would like to:
- Press
RET
to perform the default Ivy action (open the file in the current window) - Press
C-v
to open the file in a vertical split using my custom function - Possibly add more key mappings for other custom functions as well.
How might I be able to accomplish this?