orhun / kermit

A VTE-based, simple and froggy terminal emulator 🐸
GNU General Public License v3.0
134 stars 8 forks source link

Option to open a command in a new tab or in a new window #16

Closed emanuelserpa closed 3 years ago

emanuelserpa commented 3 years ago

I asked yesterday a project (https://github.com/Stunkymonkey/nautilus-open-any-terminal/issues/25) to support kermit and seems like kermit -c cd doesn't open a new kermit window. I tried kermit -e $SHELL cd as a workaround, and while it works on a terminal, it doesn't work with it.

Is there a way to add arguments like -w to open a command specifically in a new window and another to do the same in a new tab?

orhun commented 3 years ago

I asked yesterday a project (Stunkymonkey/nautilus-open-any-terminal#25) to support kermit and seems like kermit -c cd doesn't open a new kermit window. I tried kermit -e $SHELL cd as a workaround, and while it works on a terminal, it doesn't work with it.

See https://github.com/Stunkymonkey/nautilus-open-any-terminal/issues/25#issuecomment-859633090

Is there a way to add arguments like -w to open a command specifically in a new window and another to do the same in a new tab?

Do you mean adding an argument similar to NEW_TAB_PARAMS?

emanuelserpa commented 3 years ago

Oh, sorry for the delay, and thank you very much for the -w and the MR!

Do you mean adding an argument similar to NEW_TAB_PARAMS?

Yes, like --new-tab opens in the same window but in another tab. Tried here with xfce4-terminal and works fine.

TBH it's not a use case of mine (I don't even know why I put tabs on this), as I use a tiling wm, and I'm pretty satisfied with -w.

orhun commented 3 years ago

TBH it's not a use case of mine (I don't even know why I put tabs on this), as I use a tiling wm, and I'm pretty satisfied with -w.

Alright, closing it for now.