1
0
mirror of https://github.com/gryf/tabbedalt.git synced 2025-12-17 19:40:31 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
e92fd3736f Added option for changing refreshing behaviour.
It may happen, that on specific systems with certain font screen
flickering might occur. By setting new resource
'URxvt.tabbedalt.stop-flickering' to true, it'll prevent this.
2022-09-18 14:47:25 +02:00
dbb12e9dda Added ability to jump to last tab. 2022-02-23 20:06:41 +01:00
b0e86d5370 Hide tab even if there is "new" button.
It doesn't make sense to distinguish between state when there is only
one tab with "new" button visible or not. Let's keep it simple.
2022-02-23 18:27:03 +01:00
7d10c9f4f5 Added autohide feature. 2022-02-22 16:50:26 +01:00
305dc95b3e Re-add callback on_resize_all_windows.
Without it, maximized urxvt window may contain inner border.
2022-02-22 16:47:52 +01:00
2f976ecb96 Added missing return statements for commands. 2022-02-21 09:03:13 +01:00
b2ac894a98 Removed not needed disable-shift-down x resource. 2022-02-21 08:55:04 +01:00
8a5596db54 Fixed disable-default-keys behaviour 2022-02-21 08:54:39 +01:00
08ed4f783e Readme updae. 2022-02-20 20:13:13 +01:00
bee8e4a8cb Readme update. 2022-02-20 19:15:49 +01:00
f8720408b2 Fixed rename behaviour.
Renaming tab was broken by the fact, that renaming process provides
custom key_press callback just for it. After renaming was finished, all
the keypress shortcuts was gone, since it was done for main package.

