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 · 4 comments
Closed

Execute an item without closing the LaunchBox #122

sepich opened this issue Sep 21, 2016 · 4 comments

Comments

@sepich
Copy link

@sepich 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

@polyvertex polyvertex commented Sep 22, 2016

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 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 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 polyvertex added status/done and removed status/done labels Oct 10, 2016
@polyvertex
Copy link
Member

@polyvertex polyvertex commented Oct 10, 2016

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

@polyvertex polyvertex closed this Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.