-
Notifications
You must be signed in to change notification settings - Fork 21
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
Prefill search query from Clipboard #123
Comments
there is the on_activated method that gets called when the KP launchbox is opened. |
Thanks, what i actually was unable to find - is some |
i dont think that is possible for a plugin. for one it collides with the |
Actually if it is possible for plugin to push results |
i'm pretty sure that |
It is not possible for a plugin to change the state of the search as it would give too much power to them. For example, what would happen if two plugins try to change the content of the edit box? Perhaps a solution lies somewhere else but for that I would need more info about the reason(s) of your request. |
Ah I realized I only partly answered to this regarding the following of the discussion. I confirm that |
@sepich Have you managed to achieve what you wanted? |
I've managed to install KP and write a simple plugin using your SDK. Thanks for detailed docs.
Mostly workflow is to copy hostname from Monitoring, and then connect to it. But monitoring has only hostname, and to connect i need fqdn. So i've just wanted to reduce one step in workflow ( P.S
I do see a lot of comments like that from you in different issues. I believe that's wrong point.
That one from here is much better. It is up to user to decide which plugins to use, and which ones are buggy. And devs should have as much possibilities to write some workflow as possible. If they want to write buggy plugin - they would be able to do it even with most restricted API. Ability to shoot in the foot - is not a show stopper for internal API 😉 |
A while ago I considered adding an extra hotkey to do exactly that: pop up the LaunchBox then immediately paste the content of the clipboard into it if it happens to be some text so a search is started automagically from it. It seems that it would perfectly address your problem. Regarding your P.S. part, again, by design, plugins won't be able to change the state of the application directly. They can only make suggestions (in its general sense) about what to do and it will be up to the application to handle them or not. That, by extension, allows to give full power to the end-user, not the developer, even if they happen to be the same person. That does not make the API less flexible, that just allows the application to offer a better user experience. In that regard, the key question was: |
|
Can we see list of the history ? |
It would be nice (at least for me ;) to have some simple logic on_open of LaunchBox:
Reading API docs, it looks like there is no possibility to create such as a plugin. What are the chances to have it implemented as core feature then?
The text was updated successfully, but these errors were encountered: