Skip to content

ivy-set-default-action #363

Description

@drorbemet

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?

  • example
(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)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions