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

Execute an item without closing the LaunchBox #122

Closed
sepich opened this issue Sep 21, 2016 · 5 comments
Closed

Execute an item without closing the LaunchBox #122

sepich opened this issue Sep 21, 2016 · 5 comments

Comments

@sepich
Copy link

sepich commented Sep 21, 2016

Thank you for detailed docs for your program, specs looking very promising - easy extension via Python plugins! But API missing one thing i'm willing to use - it is multiselect of results found.
My exact case is: we have thousands hosts to manage, hostnames/types are stored in some CMDB with REST API. Task is to quickly search db for type or part of hostname, get FQDN and connect to it. This is the clear case for Keypirinha, but issue is that i often need to open multiple session from the same search results (cssh/cputty/etc), like i typed 'web' and found

webserver1.domain.local
webserver2.domain.local
webproxy.domain.local 

Now i want to press Ctrl-A, Enter to open connections to all 3 found results.
Or press Down, Ctrl-Space to select first, focus moves to next item, press Ctrl-Space to select second, press Enter - to connect to first two servers only.
Currently i'm using peco/percol for this, but willing to move on to GUI.

@polyvertex
Copy link
Member

Multiple selection of result items won't happen soon as it collides with the current design of the application.

An alternative could be to be able to execute an item without the LaunchBox to hide, say with Shift+Enter for example. In that case, only one search would be necessary, which is the root reason of your request as I understood it.

Would that be an acceptable solution?

@sepich
Copy link
Author

sepich commented Sep 22, 2016

Yep, at least something, thanks.
Need to give it a try and see if new windows would not interfere with LaunchBox having always_on_top = yes

@polyvertex polyvertex changed the title Multiselect in results Execute an item without closing the LaunchBox Sep 22, 2016
@sepich
Copy link
Author

sepich commented Sep 25, 2016

Played a bit with debugging a plugin, hope now I understand internals better.
So also wanted to ask, if you are going to implement this Shift+Enter, please also consider:

  • in plugin on_execute i should be able to distinguish between usual Enter and this one multi-action. (For single item i just want to open connection in ConEmu tab. For mutiple items i want to execute separate kitty instances for cputty)
  • Shift+Enter executes this line and moves selection to next line. So, i could just hold Shift and keep pressing Enter

Thanks

@polyvertex
Copy link
Member

Shift+Enter and Ctrl+Shift+Enter shortcuts added in v2.9.7.

@oscardianno
Copy link

Hello @polyvertex! Thanks for such a great app, loving it so far!

I have an issue regarding this functionality; what I'd like to do is, for example, Open the LaunchBox, type notepad, press Shift+Enter (so that LaunchBox is not closed), then, type firefox and press Enter.
Goal is to open both applications without having to move from or back to the LaunchBox.

However, as soon as I launch notepad, it takes focus (even with the always_on_top setting enabled), so my next search term, in this case, firefox, gets typed in the notepad, instead of in the LaunchBox.

Is it possible to keep focus on the LaunchBox after opening something when pressing Shift+Enter?

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

No branches or pull requests

3 participants