stepb / urxvt-tabbedex

Tabbed plugin for rxvt-unicode with many enhancements
75 stars 54 forks source link

Add shortcut/command to forcibly close tab #14

Open balta2ar opened 12 years ago

balta2ar commented 12 years ago

Sometimes, when connection to some server hangs, I get absolutely unresponsive tab which I cannot close: Ctrl-D does not work here. The tab will unfreeze with time, but sometimes it takes whole minutes which is too long to wait. It would be nice to have a shortcut to close dead tab.

balta2ar commented 12 years ago

It seems that fix is trivial (http://www.mail-archive.com/rxvt-unicode@lists.schmorp.de/msg00619.html):

--- /usr/lib/urxvt/perl/tabbed  2009-08-11 18:15:22.000000000 +0200
+++ /tmp/tabbed 2009-08-11 18:15:13.000000000 +0200
@@ -316,6 +316,10 @@
          $self->make_current ($self->{tabs}[$idx % @{ $self->{tabs}}]);

          return 1;
+      } elsif ($keysym == 0xff52) {
+         $tab->destroy;
+
+         return 1;
       } elsif ($keysym == 0xff54) {
          $self->new_tab;

Dont forget to change 0xff52 which is Shift-Up to something you like.

mina86 commented 10 years ago

For ssh use enter followed by ~ (tilde) followed by . (dot) to force terminate the connection.

mina86 commented 8 years ago

By the way, implemented in mina86/urxvt-tabbedex@ac220eb3984e151ba14dce08f446bc7bc8ca29a2.