Bug 235410 - Allow option to read tab titles and tab commands from file
Summary: Allow option to read tab titles and tab commands from file
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 04:01 UTC by Kurt Hindenburg
Modified: 2010-05-01 22:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch against trunk to read from file (5.94 KB, patch)
2010-04-27 04:55 UTC, Kurt Hindenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
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