* heading structure ramblie
@ 2024-03-19 7:02 Samuel Wales
2024-03-20 13:04 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2024-03-19 7:02 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2047 bytes --]
this is open ended. i'd probably be happy with simple
solution but want to explore the space.
i sometimes need to know when a folded heading has children,
and also possibly go to them. maybe it swallowed a heading
without my intention. creating new headings with c-c *
seems to create children, when i want a sibling. (so maybe i need a
command like c-c * that creates a sibling. but i also want to show and
navigate heading structure.)
i'd also like to know without linting the whole file if
anything is awry locally, such as twice or more indented
(*******) or half-indented (****), when org-odd-levels-only
t.
it is too cumbersome to go to the parent and expand all with
TAB and navigate headings.
this could be solved by showing a view similar to canonical
visibility, but only headings perhaps as an org-cycle state.
i THINK this is supposed to be possible with c-u:
2. CONTENTS: Show all headlines of all levels, but no body text.
i probably need to upgrade, but in org 9.6.7, it folds and
mangles the whole buffer.
or perhaps i can run org-fold-show-set-visibility as a
special command. this view would show the heading structure
without anything else. maybe it's there, but i couldn't
find such a view in org-fold-show-context-detail.
if this view is indeed present in c-u m-x org-cycle, then perhaps for
consistency it is or should be also usable in org-fold-show-set-visibility.
org-cycle uses org-cycle-content, but that folds the whole
buffer in my version of org.
perhaps i would bind a command to run (org-fold-show-context-detail
'headings-canonical) or something like that.
but maybe we can get more fancy, by running a command that
will overlay org-ellipsis with the number of direct children.
or perhaps simpler, is there a command that will go to the
next heading even if it is invisible, and unfold? there
seems to be no org-next-heading, but there is one for
visible headings.
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
[-- Attachment #2: Type: text/html, Size: 2317 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: heading structure ramblie
2024-03-19 7:02 heading structure ramblie Samuel Wales
@ 2024-03-20 13:04 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-03-20 13:04 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> i sometimes need to know when a folded heading has children,
> and also possibly go to them. maybe it swallowed a heading
> without my intention. creating new headings with c-c *
> seems to create children, when i want a sibling. (so maybe i need a
> command like c-c * that creates a sibling. but i also want to show and
> navigate heading structure.)
Children are created when you use C-c * on a list.
When used on non-list, with C-u C-u prefix argument, siblings will be
created.
> i'd also like to know without linting the whole file if
> anything is awry locally, such as twice or more indented
> (*******) or half-indented (****), when org-odd-levels-only
> t.
>
> ...
> this could be solved by showing a view similar to canonical
> visibility, but only headings perhaps as an org-cycle state.
>
> i THINK this is supposed to be possible with c-u:
What about `org-shifttab'?
> or perhaps simpler, is there a command that will go to the
> next heading even if it is invisible, and unfold? there
> seems to be no org-next-heading, but there is one for
> visible headings.
Try C-c C-r (org-reveal). With one or two prefix arguments depending on
your needs.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-20 13:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-19 7:02 heading structure ramblie Samuel Wales
2024-03-20 13:04 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.