emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [FR] STARTUP: hidechecked
@ 2023-11-08 14:25 unhammer
  2023-11-08 14:27 ` Russell Adams
  0 siblings, 1 reply; 4+ messages in thread
From: unhammer @ 2023-11-08 14:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

It'd be nice if there was an option to automatically fold list items
that are checked on startup, e.g.

    - [ ] open
    I want to see the details here
    - [X] closed
    I don't want to see these details

would be shown on opening the file as

#+STARTUP: hidechecked

    - [ ] open
    I want to see the details here
    - [X] closed...


(I didn't manage to find any previous discussion of this,
https://list.orgmode.org/ always gives ~800 unrelated hits when I try
searching, sorry if it's already been discussed.)


best regards,
Kevin



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FR] STARTUP: hidechecked
  2023-11-08 14:25 [FR] STARTUP: hidechecked unhammer
@ 2023-11-08 14:27 ` Russell Adams
  2023-11-08 14:36   ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Adams @ 2023-11-08 14:27 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Nov 08, 2023 at 03:25:33PM +0100, unhammer@fsfe.org wrote:
> Hi,
>
> It'd be nice if there was an option to automatically fold list items
> that are checked on startup, e.g.

The behavior you describe works with headings. Plain lists don't have
as many features.

Thanks.

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com
                                    https://www.adamsinfoserv.com/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FR] STARTUP: hidechecked
  2023-11-08 14:27 ` Russell Adams
@ 2023-11-08 14:36   ` Ihor Radchenko
  2023-11-08 15:17     ` Fraga, Eric
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2023-11-08 14:36 UTC (permalink / raw)
  To: Russell Adams; +Cc: emacs-orgmode

Russell Adams <RLAdams@adamsinfoserv.com> writes:

>> It'd be nice if there was an option to automatically fold list items
>> that are checked on startup, e.g.
>
> The behavior you describe works with headings. Plain lists don't have
> as many features.

AFAIK, not even for headings - that would be an equivalent of "hide all
the done headings on startup".

IMHO, this kind of feature is a bit too specific. Users are free to add
things to `org-mode-hook', achieving the desired effect.

-- 
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] 4+ messages in thread

* Re: [FR] STARTUP: hidechecked
  2023-11-08 14:36   ` Ihor Radchenko
@ 2023-11-08 15:17     ` Fraga, Eric
  0 siblings, 0 replies; 4+ messages in thread
From: Fraga, Eric @ 2023-11-08 15:17 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Russell Adams, emacs-orgmode@gnu.org

Although org doesn't have the feature you are asking for, I have the
following in my configuration that you may find useful:

#+begin_src emacs-lisp
  (font-lock-add-keywords
   'org-mode
   `(("^[ \t]*\\(?:[-+*]\\|[0-9]+[).]\\)[ \t]+\\(\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\[\\(?:X\\|\\([0-9]+\\)/\\2\\)\\][^\n]*\n\\)" 1 'org-headline-done prepend))
   'append)
#+end_src

-- 
: Eric S Fraga, with org release_9.6.6-418-g294a4d in Emacs 30.0.50

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-08 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-08 14:25 [FR] STARTUP: hidechecked unhammer
2023-11-08 14:27 ` Russell Adams
2023-11-08 14:36   ` Ihor Radchenko
2023-11-08 15:17     ` Fraga, Eric

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).