Folders4Gmail

By Arend Last update Mar 4, 2010 — Installed 163,623 times.

Modifications

in
Subscribe to Modifications 7 posts, 5 voices



Santiago Perez User

Hi everyone, I have made some modifications to this script that I believe may be of interest to many users. I haven't tested my changes to be fully cross-browser, but I could do it if there is enough interest and perhaps Arend could include some of these modifications if many users seem to be interested in them.

The modifications are the following:
* Regular Click : opens the label
* Ctrl + Click : performs a search for that label and all its descendants
* Shift + Click : searches for unread messages in that label
* Ctrl + Shift + Click : searches for unread messages in that label and all its descendants
* Alt + Click : applies that label to selected conversations
* Alt + Shift + Click : removes that label from selected conversations
* Regular Click on a parent label that doesn't exist behaves like Ctrl+Click

Let me know what do you think about these modifications.

@Arend: if you're interested in including any of these modifications let me know. For the apply/remove label functionality I had to add a piece of code from the GmailMacros script that simulates clicks to the More Actions Menu.

 
Arend Script's Author

Hi, I like your idea to Ctrl+Click to search in a label and all its sublabels. Maybe you could let me have a look at your code? (my email is on the Folders4Gmail page)

If you upload your version to userscripts.org, please post a link on this thread so that people can find it.

 
jprealini Scriptwright

Hi... is there a way to just see the emails that are not labeled??? This would be like, for example, seeing only the Inbox in Outlook, and labeled mails would be emails that are located in other folders other than Inbox... Do I explain myself??
Thanks

 
Arend Script's Author

There are several Gmail unlabeled scripts do what you ask for. But I don't know which one of them works at the moment.
http://userscripts.org/scripts/search?q=gmail+u...
http://www.google.com/search?&q=gmail+unlabeled

There's a problem though: Gmail labels don't work well with search.
It seems that internally labels are applied to individual messages only. For example, if you receive an email and label it "Work" and then you reply to the message and receive replies back, only the first email in the conversation is labeled "Work".
That means if you search for label:Work and some keyword that is not in the first message, the conversation will not be found. Also if you search for -label:Work the conversation will be found, because the replies are not labeled "Work".

The unlabeled scripts are probably still usefull, but with the way Gmail handles labels & search be prepared for some glitches.

 
IcyMidnight User

I stumbled upon http://userscripts.org/scripts/show/36781 which changes this one line to your great script:
window.setInterval(uiHandler.refreshSublabels, 2000);
The change from 10 times a second to every 2 seconds makes a huge difference to how gmail performs.

Would you consider changing your script?
Out of interest, why did you pick such a frequent update interval?

 
Arend Script's Author

A high update rate makes the labels redraw faster. And I've never run into any performance issues with the higher update rate myself.

Also, see the original discussion:
http://userscripts.org/topics/12449?page=6#post...

 
cablop Scriptwright

Hello Arend. I see you saw my old comment about the processor issue. Ok, let's discuss that in this topic:
http://userscripts.org/topics/24826
I guess i can suggest some things to improve the script a little.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel