Hi,

I was wondering if I missed something and there is a possibility to
start urxvt with multiple tabs open running predefined applications. I
did not find that function so I modified the tabbed extension. Would it
be possible to merge the attached patch upstream? I think using
extension parameters in <> brackets like for kuake is cleaner than a
previous proposal[1] to treat some paths in a special way. Now I can
start urxvt like that:
urxvt -pe "default,tabbed<app1|app2|app3>"

[1] http://lists.schmorp.de/pipermail/rxvt-unicode/2010q4/001322.html

-- 
Marcin Szewczyk
http://wodny.org
diff -ur 1/tabbed 2/tabbed
--- 1/tabbed	2016-02-29 21:11:21.491700216 +0100
+++ 2/tabbed	2016-02-29 21:18:32.771680987 +0100
@@ -7,7 +7,7 @@
 
 =head1 NAME
 
-tabbed - tabbed interface to urxvt
+tabbed<app1|app2|...|appN> - tabbed interface to urxvt
 
 =head1 DESCRIPTION
 
@@ -286,11 +286,18 @@
 
    my @argv = $self->argv;
 
-   do {
-      shift @argv;
-   } while @argv && $argv[0] ne "-e";
+   if ($self->{argv}[0]) {
+      my @tab_cmds = split('\|', $self->{argv}[0]);
+      foreach my $tab_cmd (@tab_cmds) {
+         $self->new_tab (("-e", $tab_cmd));
+      }
+   } else {
+      do {
+         shift @argv;
+      } while @argv && $argv[0] ne "-e";
 
-   $self->new_tab (@argv);
+      $self->new_tab (@argv);
+   }
 
    ()
 }
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to