emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Terje Larsen <terlar@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Switching over from package org-radiobutton to native support
Date: Mon, 12 Dec 2022 17:11:07 -0700	[thread overview]
Message-ID: <CAJcAo8v+5G8u=K_x6aRZ6zU-uOzGLPzf0qNAskmcgCgFq8H4TA@mail.gmail.com> (raw)
In-Reply-To: <CAGoWm-ZvKGmwG5juXVj_L_eT0Jp6Gr5WiQQhN5igpnhRYH=Etg@mail.gmail.com>

not sure what you mean by return.

org core code for a while now has included a minor mode for radio
buttons.  i think, however, #+ syntax and no mode is better if it
means that you can do it per list or per sublist.

that can also be used for other list features, such as ensuring bullet
style cnsistency or so.

On 11/26/22, Terje Larsen <terlar@gmail.com> wrote:
> So I found out that there is now native support for radio-button style
> selects and I have tested it and it seems to work well.
>
> However I am missing a function similar to `org-radiobutton-value`:
> https://github.com/Fuco1/org-radiobutton/blob/master/org-radiobutton.el#L111-L121
>
> That will return the value of the currently selected checkbox by the
> attached name.
>
> So for example:
>
> #+ATTR_ORG: :radio t
> #+NAME: named_radio_value
> - [ ] Value A
> - [X] Value B
> - [ ] Value C
>
> Would return `Value B` for `named_radio_value`. This is useful when
> creating interfaces in Org Mode and acting on those.
>
> I know it is possible via a mouthful of lisp. But it would be nice if it
> was natively supported. It would also be nice if this also worked for
> normal lists, e.g. having the possibility to easily extract all selected
> values.
>
> What do you think? Is something like this already implemented, but I missed
> it?
>
> Best regards,
> Terje Larsen
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com


      parent reply	other threads:[~2022-12-13  0:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-26 23:27 Switching over from package org-radiobutton to native support Terje Larsen
2022-12-12 14:17 ` Ihor Radchenko
2022-12-13  0:11 ` Samuel Wales [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:
  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='CAJcAo8v+5G8u=K_x6aRZ6zU-uOzGLPzf0qNAskmcgCgFq8H4TA@mail.gmail.com' \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=terlar@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).