From: Arthur Miller <email@example.com> To: Bastien <firstname.lastname@example.org> Cc: email@example.com Subject: Re: Checkboxes in headings - opinions wanted Date: Mon, 03 May 2021 17:21:44 +0200 [thread overview] Message-ID: <AM9PR09MB497763AA4049A81FEFE97AAB965B9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw) In-Reply-To: <firstname.lastname@example.org> (Bastien's message of "Mon, 03 May 2021 10:32:47 +0200") [-- Attachment #1: Type: text/plain, Size: 2307 bytes --] Bastien <email@example.com> writes: > Hi Arthur, > > Arthur Miller <firstname.lastname@example.org> writes: > >> Last night I have been playing with a minor mode to enable a checkbox in >> a heading, or rather to fake a checkbox. > > Interesting, thanks. > > For now you can use statistics cookies in headline: > https://orgmode.org/manual/Checkboxes.html > > What would perhaps make sense would be to support [ ]/[X] on top of > the already supported [0%]/[100%] and [0/n]/[n/n]. > > What do you think? (I tried your mode and unless I didn't try it > correctly, it does not seem to do that.) Indeed, it does not do that :). It was explicitly designed to work independently of TODO tasks/progress, so I can use it side by side with TODO labels. With other words I just needed a plain old GUI-style checkbox to indicate on/off value. As I understand stats checkboxes are displaying progress based on TODO tasks and list checkboxes, so they can not be used independently of TODO states. Maybe I am wrong, I never used them to be honest, so I am not sure how much and what is possible there. Anyway, I am not sure how interesting is this to a wider org-mode community. Org-mode seems to be geared mostly toward process tracking which is of course great for project and tasks tracking. However, I see lots of useful things in org-mode outside of project tracking for some other strucutured data. Example can be seen in attached screenshot from my init file where I use org headings to form a list of packages to install, and checkboxes to indicate if a package configuration is used or not. I was able to re-purpose TODO keywords to act as checkboxes, the other day, and it worked very well, I can "switch on/off states" with S-left/right arrows, and I was able to disable initial and done states, so arrows just shift between [x] and [ ] states. But that locks todo states to this particular sequence. If I would like to be able to use TODO states in their normal context, I can't. I needed a more "general purpose" checkbox, so I wrote that small minor mode. The biggest problem is, I am not sure how to connect a function per checkbox in some convenient and simple to use way yet, I am still thinking what would be the easiest way to add programmability, and I am not sure why empty checkbox losses fontification. [-- Attachment #2: screenshot.png --] [-- Type: image/png, Size: 68255 bytes --]
next prev parent reply other threads:[~2021-05-03 15:22 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-03 7:00 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 [this message] 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
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=AM9PR09MB497763AA4049A81FEFE97AAB965B9@AM9PR09MB4977.eurprd09.prod.outlook.com \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Checkboxes in headings - opinions wanted' \ /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
Code repositories for project(s) associated with this 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).