emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* toggle a checkbox in a property
@ 2022-07-17 12:47 Uwe Brauer
  2022-07-17 13:42 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2022-07-17 12:47 UTC (permalink / raw)
  To: emacs-orgmode



Hi 

Look at this example

* Test
  :PROPERTIES:
  :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
  :Received: [X]
  :END:

Using `org-shiftright'

I can obtain 

* Test
  :PROPERTIES:
  :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
  :Received: [ ]
  :END:

But how can I obtain 

* Test
  :PROPERTIES:
  :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
  :Received: [-]
  :END:

org-toggle-checkbox does not work for these sort of checkboxes.

regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 



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

* Re: toggle a checkbox in a property
  2022-07-17 12:47 toggle a checkbox in a property Uwe Brauer
@ 2022-07-17 13:42 ` Ihor Radchenko
  2022-07-17 14:31   ` Uwe Brauer
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ihor Radchenko @ 2022-07-17 13:42 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

> But how can I obtain 
>
> * Test
>   :PROPERTIES:
>   :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
>   :Received: [-]
>   :END:
>
> org-toggle-checkbox does not work for these sort of checkboxes.

The [ ] <> [X] is hardcoded.
But you can always set Received_ALL property to provide a manual list of
allowed property values.

Best,
Ihor


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

* Re: toggle a checkbox in a property
  2022-07-17 13:42 ` Ihor Radchenko
@ 2022-07-17 14:31   ` Uwe Brauer
  2022-07-17 14:36     ` Ihor Radchenko
  2022-07-17 14:36   ` Uwe Brauer
  2022-07-17 14:38   ` [SOLVED] (was: toggle a checkbox in a property) Uwe Brauer
  2 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2022-07-17 14:31 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> But how can I obtain 
>> 
>> * Test
>> :PROPERTIES:
>> :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
>> :Received: [-]
>> :END:
>> 
>> org-toggle-checkbox does not work for these sort of checkboxes.

> The [ ] <> [X] is hardcoded.
> But you can always set Received_ALL property to provide a manual list of
> allowed property values.

Thanks but could you provide some link or information, I am unable to
find any example

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

* Re: toggle a checkbox in a property
  2022-07-17 13:42 ` Ihor Radchenko
  2022-07-17 14:31   ` Uwe Brauer
@ 2022-07-17 14:36   ` Uwe Brauer
  2022-07-17 14:38   ` [SOLVED] (was: toggle a checkbox in a property) Uwe Brauer
  2 siblings, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2022-07-17 14:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> But how can I obtain 
>> 
>> * Test
>> :PROPERTIES:
>> :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
>> :Received: [-]
>> :END:
>> 
>> org-toggle-checkbox does not work for these sort of checkboxes.

> The [ ] <> [X] is hardcoded.
> But you can always set Received_ALL property to provide a manual list of
> allowed property values.


From  https://orgmode.org/guide/Properties.html

I tried 

* CD collection
  :PROPERTIES:
  :Box_ALL:  [-] [X]
  :Publisher_ALL: "Deutsche Grammophon" Philips EMI
  :END:


*** Goldberg Variations
    :PROPERTIES:
    :Title:     Goldberg Variations
    :Composer:  J.S. Bach
    :Publisher: Deutsche Grammophon
    :Box:      
    :END:

But it did not work, the value is not accpeted if I chose

Or 

* CD collection
  :PROPERTIES:
  :Box_ALL:  - X
  :Publisher_ALL: "Deutsche Grammophon" Philips EMI
  :END:


*** Goldberg Variations
    :PROPERTIES:
    :Title:     Goldberg Variations
    :Composer:  J.S. Bach
    :Publisher: Deutsche Grammophon
    :Box:      
    :END:

Then I don't get a box.


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

* Re: toggle a checkbox in a property
  2022-07-17 14:31   ` Uwe Brauer
@ 2022-07-17 14:36     ` Ihor Radchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2022-07-17 14:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

https://orgmode.org/manual/Property-Syntax.html#Property-Syntax

On Sun, Jul 17, 2022 at 10:31 PM Uwe Brauer <oub@mat.ucm.es> wrote:

> >>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:
>
> > Uwe Brauer <oub@mat.ucm.es> writes:
> >> But how can I obtain
> >>
> >> * Test
> >> :PROPERTIES:
> >> :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
> >> :Received: [-]
> >> :END:
> >>
> >> org-toggle-checkbox does not work for these sort of checkboxes.
>
> > The [ ] <> [X] is hardcoded.
> > But you can always set Received_ALL property to provide a manual list of
> > allowed property values.
>
> Thanks but could you provide some link or information, I am unable to
> find any example
>

[-- Attachment #2: Type: text/html, Size: 1321 bytes --]

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

* [SOLVED] (was: toggle a checkbox in a property)
  2022-07-17 13:42 ` Ihor Radchenko
  2022-07-17 14:31   ` Uwe Brauer
  2022-07-17 14:36   ` Uwe Brauer
@ 2022-07-17 14:38   ` Uwe Brauer
  2 siblings, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2022-07-17 14:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> But how can I obtain 
>> 
>> * Test
>> :PROPERTIES:
>> :ID:       46b9eb11-e258-4dc9-bf56-3c2112cf6b0a
>> :Received: [-]
>> :END:
>> 
>> org-toggle-checkbox does not work for these sort of checkboxes.

> The [ ] <> [X] is hardcoded.
> But you can always set Received_ALL property to provide a manual list of
> allowed property values.


*** Goldberg Variations
    :PROPERTIES:
    :Box_ALL:  "[-]" "[X]" "[ ]"
    :Title:    Goldberg Variations
    :Composer:  J.S. Bach
    :Publisher: Deutsche Grammophon
    :Box:      [-]
    :END

Solves the  issue thanks

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

end of thread, other threads:[~2022-07-17 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-17 12:47 toggle a checkbox in a property Uwe Brauer
2022-07-17 13:42 ` Ihor Radchenko
2022-07-17 14:31   ` Uwe Brauer
2022-07-17 14:36     ` Ihor Radchenko
2022-07-17 14:36   ` Uwe Brauer
2022-07-17 14:38   ` [SOLVED] (was: toggle a checkbox in a property) Uwe Brauer

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