Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tabbedex
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
## Use the following in your ~/.Xdefaults to enable:
## URXvt.tabbed.reopen-on-close: yes
##
## 17. Destroy a tab with C-Down
##
## Keysym reference http://www.tcl.tk/man/tcl8.4/TkCmd/keysyms.htm

use Encode qw(decode);

Expand Down Expand Up @@ -560,6 +563,10 @@ sub tab_key_press {
$self->move_tab($tab, $keysym - 0xff52);
return 1;
}
elsif ($keysym == 0xff54) {
$tab->destroy;
return 1;
}
}

();
Expand Down Expand Up @@ -665,7 +672,7 @@ package urxvt::ext::tabbedex::tab;
# simply proxies all interesting calls back to the tabbedex class.

{
for my $hook qw(start destroy user_command key_press property_notify add_lines) {
for my $hook ( qw(start destroy user_command key_press property_notify add_lines) ) {
eval qq{
sub on_$hook {
my \$parent = \$_[0]{term}{parent}
Expand Down