tbkeys icon indicating copy to clipboard operation
tbkeys copied to clipboard

"g": "func:MsgGroupBySort" doesn't work on TB128.3.0esr

Open cakepuller opened this issue 1 year ago • 2 comments

  • I just updated from TB102 to TB128.3.0esr. with tbkeys-lite 2.3.0
  • I have the following settings:
}
"f11": "func:MsgBodyAllParts",
"f12": "func:MsgBodyAllowHTML",
"g": "func:MsgGroupBySort"
}
  • the f11 and f12 works as expected.
  • the "g" does nothing; Expectation: to execute Group By Sort.
  • the "g" worked in TB102.

Does anyone know a fix for this? Thanks.

cakepuller avatar Oct 11 '24 04:10 cakepuller

You cannot run the Grouped By Sort command with tbkeys-lite in Thunderbird 115 or higher.

Thunderbird 102:

window.MsgSortThreaded(); window.MsgSortUnthreaded(); window.MsgGroupBySort();

Thunderbird 115:

window.gTabmail.currentAbout3Pane.sortController.sortThreaded(); window.gTabmail.currentAbout3Pane.sortController.sortUnthreaded(); window.gTabmail.currentAbout3Pane.sortController.groupBySort();

window.goDoCommand('cmd_sort', {target:{value:'threaded'}}); window.goDoCommand('cmd_sort', {target:{value:'unthreaded'}}); window.goDoCommand('cmd_sort', {target:{value:'group'}});

You cannot run arbitrary javascript with tbkeys-lite. There is a tbkeys.xpi link on the GitHub releases page.

You can use the cmd shorthand and func shorthand with tbkeys and tbkeys-lite.

Use the cmd shorthand for calling a command using the goDoCommand method.

For example, "cmd:cmd_nextMsg" is the same as "window.goDoCommand('cmd_nextMsg');".

Use the func shorthand for calling a function on the window object without an argument.

For example, "func:MsgNewMessage" is the same as "window.MsgNewMessage();".

morat523035 avatar Oct 11 '24 15:10 morat523035

@morat523035 Gee thanks. I installed tbkeys.xpi and used "window.gTabmail.currentAbout3Pane.sortController.groupBySort();" for my "g" successfully.

cakepuller avatar Oct 12 '24 08:10 cakepuller