sup-heliotrope / sup

A curses threads-with-tags style email client (mailing list: supmua@googlegroups.com)
http://sup-heliotrope.github.io
GNU General Public License v2.0
895 stars 97 forks source link

Remove unused labels out of tab-complete #407

Open ZJvandeWeg opened 9 years ago

ZJvandeWeg commented 9 years ago

When adding a label to a thread, I sometimes make a typo, or press return before tab-completion. This results in a new label, which, after retagging the original thread, is unused and cannot be removed from inside sup. I manually these by quiting sup, edit the label.txt file and restarting again.

I feel I've not made myself really clear; so an example. I want to tag something as mailinglist, I type mail, forget to press tab for completion, so now its tagged as mail. I edit the tag, but next time I try to add the tag mailinglist my tabcomplete now also has the mail tag in the list, which is unused.

So I propose to remove unused labels, at exit or before(in the label list perhaps?). As I don't see the point of a tag which is not used to be saved? Please correct me if im wrong, and this feature is allready there?

gauteh commented 9 years ago

Yeah, sounds good. I've wanted this as well.

timonv commented 9 years ago

Oh, that's nice! This has been annoying the heck out of me with my OCD!

Just a small thing on your example, most decent (more than you think) mailinglists have List-Unsubscribe headers. You can auto tag on them. Sup also has built in bindings to unsubscribe from it.

ZJvandeWeg commented 9 years ago

Im well aware of those features, and use them quite a lot. In this case it was just for an example instead of real use case. Thanks anyway!