emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching over from package org-radiobutton to native support


From: Samuel Wales
Subject: Re: Switching over from package org-radiobutton to native support
Date: Mon, 12 Dec 2022 17:11:07 -0700

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]