Lock Column Sorting

User Help for Mozilla Thunderbird
Locked
asbo
Guest

Lock Column Sorting

Post by asbo »

Hey there,

I've set up Thunderbird to sort all my e-mails by date and threads, and it works great; except, every now and again I'll accidentally miss the top message in the list and end up resetting my sort preferences.

Is there any sort of "sorting lock" feature available? If not, could one be implemented? :)


asbo
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post by Rod Whiteley »

You can use the userChrome.js extension, with a script like:

Code: Select all

addEventListener(
  "click",
  function (event) {
    if (!event.shiftKey) with (event.target)
      if (localName == "treecol"
          && parentNode.parentNode.id == "threadTree")
        event.stopPropagation()
    },
  true
  )
Last edited by Rod Whiteley on February 4th, 2007, 3:38 pm, edited 1 time in total.
Rod
Guest
Guest

Post by Guest »

@Rod
That works great :) Thanks so much

I was playing with the code a bit, trying to implement a circumvention of stopPropogation() if I was doing a SHIFT-click, but being entirely unfamiliar with Javascript and the innards of Thunderbird, I have no clue how I might do that. Inserting the line "
if (event.keyCode) alert(event.keyCode)" within the IF statement yielded no results. Could someone point me in the right direction?


Thanks!
User avatar
Rod Whiteley
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post by Rod Whiteley »

Yes, that's a much better design. I added if (!event.shiftKey) to the code above.
Rod
asbo
Guest

Post by asbo »

Awesome! Thanks again! :)
Guest
Guest

Post by Guest »

[I tried to post this sooner, but kept getting Bad Responses from mozillazine :/]

Ahh, I may have spoken too soon; the shift-click doesn't work for me :( Suggestions?
ElijahHu
Posts: 1
Joined: April 2nd, 2012, 3:53 am

Re: Lock Column Sorting

Post by ElijahHu »

@Rod
Hello Rod! Would you update MailTweak to the version that supports Thunderbird 11.
User avatar
James
Moderator
Posts: 27999
Joined: June 18th, 2003, 3:07 pm
Location: Made in Canada

Re: Lock Column Sorting

Post by James »

ElijahHu wrote:@Rod
Hello Rod! Would you update MailTweak to the version that supports Thunderbird 11.

See this thread. viewtopic.php?f=48&t=599803

Locking due to old age.
Locked