Improvement requests :  K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary. 
new feature - Tab Sorting
Posted by: Mark
Date: November 30, 2008 07:25PM

Not sure if this can be accomplished with a macro... but it would be great if in the tab menu (right clicking on a tab) there was the option to sort tabs alphabetically.

Sometimes I've got a lot of tabs open, and although I know I can manually drag tabs around to resort them, would be nice if there was a way to do this with a couple of clicks.

Options: ReplyQuote
Re: new feature - Tab Sorting
Posted by: desga2
Date: December 01, 2008 12:20AM

Your request is interesting.
I think it can be doing with a macro but if you have a lot of tabs opened this process could be extended in time and it could cause problems (freeze/crash) in K-Meleon.

K-Meleon in Spanish

Options: ReplyQuote
Re: new feature - Tab Sorting
Posted by: JamesD
Date: December 01, 2008 02:27AM

@ Desga2

I think it is possible to build a list of all the tab names, but we don't have a sort feature in the macrolanguage. Also I can find no statement or command id that will change the position of a tab on the tab bar. Could I not have complete documentation?

Options: ReplyQuote
Re: new feature - Tab Sorting
Posted by: desga2
Date: December 01, 2008 03:16AM

I think next about it:
PluginCommands
Quote
PluginCommands
$NumLayers = pluginmsgex(layers, "NumberOfLayersInWindow", "", INT);
$LayerData = pluginmsgex(layers, "GetLayersInWindow", "", STRING);
pluginmsg(layers, "ReplaceLayersInWindow", "<LayerData>", STRING);

Exist this plugins commands for layers but i don't know if exist this similar commands for tabs.
In menus you can use @TabList to show a list of tabs.

To sort you can send tab list to AutoIt tool to sort it alphabetically and this can return a little temp text file that we can read it in K-Meleon macro to open/move sorted tabs.

K-Meleon in Spanish

Options: ReplyQuote
Re: new feature - Tab Sorting
Posted by: JamesD
Date: December 01, 2008 07:15AM

@ Desga2

From MacroLanguage2

$TabNumber INT The number of tabs in the current window.

From Command IDs

ID_TAB_LAST Go to previously selected tab.
ID_TAB_NEXT Go to next tab.
ID_TAB_PREV Go to previous tab.

This is all I can find. Maybe some more documentation will be available soon.

What does the @ symbol indicate in @Tablist? I can what it does but I just don't know if it is a command, a statement, or a macro.

Options: ReplyQuote
Re: new feature - Tab Sorting
Posted by: desga2
Date: December 01, 2008 09:49AM

Quote
JamesD
What does the @ symbol indicate in @Tablist? I can what it does but I just don't know if it is a command, a statement, or a macro.

@Tablist is a command that show tab list menu, you only can use it in menus.cfg files.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.