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

Allow just for one command in Spotlight for using it as a search for one model #130

Open
patimio66 opened this issue Jul 3, 2024 · 1 comment

Comments

@patimio66
Copy link

Hello,
It'd be great if it'd be possible to use Spotlight as just one command, without additional "Enter" clicking after opening the modal if we have one command. This of course could be optional/modified in the config file or somewhere else.
For example, there'd be a \App\Spotlight\FindProduct::class, and it would by default search for a product if you type in after going into CMD/CTRL K//.
Whatdya think?

@patimio66
Copy link
Author

Maybe it'd just run the go() command after a short timeout, on toggleOpen()? I'm sorry but I'm not so experienced and I don't know how to make that as a ready-to-merge PR. (I don't know how to resolve it in JS/Livewire)
image

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

1 participant