After using ivy-set-actions for a while some lists of actions got too long.
Now I would like to try the other way around and set the default action within a wrapper function for a call to an ivy- or a counsel-command.
What would be the best way to do that?
(defun run-my-special-action-on-results-of-ivy-or-cousel-call (initial-input)
(interactive)
(progn
(ivy-set-default-action 'my-special-action)
(counsel-command initial-input)))
After using ivy-set-actions for a while some lists of actions got too long.
Now I would like to try the other way around and set the default action within a wrapper function for a call to an ivy- or a counsel-command.
What would be the best way to do that?