emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: emacs-orgmode@gnu.org
Subject: Re: Checkboxes in headings - opinions wanted
Date: Mon, 03 May 2021 20:28:52 +0200	[thread overview]
Message-ID: <AM9PR09MB4977CE738DB3C863F03CDB2E965B9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <YJAbs3Rw4hOG7Wjh@maokai> (Russell Adams's message of "Mon, 3 May 2021 17:50:11 +0200")

Russell Adams <RLAdams@AdamsInfoServ.Com> writes:

> Arthur,
> Could you just use unicode checkbox symbols instead of TODO and DONE?
> https://kdr2.com/tech/emacs/1405-orgmode-checkbox-unicode.html
> That ought to be just a string, and need no patch.

No, I am sorry, that is completely off.

I have done this minor mode to make it independent of TODO states. Just
replacing TODO and DONE (as I already did as described in other thread 2
days ago), is effectively locking TODO to ack as checkboxes. I would
like to be able to use TODO states together with a checkbox,
independently of each other, so no, I need something more general then
just renamed todo states.

Also unicode will depend on some font to be installed, I don't want to pay
that dependency, since I am using this for my init file.

By the way, this is not a patch, this is a small minor mode that can be
installed and enabled/disabled like an extra package.

By the way, there is a widghet.el library included in Emacs, if I wanted
to use checkboxes as in screenshot there, I could use that library, but
that would be much more involved than those few lines to write the code
I attached in first mail.

> On Mon, May 03, 2021 at 09:00:40AM +0200, Arthur Miller wrote:
>> Last night I have been playing with a minor mode to enable a checkbox in
>> a heading, or rather to fake a checkbox. To be honest, it was a 10
>> minute job. Took me way moare time to figure out avialable key
>> combination to use (which I didn't found).
>> In general, enable mode and use S+up/down to toggle a checkbox. A
>> heading with a checkbox is of form [ \t]*\\*+.*? followed by a [ ] or
>> [x] before a heading. It means a [ ] can be placed somewhere after the
>> leading stars, whitespaces ignored.
>> This has nothing todo with my previous hacks of todo keywords. This one
>> does not uses todo states at all so it can be used with todo states.
>> It is just a small prototype. I will use something else than
>> replace-string later on.
>> Just wonder if the approach is sane.
>> There is also a repo on gh for interested one:
>> https://github.com/amno1/org-heading-checkbox

> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

      reply	other threads:[~2021-05-03 18:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03  7:00 Checkboxes in headings - opinions wanted Arthur Miller
2021-05-03  8:32 ` Bastien
2021-05-03  8:42   ` Timothy
2021-05-03 15:25     ` Arthur Miller
2021-05-03 15:21   ` Arthur Miller
2021-05-04  3:18     ` Ihor Radchenko
2021-05-04 10:47       ` Arthur Miller
2021-05-03 15:50 ` Russell Adams
2021-05-03 18:28   ` Arthur Miller [this message]

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:

  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=AM9PR09MB4977CE738DB3C863F03CDB2E965B9@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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