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

Open hosts/apps in tabs instead of new window by default #26

Open
daroczig opened this issue Oct 19, 2012 · 13 comments
Open

Open hosts/apps in tabs instead of new window by default #26

daroczig opened this issue Oct 19, 2012 · 13 comments

Comments

@daroczig
Copy link

As far as I see all commands are run in a new window by default (for gnome-terminal and terminator), or I have screwed up my configuration. Any idea how to get new tabs instead of windows by default?

The "Open all as tabs" button is working fine.

@daroczig
Copy link
Author

I am pretty sure it's something about my settings, but have no idea how to resolve that.

Now if I set the default terminal to terminator, then the first time I start a host a terminator window would be opened with the host attached to that. Clicking on another host opens up a new window without running any commands in there.

I use zsh on Arch Linux running GNOME Shell 3.4.2

@sciancio
Copy link
Owner

You can reset your configuration by deleting the file .connmgr (backup
it first).

Or you can change the first part of the configuration file:

{
"Global": {
"terminal": 0,
"menu_open_tabs": true,
"menu_open_windows": true
},
"Root": [
[ ...

to change extension's behaviour.

On 19/10/2012 14:39, Gergely Daróczi wrote:

I am pretty sure it's something about my settings, but have no idea
how to resolve that.

Now if I set the default terminal to |terminator|, then the first time
I start a host a |terminator| window would be opened with the host
attached to that. Clicking on another host opens up a new window
without running any commands in there.

I use |zsh| on |Arch Linux| running |GNOME Shell 3.4.2|


Reply to this email directly or view it on GitHub
#26 (comment).

@daroczig
Copy link
Author

Thanks a lot! I have restarted gnome-shell and that strange issue in my last comment is gone away.

But my problem is after all that I have an IMHO all right conf file, beginning with:

{
  "Global": {
    "terminal": 1, 
    "menu_open_tabs": true, 
    "menu_open_windows": true
  }, 
  "Root": [
    [
      {

So currently configured for terminator, but a new window is opened up every time I click on a host or an app. Is this normal? Tabs are to be used only when a user clicks on "Open all in tabs" button?

@sciancio
Copy link
Owner

Yes, it's normal. Tabs are used only with "Open all as tabs" button.

On 22/10/2012 21:12, Gergely Daróczi wrote:

Thanks a lot! I have restarted |gnome-shell| and that strange issue in
my last comment is gone away.

But my problem is after all that I have an IMHO all right conf file,
beginning with:

|{
"Global": {
"terminal": 1,
"menu_open_tabs": true,
"menu_open_windows": true
},
"Root": [
[
{
|

So currently configured for |terminator|, but a new window is opened
up every time I click on a host or an app. Is this normal? Tabs are to
be used only when a user clicks on "Open all in tabs" button?

@daroczig
Copy link
Author

Is there any chance to add a new option about this question in the settings? Like you have a list of supported terminals, maybe adding a checkbox to open new terminals in tabs/windows?

@sciancio
Copy link
Owner

You can not open a tab in a terminal already open, unless you're on the
same terminal.So I can not run any commands, from extension and not from
the terminal, to open a tab inthat terminal.

On 23/10/2012 21:54, Gergely Daróczi wrote:

Is there any chance to add a new option about this question in the
settings? Like you have a list of supported terminals, maybe adding a
checkbox to open new terminals in tabs/windows?


Reply to this email directly or view it on GitHub
#26 (comment).

@daroczig
Copy link
Author

Well, that must depend on the terminal.
E.g. with guake this is quite straightforward of course, but I do use e.g. lilyterm and used terminator also as I've updated the terminal.js to always open a new tab instead of a new window by default, so I had always one window and all tabs landed inside that.
I am not sure if it's just me or others too who uses terminals in one window, that's why I opened this ticket. Pls feel free to close it any time, I can use my custom fork - where I hardcode terminals to open up in tabs instead of windows.

@Raboo
Copy link

Raboo commented Apr 10, 2013

Perhaps you can open a new tab in gnome-terminal using xprop and xdotool? I also believe you can use xdotool to on a certain pid...

http://stackoverflow.com/questions/1188959/open-a-new-tab-in-gnome-terminal-using-command-line/2191093#2191093

@Raboo
Copy link

Raboo commented Apr 10, 2013

@Raboo
Copy link

Raboo commented Apr 11, 2013

Sorry for spamming.. But here is a working shell script that can launch gnome-terminal in a new tab.
https://gist.github.com/Raboo/5361942
However i'm unable to make it work with connection manager..

@daroczig
Copy link
Author

@Raboo: connectionmanager can open new terminals as tabs instead of windows for ages (with e.g. gnome-terminal - see gnome-terminal --help-all), I wrote here about making that as optionally default - not just when you click on "open all".

@Raboo
Copy link

Raboo commented Apr 11, 2013

@daroczig for me when I run gnome-terminal --tab it opens a new window, it does not reuse the old one.

@daroczig
Copy link
Author

Sry, I do not use gnome-terminal any more, so not sure about the exact parameters, but pls see @sciancio's parameters in the sources: https://github.com/sciancio/connectionmanager/blob/master/terminals.js#L159

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

No branches or pull requests

3 participants