forked from oantolin/embark
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multiple targets at point (Fix oantolin#92)
When not acting in the minibuffer all target finders are executed. The action indicator will then indicate that multiple targets exist. By pressing the `embark-act` key again, the user can cycle to the next target. The alternative approach discussed in oantolin#92 was to merge the keymaps. This approach has disadvantages: Multiple targets are active at the same time and depending on the selected action, the target is selected. This complicates the current `embark--act` implementation, which is untouched by this PR. Furthermore keybindings are shadowed, which makes the individual keymaps a lot less useful. This shadowing will lead to confusion and it will not be obvious to the user which target is actually being used. The current approach is also easy to implement, it fits well within the existing codebase. This is a good indication to go this route.
- Loading branch information
Showing
1 changed file
with
124 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters