Bug 235410

Summary: Allow option to read tab titles and tab commands from file
Product: [Applications] konsole Reporter: Kurt Hindenburg <khindenburg>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:
Attachments: Patch against trunk to read from file

Description Kurt Hindenburg 2010-04-26 04:01:55 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Patch and info http://reviewboard.kde.org/r/1079/

The attached patch introduces the new command line option "-tabsfromfile <filename>" to konsole. On startup, konsole reads the file which contains one line for each tab to be created. Syntax is "<tab title>: <command> <args> ..."; comment lines start with '#'. This new option can e.g. be used to conveniently open ssh connections to a pool of PCs; with one tab for each PC. Such a configuration file could look like this:
# SSH sessions to all Network Testbed PCs
Control: ssh -CX user@control.my-domain.org
West:    ssh -CX user@west.my-domain.org
North:   ssh -CX user@north.my-domain.org
South:   ssh -CX user@south.my-domain.org
East:    ssh -CX user@east.my-domain.org
Comment 1 Kurt Hindenburg 2010-04-27 04:55:54 UTC
Created attachment 43056 [details]
Patch against trunk to read from file

I changed a few things:
a) ;; is used as a seperator to simplify parsing
b) separate the functions
Comment 2 Kurt Hindenburg 2010-05-01 22:07:28 UTC
SVN commit 1121586 by hindenburg:

Allow tab commands and their titles to be read from a file on the command line.

# Examples below:
title Heading to earth;; command: ssh earth
title Top this!;; top

Original patch by Thomas Dreibholz; hacking/changes/bugs are all mine.

BUG: 235410


 M  +112 -2    Application.cpp  
 M  +2 -0      Application.h  
 M  +1 -0      main.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1121586