armindarvish / consult-gh

An Interactive interface for "GitHub CLI" client inside GNU Emacs using Consult

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default action in embark menus

armindarvish opened this issue · comments

Is your feature request related to a problem? Please describe.
The default actions in embark (bound to "RET") for minibuffer candidates is whatever command opened the minibuffer in the first place (see: https://github.com/oantolin/embark#the-default-action-on-a-target). This is not ideal for consult-gh candidates because running the same interactive commands on the minibuffer candidate produces errors. We should replace the default actions by using embark-default-action-overrides

Describe the solution you'd like
Change the default actions in embark menus (by appending embark-default-action-overrides) to run the default action of consult-gh according to each category. For example, when embark is called on a repo candidate, it should trigger consult-gh-repo-action.

Describe alternatives you've considered
N/A

Additional context
This will also help address #69

This is resolved after merging #71. Closing this issue now.