From: glphvgacs <drw(a)gmail.com>
To: mutt-kz(a)lists.fedoraproject.org
Cc:
Bcc:
Subject: vsubfolders [was: Virtual folders in macros]
Reply-To:
In-Reply-To: <20131204120200.GN5572(a)x2.net.home>
On Wed, Dec 04, 2013 at 01:02:00PM +0100, Karel Zak wrote:
On Mon, Dec 02, 2013 at 06:03:36PM +0100, Suvayu Ali wrote:
> I also never figured out how to enter a text string to <change-vfolder>.
> If that is possible, it would solve the above issue too.
Fixed, git pull. Now you can specify the folder by name or URI.
Karel
just built it and noticed something.
btw: this might already be possible to do, i mind you, but i just don't
know how. so pointers in that regard are welcome.
so i have these vfolders defined:
"5665 [ --> ]" "notmuch://?query=folder:5665 AND tag:unread
NOT from:5665@gmail.com" \
" [ <-- ]" "notmuch://?query=from:5665@gmail.com" \
" [ <--> ]" "notmuch://?query=folder:5665 AND
from:5665@gmail.com AND to:5665@gmail.com" \
" [ .. ]" "notmuch://?query=folder:5665" \
"drw [ --> ]" "notmuch://?query=folder:drw AND tag:unread NOT
from:drw@gmail.com&limit=32" \
" [ <-- ]" "notmuch://?query=from:drw@gmail.com" \
" [ <--> ]" "notmuch://?query=folder:drw AND
from:drw@gmail.com AND to:drw@gmail.com" \
" [ .. ]" "notmuch://?query=folder:drw" \
and a macro to emulate gmail's key binding:
macro index gs "<change-vfolder> [ <-- ]<enter>"
"Go to Sent"
now if i'm at "drw [ --> ]" and hit 'gs' this will take
me to:
" [ <-- ]" "notmuch://?query=from:5665@gmail.com" \
whereas one would expect to be landed at:
" [ <-- ]" "notmuch://?query=from:drw@gmail.com" \
i suppose the way it does it now is "query from the top" as opposed to
"change your frame of reference with respect to where you are then govern
yourself respectively".
btw, even if you change to query-from-here-on i don't think it would
completely solve the problem since i, and i'm sure there users out there
doing it, have another macro to land me in *INBOX*:
macro index gi "<change-vfolder>drw [ --> ]<enter>"
"Go to INBOX"
right now it's not even possible to change-vfolder *dynamically* since
'drw' is hard-coded. and if it does query-from-here-on there are case where
it would get it wrong. say user does a 'gi' at:
" [ <-- ]" "notmuch://?query=from:5665@gmail.com" \
that will change to drw's INBOX and not 5665's.
so a suggestion would be to add the notion of vsubfolders that are somehow associated to a
master vfolder.
i can elaborate if that interests you.