~mmf

Recent activity

[PATCH v2] Add custom sorting for folders 5 days ago

From Michele Finotto to ~sircmpwn/aerc

A new config options for accounts.conf (folders-sort) was added to
allow a user to choose which folders should be shown on top.
My use case was to avoid stepping into heavy, but rarely viewed folders
when cycling through other often accessed ones.

To test add this to your account.conf:

folders-sort  = INBOX,Sent,Archive

INBOX, Sent and Archive should then show at the top of your dirlist,
and all other folders should come next in alphabetical order.
---
 config/config.go      |  1 +
 doc/aerc-config.5.scd |  6 ++++++
[message trimmed]

Re: [PATCH v2] Add custom sorting for folders 5 days ago

From Michele Finotto to ~sircmpwn/aerc

> Your patch breaks the NextPrev method, specifically the dirlist jumps 
> around if you
> use the next / prev methods on the dirlist (bound to J / K by default I 
> think).
> 
> Currently the code assumes that the dirlist is sorted in order for the 
> method to work
> 
I noticed this yesterday.  I'll look into fixing this.

> If you introduce a feature, please add the corresponding documentation.
> In this specific case to doc/aerc-config.5.scd.
> 
I was waiting to make sure everything worked correctly. Will work on this when

Re: [PATCH v2] Add custom sorting for folders 5 days ago

From Michele Finotto to ~sircmpwn/aerc

> > --- a/config/config.go
> > +++ b/config/config.go
> > @@ -61,6 +61,7 @@ type AccountConfig struct {
> > + FoldersSort []string `ini:"folders-sort" delim:"|"`
> 
> Elsewhere in the config, we use the comma as a delimiter. Is there a
> reason not to use that here as well?
>
Ben, it makes sense to use the comma as a delimiter. I'll fix this.

[PATCH] Add custom sorting for folders 11 days ago

From Michele Finotto to ~sircmpwn/aerc

A new config options for accounts.conf (folders-sort) was added to
allow a user to choose which folders should be shown on top.
My use case was to avoid stepping into heavy, but rarely viewed folders
when cycling through other often accessed ones.

To test add this to your account.conf:

folders-sort  = INBOX|Sent|Archive

INBOX, Sent and Archive should then show at the top of your dirlist,
and all other folders should come next in alphabetical order.
---
 config/config.go   |  1 +
 widgets/dirlist.go | 36 ++++++++++++++++++++++++++++++++++++
[message trimmed]

[PATCH v2] Add custom sorting for folders 11 days ago

From Michele Finotto to ~sircmpwn/aerc

A new config options for accounts.conf (folders-sort) was added to
allow a user to choose which folders should be shown on top.
My use case was to avoid stepping into heavy, but rarely viewed folders
when cycling through other often accessed ones.

To test add this to your account.conf:

folders-sort  = INBOX|Sent|Archive

INBOX, Sent and Archive should then show at the top of your dirlist,
and all other folders should come next in alphabetical order.
---
 config/config.go   |  1 +
 widgets/dirlist.go | 36 ++++++++++++++++++++++++++++++++++++
[message trimmed]

[PATCH] [WIP] Add custom sorting for folders 14 days ago

From Michele Finotto to ~sircmpwn/aerc

This is a WIP. Everything seems to be working fine, except the dirlist
doesn't reflect the custom sort.
I'm probably (for sure) missing something, but I don't understand what.

Any help would be appreciated.

To test add this to your account.conf:

folders-sort  = INBOX|Sent|Archive

INBOX, Sent and Archive should then show at the top of your dirlist,
and all other folders should come next in alphabetical order.
---
 config/config.go   |  1 +
[message trimmed]