Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: siria
Date: July 06, 2019 06:00AM

A macro to close all tabs on the LEFT side of the current tab, or close all tabs on the RIGHT side.

Works in all K-Versions since KM1.5.4
Note: if you have session restore-on-demand enabled (=default), read below.



MENU:
  • Right-click on a tab,
  • or Right-click on the Close button,
  • or menu FILE => Close all LEFT/RIGHT Tabs (if toolbar "Menu" is enabled)
That File menu is quite cluttered, if you want the menu ONLY on the tab bar, open the kmm-file and look for "userconfig"

As easy as such a simple action should be, it was a major struggle again to find workarounds around several grave macro bugs, existing since at least KM1.6.
Macrolanguage is in dire need of some bugfixes and updates since 2011 :-(
And more probs appear with new features, like this one:
What happens if a user has session restore "on demand" enabled?
Many macros must loop from tab to tab to do anything, usually just checking their URL.
But merely touching those un-loaded tabs by macro already triggers them to load the web now, and there's no way to avoid it.
(feature since KM74, default since KM75, pref "browser.sessionstore.restore_on_demand = true")

Can't test myself what that means exactly for this "closing" macro, perhaps anyone else can do it?

INSTALLATION: copy the attached kmm-file into a macros folder (global one, or create it manually in profile)
Uninstall: delete the kmm file again

Attachments: CloseLeftRightTabs_menu.png (11.1 KB)   CloseLeftRightTabs.kmm (7 KB)  
Options: ReplyQuote
Re: Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: Anonym
Date: July 06, 2019 08:06AM

@siria come in handy,thank you!

Options: ReplyQuote
Re: Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: siria
Date: July 06, 2019 12:55PM

Tiny update to translate the menu at least partly, please download again smiling smiley

Options: ReplyQuote
Re: Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: Anonym
Date: July 06, 2019 02:41PM

@siria
I,quite a bit =>
thank you!

Options: ReplyQuote
Re: Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: Borut
Date: July 08, 2019 11:08PM

Another macro that makes my life easier.

Thanks for this one too, siria!

Options: ReplyQuote
Re: Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: rodocop
Date: July 10, 2019 12:08AM

What are differences from the old EndtabsLR ?

Options: ReplyQuote
Re: Macro "CloseLeftRightTabs" (close all LEFT or RIGHT tabs)
Posted by: siria
Date: July 10, 2019 01:55AM

Quote
rodocop
What are differences from the old EndtabsLR ?

Interesting question...
Except the basic idea it's build very differently, almost all code new.
And from user view, I find great differences too. You not?

Options: ReplyQuote


K-Meleon forum is powered by Phorum.