Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: backspace to return to category menu #1

Open
et2010 opened this issue Mar 18, 2018 · 2 comments
Open

Feature request: backspace to return to category menu #1

et2010 opened this issue Mar 18, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@et2010
Copy link

et2010 commented Mar 18, 2018

Thanks for this great package! It would be greater If one could return to category menu with backspace.

I made a screenshot to demonstrate:

academic-phrase

After deleting the last char, If I press backspace again, the completion buffer will be closed. What I want is to return to the first level category menu when I press backspace. Is it possible with Ivy?

@nashamri
Copy link
Owner

Hey @et2010 thanks for the kind words 😄
Hmm, I'm not sure how to go about this. Right now, the package uses completing-read to prompt for user completions and it works well for both camps (helm and ivy). There might be a way to achieve this with only completing-read (https://www.gnu.org/software/emacs/manual/html_node/elisp/Minibuffer-Completion.html). As you can see, the function accepts a history parameter. I haven't played with this before, so I'm not sure. I certainly like the idea, but I don't have an obvious way of achieving it. I'm open for and suggestions or PRs.

@nashamri nashamri added the enhancement New feature or request label Mar 19, 2018
@et2010
Copy link
Author

et2010 commented Jun 27, 2018

Such feature can be implemented with Ivy API, I demonstrated a simple case in this post:

abo-abo/swiper#1640

But I haven't figure out how to deal with more than 2 levels or lists with complex structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants