MozillaZine

Lock Column Sorting

User Help for Mozilla Thunderbird
asbo
Guest
 

Post Posted February 2nd, 2007, 7:49 pm

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

Rod Whiteley

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

Post Posted February 3rd, 2007, 2:19 am

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 Posted February 4th, 2007, 11:27 am

@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!

Rod Whiteley

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

Post Posted February 4th, 2007, 3:39 pm

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

asbo
Guest
 

Post Posted February 5th, 2007, 3:37 pm

Awesome! Thanks again! :)

Guest
Guest
 

Post Posted February 5th, 2007, 7:37 pm

[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

Post Posted April 2nd, 2012, 11:55 pm

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

James
Moderator

User avatar
 
Posts: 27618
Joined: June 18th, 2003, 3:07 pm
Location: Made in Canada

Post Posted April 2nd, 2012, 11:57 pm

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.

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 3 guests