You are not logged in.
UPDATE: package on AUR.
I wrote a patch for urxvt so I could name a tab:
Keys:
Shift-Up names a tab (you can type characters, or delete them with backspace). Hit enter to make the name stick, or escape to cancel.
Tabs are numbered like normal unless you name them. An empty name makes a tab revert to its number.
Last edited by StephenB (2010-07-17 22:19:51)
Offline
You're a genius. Even if I won't use it, this is just amasing. Talked of your patch to the dev?
I'm french, don't mind my mistakes in english.
Offline
Yeah - submit it upstream.
Offline
Point taken, I'll see if I can get this upstream.
Offline
If upstream doesn't take it, it would be simpler to distribute an entirely new module (maybe name it tabbed-names or something like that). That way users can just drop it into /usr/lib/urxvt/perl instead of having to patch the source.
Offline
Knock, knock - is this thing on?
Any news? I can't seem to find it in the AUR, so this patch is still the only way to get it or is it being merged upstream?
Offline
No. Its not being merged upstream (yet). I spoke to the urxvt devs and they said I should post it to the mailing list, which I haven't done yet.
I'll put my package on the AUR later today; will post back when its up.
Offline
Here it is: http://aur.archlinux.org/packages.php?ID=38823
I'm going to email the package maintainer to see if he wouldn't mind adding the patch to the package in community.
I'll maybe hack the code a bit more and then see about posting to the mailing list up stream.
I'm kind of a newbie at this.
Offline
Dude, that's the best I heard within the last time! I am using rxvt extensively and asked my selfe why the heck it was not possible to rename the tab. You did a great job :-)
Offline
Thanks, this is very nice
I hope it gets included upstream, because that's how urxvt should roxx !
ktr
Offline
Sergej has updated the package in community, I've added to the wiki. Still to email upstream mailing list...
Offline
Well... sorry to say I will be filing a bug report. There is no way an Arch package should be patched with additional features, especially with a patch that has not even been seen by upstream. That goes against everything in our patching policy.
Offline
I'm a bit shocked - AUR packages are there for a reason.
We have urxvt both in extra and in community, the later package offers some additional features. Is it up to the maintainer to add anything (s)he wants?
Offline
You guys are right.
I've apologised to Sergej and asked him to remove it.
I found another patch with more tabbed features here: http://mina86.com/2009/05/16/tabbed-urxvt-extension/
I'll merge that patch with mine and maintain the package on AUR until it all gets upstream. Hope to get that done tonight.
Offline
Hi StephenB, you did a great work!
It would be *awesome* if you could also implement mina86's patch and especially these features:
- Hide the [NEW] button
- Hide the tab bar when only one tab is opened
With these features I would not miss sceen/tmux at all!
Btw, if you plan to add these features as well maybe you should consider to change the name of the AUR package to something simpler like rxvt-unicode-patched.
Thank you for your great work, keep on with that!
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Hi StephenB, you did a great work!
It would be *awesome* if you could also implement mina86's patch and especially these features:
- Hide the [NEW] button
- Hide the tab bar when only one tab is openedWith these features I would not miss sceen/tmux at all!
Btw, if you plan to add these features as well maybe you should consider to change the name of the AUR package to something simpler like rxvt-unicode-patched.
Thank you for your great work, keep on with that!
You can download mina86:s version and put it here: /usr/lib/urxvt/perl/tabbed.
And make the following changes:
Line 311 ($self->x_resource ('new-button') or 'no') !~ /^(?:false|0|no)/i;
Line 315 ($self->x_resource ('autohide') or 'yes') !~ /^(?:false|0|no)/i;
Offline
mina86's patch now implemented.
Like kaptenen code above, autohide is on by default and the [NEW] button hidden.
add
URxvt.autohide: no
URxvt.new-button: yes
in ~/.Xdefaults for the reverse effect
If anyone one wants to play with the tabbed source, I've put it on github: http://github.com/stepb/urxvt-perl-ext-tabbed
Last edited by StephenB (2010-07-13 22:38:58)
Offline
I have a newbie question, does the AUR download include replacing the old Xdefaults or old terminal? Can I install without messing up my previous configs and everything?
I must say you have wrote something very useful.
Offline
In a sense it does replace the old terminal. You should always check the PKGBUILD to know what's going on.
Offline
This made me switch to urxvt from xterm.
EDIT: I'm confused. Before I installed this patch from the AUR, I had tabs in urxvt. Because this conflicted with rxvt-unicode, pacman removed it and installed rxvt-unicode-256color-named-tabs. Now I have urxvt and urxvt-tabbed in /usr/bin. Urxvt starts as I had it before, but there are no tabs, despite being set in .Xdefaults. Urxvt-tabbed is some wierd window that has some GTK tabs at the top, one says New and the other says ArchWiki Example. The actual terminal part of the window never actually loads and I am unable to do anything but close it.
I hope that makes sense. I'm a urxvt noob
Last edited by cesura (2010-07-13 04:48:07)
Offline
This made me switch to urxvt from xterm.
EDIT: I'm confused. Before I installed this patch from the AUR, I had tabs in urxvt. Because this conflicted with rxvt-unicode, pacman removed it and installed rxvt-unicode-256color-named-tabs. Now I have urxvt and urxvt-tabbed in /usr/bin. Urxvt starts as I had it before, but there are no tabs, despite being set in .Xdefaults. Urxvt-tabbed is some wierd window that has some GTK tabs at the top, one says New and the other says ArchWiki Example. The actual terminal part of the window never actually loads and I am unable to do anything but close it.
I hope that makes sense. I'm a urxvt noob
urxvt-tabbed is a (bad) gtk tabs implementation.
You should use normal urxvt. It doesn't display the tab bar if there's only one tab, so you should press shift+down to open a second tab.
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
itsbrad212 wrote:This made me switch to urxvt from xterm.
EDIT: I'm confused. Before I installed this patch from the AUR, I had tabs in urxvt. Because this conflicted with rxvt-unicode, pacman removed it and installed rxvt-unicode-256color-named-tabs. Now I have urxvt and urxvt-tabbed in /usr/bin. Urxvt starts as I had it before, but there are no tabs, despite being set in .Xdefaults. Urxvt-tabbed is some wierd window that has some GTK tabs at the top, one says New and the other says ArchWiki Example. The actual terminal part of the window never actually loads and I am unable to do anything but close it.
I hope that makes sense. I'm a urxvt noob
urxvt-tabbed is a (bad) gtk tabs implementation.
You should use normal urxvt. It doesn't display the tab bar if there's only one tab, so you should press shift+down to open a second tab.
Thanks I had actually just figured that out by messing around in urxvt, but thank you for the help anyway.
Haha I'm stupid
Last edited by cesura (2010-07-13 16:36:26)
Offline
The only annoying thing with the autohide tabbar feature is that urxvt changes its size when a new tab is opened (shift+down) or when all tabs except one are closed (ctrl+d). urxvt keeps reducing its height every time.
Anyone knows why and how to fix this?
@StephenB: since you're implementing many different patches into your rxvt-unicode-patched AUR package, I thought you might be interested in adding mouseless url yanking as well: [project site] | | [AUR package]
I find it very handy and is a must have for urxvt users!
Last edited by rent0n (2010-07-13 17:24:08)
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
@rent0n: I don't get resizing of urxvt on autohide in xmonad. If I get the time to setup OpenBox in another X session I can see if I get in then and try and fix it.
to those not in the know: despite all the talk about patches in this thread, I haven't been patching urxvt program code. urxvt has a neat perl extension API so all this extra functionality can be implemented quite easily using that. urxvt comes with some example perl plugins, so for tabs I started patching the example tabbed plugin. With mina86's patch and my patch the example tabbed plugin has changed a lot (the resulting patch file is longer than the full code!). What we have now is a tabbed plugin in its own right, which was based on the example but has changed substantially since, so it seemed right to me to create a GtiHub repo for it.
I just realised the correct Arch way to go about this: because I'm adding plugins, it makes sense to have a package build just for the plugins and have the pkg depend on rxvt-unicode (from extra or community, both provide rxvt-unicode). That's much more flexible and simpler and maintainable; I should have thought of it sooner. I guess I'm learning as I go. I will create a new package build with just the tabbed and mouseless url plugins (the tabbed plugin will have to be renamed so it doesn't overwrite the one that comes with urxvt, perhaps tabbed-ex is a good name).
Offline
@rent0n: I don't get resizing of urxvt on autohide in xmonad. If I get the time to setup OpenBox in another X session I can see if I get in then and try and fix it.
That would be great, thank you!
I just realised the correct Arch way to go about this: because I'm adding plugins, it makes sense to have a package build just for the plugins and have the pkg depend on rxvt-unicode (from extra or community, both provide rxvt-unicode). That's much more flexible and simpler and maintainable; I should have thought of it sooner. I guess I'm learning as I go. I will create a new package build with just the tabbed and mouseless url plugins (the tabbed plugin will have to be renamed so it doesn't overwrite the one that comes with urxvt, perhaps tabbed-ex is a good name).
This is an awesome idea, can't wait for the release! Keep up posted and thank you for your effort, it is greatly appreciated.
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline