Commit Graph
23 Commits
Author SHA1 Message Date
gryf 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
gryf dbb12e9dda Added ability to jump to last tab. 2022-02-23 20:06:41 +01:00
gryf 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
gryf 7d10c9f4f5 Added autohide feature. 2022-02-22 16:50:26 +01:00
gryf 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
gryf 2f976ecb96 Added missing return statements for commands. 2022-02-21 09:03:13 +01:00
gryf b2ac894a98 Removed not needed disable-shift-down x resource. 2022-02-21 08:55:04 +01:00
gryf 8a5596db54 Fixed disable-default-keys behaviour 2022-02-21 08:54:39 +01:00
gryf 08ed4f783e Readme updae. 2022-02-20 20:13:13 +01:00
gryf bee8e4a8cb Readme update. 2022-02-20 19:15:49 +01:00
gryf 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
gryf d9aec64298 Added warning message on passing unknown command. 2022-02-20 18:26:24 +01:00
gryf 9a2c813adc Fixed code alignment for tab_line_update function. 2022-02-20 18:25:32 +01:00
gryf 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
gryf dc916fca08 Changed marker is_inputting_name to is_being_renamed. 2022-02-20 18:14:33 +01:00
gryf 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
gryf 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
gryf 317af4fe06 Rename new_tab function to _new_tab 2022-02-14 17:02:29 +01:00
gryf 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
gryf c6bda05ee6 Added on_add_lines event, just like in original tabbed. 2022-01-18 17:43:26 +01:00
gryf 8483c6a2ae Updated readme with more options for temporary 'installing'/testing. 2021-04-02 18:39:03 +02:00
gryf 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
gryf 071587d0dc Remove trailing spaces 2021-04-02 18:20:01 +02:00