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

Fire a callback when the fuzzy-finder is opened #23

Open
ivangalbans opened this issue Mar 11, 2019 · 3 comments
Open

Fire a callback when the fuzzy-finder is opened #23

ivangalbans opened this issue Mar 11, 2019 · 3 comments

Comments

@ivangalbans
Copy link

I would like a callback OnOpen like OnClose.

My question is: How can I execute a function when fuzzy-finder is opened ?
This functionality is very useful

@1egoman
Copy link
Owner

1egoman commented Mar 12, 2019

The easiest way is to manage focus on your own - ie, using the "controlled" method. When you handle the keypress or other opening mechanism, you can call whatever initialization logic you'd like.

@ivangalbans
Copy link
Author

Yes, it works but I think it's easier to have an OnOpen callback. If this is possible, of course.

@1egoman
Copy link
Owner

1egoman commented Mar 13, 2019

If it's something that you'd like to do, feel free to make the change and open a pull request - if it looks good I'd merge it! This isn't something that I have a need for though (and don't have time to prioritize it right now).

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

No branches or pull requests

2 participants