The solution was to move the rename key press callback into tab scope,
so it wont affect main one.
2022-02-20 18:31:51 +01:00
d9aec64298 Added warning message on passing unknown command. 2022-02-20 18:26:24 +01:00
9a2c813adc Fixed code alignment for tab_line_update function. 2022-02-20 18:25:32 +01:00
6502bfa872 Removed check for row on button_release method.
Since check for the row is already done on conditional before, it has
little sense for keeping it again in buttons iteration.
2022-02-20 18:18:13 +01:00
dc916fca08 Changed marker is_inputting_name to is_being_renamed. 2022-02-20 18:14:33 +01:00
a904d4818b Adapted actions propagation from tabbedex.
Adopted action propagation from tabbedex
(https://github.com/mina86/urxvt-tabbedex). Actions can be used from
outside of tabbedalt extension, so there is no need for hardcoding
keyboard shortcuts, or inventing a wheel with keysym reimplementation.

Tab commands support has been dropped. Since actions are now the only
way for creating tab classes, there would be a simple way for defining
shortcuts to mimic old behavior. So, given there was class called root
defined:

    URxvt.tabbedalt.tabcmds.2:  r|root|su -

now it can be defined using keysym:

    URxvt.keysym.Control-Shift-R: tabbedalt:new_tab:root:su -

The gain is that there is no need for creating index for every tab
command, and, what is more important, user can assign whatever prefix he
want, not just hard coded control+shift.
2022-02-19 19:23:25 +01:00
87205cc3eb Removed session management.
I doubt, that it is useful feature, I've never got bug report about it,
and I'm not using it anyway.
2022-02-14 17:07:16 +01:00
317af4fe06 Rename new_tab function to _new_tab 2022-02-14 17:02:29 +01:00
53f3b89e7c Fix renaming tabs with accented letters
Also remove some redundant code for setting defaults for resources.
2022-01-18 20:56:32 +01:00
c6bda05ee6 Added on_add_lines event, just like in original tabbed. 2022-01-18 17:43:26 +01:00
8483c6a2ae Updated readme with more options for temporary 'installing'/testing. 2021-04-02 18:39:03 +02:00
d39d1bf09b Respect user provided position passed with -geometry param.
Original code had a function for copying height related parameters from
WM_NORMAL_HINTS which was modified than by adding the height of tabs.
Rest of the hints was simply removed. Using geometry command line
parameter with urxvt and tabbedalt plugin results that provided window
position was ignored.

This patch is fixing that behaviour.
2021-04-02 18:20:31 +02:00
071587d0dc Remove trailing spaces 2021-04-02 18:20:01 +02:00
6fc444851f Fixed issue with [NEW] button 2020-07-18 10:14:53 +02:00
138808fb19 Renamed tabbed to tabbedalt.
To not confuse people with original extension, I renamed tabbed to
tabbedalt, which can be read as "tabbed alternative".
2020-07-18 09:56:00 +02:00
fb104188a6 Clean up the code a bit 2019-09-13 20:01:52 +02:00
aef57aacbe Readme fix 2019-09-13 19:24:49 +02:00
317f614e8f Added default shortcut for the new tab creation.
In my derivation I arbitrary choose ctrl+shift+n as a shortcut for
creating new shell tab. There was a bug, when user created some other
class (for example for midnight commander and root) and with such
configuration it will unable to create default shell tabs.

This change introduces standard shortcut from original tabbed extension
(shift+down) as a default one for creating shell tabs. All the shell
classes can be configured and used as before.

Shift+down shortcut can be disabled, and now, "new style" - ctrl+shift+n
shortcut would be used for that purpose, unless user provide its own
class definition for that shortcut, than user responsibility is to make
appropriate shortcut for default shell.
2019-09-13 19:14:49 +02:00
5588a30dd4 Added vim modeline.
Added modeline with proper vim settings for urxvt perl lib. For some
reason, author of the urxvt choose 3 space indent for extension perl
files. I'd like to keep those for an ease of merging upstream changes.
2019-09-13 18:19:54 +02:00
86e013c899 Changing default colors and README update. 2019-06-05 11:47:53 +02:00
33304b702f Corrected pattern for process search.
This commit will close issue #7
2019-06-05 10:50:47 +02:00
9fc439b5e1 Run session only if no exec is provided via commandline.
There was is bug regarding sessions implementation, where there is no
way to run particular program using -e switch for urxvt in command line.

So, having urxvt.session set to something in .Xdefaults, there was no
way to run some program, i.e.

$ urxvt -e htop

This patch fixing this issue.
2019-06-05 09:36:32 +02:00
41893fbe71 Fix range of detected shortcut for quick switch.
To quickly switch to the desired tab, there is a shortcut ctrl-0 to
ctrl-9, where ctrl-0 will switch to tab 10, ctrl-1 to tab 1 and so on.
There is a range in the code, which detect which tab to pick up to jump.
Range was to wide, this commit is fixing that.
2018-12-12 21:32:30 +01:00
1bf9362a2f Session: removed one unnecessary grep from check
Currently, there was a command used:
ps x|grep " urxvt "|grep -v grep|wc -l
which was checking if there is only one instance of urxvt during start,
so that it will be possible to initialize session. The `grep -v grep`
is in excess. This patch is fixing that.
2018-12-12 21:25:40 +01:00
fd0c0bdaac Removed hardcoded mutt conf 2018-12-12 21:24:52 +01:00
832c740da1 Removed unused offset 2018-12-12 21:23:49 +01:00
82fcfd6c82 Readme update 2016-08-15 19:52:34 +02:00
34755afb2d Quick fix for $hook 2013-11-26 19:40:26 +01:00
0b7eccf053 Corrected image locations in readme 2013-11-12 09:50:16 +01:00
fe408c9cd6 restored tab_property_notify hook 2013-11-12 09:47:40 +01:00
28d687cb5a Changed images locations 2013-03-19 21:37:34 +01:00
785dc70f70 Added missed paths 2013-03-19 21:35:37 +01:00
7e85d927ce Added readme in rst format. 2013-03-19 21:33:49 +01:00
e3bd6e220a Merge with tabbed distributed with urxvt 9.16 2013-03-19 20:38:02 +01:00
454dc4aa9d Added pseudosession 2011-08-15 10:15:01 +02:00
e66a87f2ce Workaround for memory consumption in copying X properties. 2010-08-28 10:51:44 +02:00
d2e63553ef Added configuration via .Xdefaults 2010-08-12 22:19:26 +02:00
b72b5e194b Added tab rename ability 2010-07-25 13:59:20 +02:00
2f699f98a1 initial import 2010-05-04 21:34:02 +02:00