emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?)
Date: Wed, 21 Jan 2015 22:24:24 +0100	[thread overview]
Message-ID: <87wq4fx1x3.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJcAo8v_Ho5iGfR_SGLRiT7KHLg7vCDKH-8Bmdwpo4UDpeYqVA@mail.gmail.com> (Samuel Wales's message of "Sun, 18 Jan 2015 13:26:05 -0700")

Samuel Wales <samologist@gmail.com> writes:

> On 1/18/15, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>>   ((default . 2)
>>    (occur-tree . 1)
>>    (tags-tree . 1)
>>    (isearch . 3)
>>    (bookmark-jump . 3))
>>
>> where
>>
>>   1. means only the minimal location is shown, i.e., top level
>>      headline + headline, and section (no child) if match is not on
>>      a headline.
>>
>>   2. means context 1 + hierarchy above
>>
>>   3. means context 2 + siblings
>>
>>   4. means canonical view, i.e, show full hierarchy above and siblings,
>>      and, if match is within a section, show also section and all
>>      children.
>

[...]

> please refresh me on the grammar.  does section mean something like
> header + body text + children as a whole?

Section is what you call the body text.

> as a ui note, it might work to use symbols instead of numbers.  if the
> code could support it bloatlessly, maybe even allow mix and match so
> that you can do 3 without 2 if you want?

I suggested numbers because the visibility states defined were
incremental. It is also possible to name "views" with symbols. However
this is not the issue at the moment.

I'd like to know first what "views" are useful. Currently, for a given
context, there are 16 possible combinations. I'm pretty sure at least
half of them can be dropped.

"Minimal" view (state 1 above) and "canonical view" (state 4) are
mandatory. In between, I'm not sure what is used. I suggested two of
them. Apparently, you would also need 3 without 2 (i.e., siblings
without hierachy above).

Regards,

  reply	other threads:[~2015-01-21 21:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05 22:50 three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?) Samuel Wales
2013-08-06  7:41 ` Sebastien Vauban
2013-08-07  3:37   ` Samuel Wales
2015-01-17  1:23 ` Samuel Wales
2015-01-17  8:54   ` Nicolas Goaziou
2015-01-17 19:46     ` Samuel Wales
2015-01-18  9:16       ` Nicolas Goaziou
2015-01-18 20:26         ` Samuel Wales
2015-01-21 21:24           ` Nicolas Goaziou [this message]
2015-01-23 21:52             ` Samuel Wales

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87wq4fx1x3.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).