Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: folded group view
Date: Mon, 13 Jun 2011 17:07:16 +0200	[thread overview]
Message-ID: <877h8pg47v.fsf@yun.yagibdah.de> (raw)

Hi,

is it possible to have a "folded" group view? I´ll give an example to
explain what I mean: Let´s say you have the following groups shown in
your group buffer:


bogus
mail.example.good
mail.misc.abc
mail.misc.def
mail.misc.afiaf
mail.misc.asfafmmf
mail.test.local
mail.test.remote
some.other.example.asdfasf
some.other.example.more


That´s an "unfolded" display. With a "folded" display, it would look
like this:


bogus
mail.*
some.*


Now go to the line that shows "mail.*" and unfold the next level of
it. You´d see:


bogus
--------------
mail.example.good
mail.misc.*
mail.test.*
--------------
some.*


Note that it intentionally shows "mail.example.good" instead of
"mail.example.*". If there was also "mail.example.bad", it would show
"mail.example.*", of course. When you unfold "mail.misc.*", you get:


bogus
mail.example.good
--------------
mail.misc.abc
mail.misc.def
mail.misc.afiaf
mail.misc.asfafmmf
--------------
mail.test.*
--------------
some.*


Optionally, all the groups not unfolded could be exempt from being
displayed, so having unfolded two levels of "mail.*", you´d only see it
as a "current hierarchy":


--------------
mail.misc.abc
mail.misc.def
mail.misc.afiaf
mail.misc.asfafmmf
--------------


Some settings about folding could be specified as group-parameters, so
that hierachies can be exempt from being folded and users can specify
what seperator to use. When searching for group names, the groups hidden
in the fold should still be found: think of org-mode ... The seperating
lines are to indicate that either a hierarchy is unfolded or that only
the current hierachy is displayed. Another idea that comes to mind is
"reverse folding" and "partial folding": Reverse folding would operate
with the group names reversed, like "abc.misc.mail" instead of
"mail.misc.abc".

Partial folding would allow you to use arbitrary parts of group names to
fold them on, either specified as windcard strings, or as levels of
hierarchy: If you´d set your partial folding specifier to ".*example.*",
you´d see:


bogus
mail.misc.abc
mail.misc.def
mail.misc.afiaf
mail.misc.asfafmmf
mail.test.local
mail.test.remote
--------------
*.example.*


If you´d set the partial folding specifier to 3, you´d get:


bogus
--------------
mail.example.good
mail.misc.*
some.other.*
some.other.*


Is there anything like this already built in? If not, please consider it
a feature request :)



             reply	other threads:[~2011-06-13 15:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13 15:07 lee [this message]
2011-06-13 16:18 ` Tassilo Horn
2011-06-13 18:33   ` lee
2011-06-14  6:43     ` Tassilo Horn
2011-06-15 13:32       ` lee
2011-06-15 14:08         ` Tassilo Horn
2011-06-15 19:39           ` lee
2011-06-15 19:49             ` Tassilo Horn
2011-06-15 20:14               ` lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877h8pg47v.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).