Execute an item without closing the LaunchBox #122

Closed
sepich opened this Issue Sep 21, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@polyvertex

polyvertex Sep 22, 2016

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?

Member

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

This comment has been minimized.

Show comment
Hide comment
@sepich

sepich 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

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 from Multiselect in results to Execute an item without closing the LaunchBox Sep 22, 2016

@sepich

This comment has been minimized.

Show comment
Hide comment
@sepich

sepich 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

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

This comment has been minimized.

Show comment
Hide comment
@polyvertex

polyvertex Oct 10, 2016

Member

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

Member

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