emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Headline and numbered plain list
@ 2010-06-28  9:31 Juri Artamonov
  2010-06-28 11:43 ` David Maus
  0 siblings, 1 reply; 7+ messages in thread
From: Juri Artamonov @ 2010-06-28  9:31 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 277 bytes --]

Hello Guys,

do you know if orgmode provides combination of headline and numbered plain
list with checkbox on the same line.

For example,

I would like to have the following:

** 1. [ ] Text for first item
** 2. [ ] Text for second item

Thank you,
                     Juri.

[-- Attachment #1.2: Type: text/html, Size: 439 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Headline and numbered plain list
  2010-06-28  9:31 Headline and numbered plain list Juri Artamonov
@ 2010-06-28 11:43 ` David Maus
  2010-06-29  6:56   ` Juri Artamonov
  0 siblings, 1 reply; 7+ messages in thread
From: David Maus @ 2010-06-28 11:43 UTC (permalink / raw)
  To: Juri Artamonov; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 768 bytes --]


Juri Artamonov wrote:

>do you know if orgmode provides combination of headline and numbered
>plain list with checkbox on the same line.
>
>For example,
>
>I would like to have the following:
>
>** 1. [ ] Text for first item
>** 2. [ ] Text for second item
>

No, this is not possible in Org and I'm not sure what you want to
achieve: If you need a headline, than you can use TODO keywords
instead of a checkbox (they will carry the same information).
Numbering headlines is not a good idea, implementation-wise: Those
numbers would have to be recalculated every time the structure of the
document changes (e.g. insert new headline, change headline level
etc.).

HTH
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Headline and numbered plain list
  2010-06-28 11:43 ` David Maus
@ 2010-06-29  6:56   ` Juri Artamonov
  2010-06-29 11:27     ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: Juri Artamonov @ 2010-06-29  6:56 UTC (permalink / raw)
  To: David Maus, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]

Thank you David, for your reply.

The only reason I need this is just I can specify TAG(s) for headline and
can't do this for any other record. Therefore, I need to have information
about number of items, checked number and get items by TAG.

Is there any other way to achieve this?

Thank you,
                          Juri.

On Mon, Jun 28, 2010 at 2:43 PM, David Maus <dmaus@ictsoc.de> wrote:

>
> Juri Artamonov wrote:
>
> >do you know if orgmode provides combination of headline and numbered
> >plain list with checkbox on the same line.
> >
> >For example,
> >
> >I would like to have the following:
> >
> >** 1. [ ] Text for first item
> >** 2. [ ] Text for second item
> >
>
> No, this is not possible in Org and I'm not sure what you want to
> achieve: If you need a headline, than you can use TODO keywords
> instead of a checkbox (they will carry the same information).
> Numbering headlines is not a good idea, implementation-wise: Those
> numbers would have to be recalculated every time the structure of the
> document changes (e.g. insert new headline, change headline level
> etc.).
>
> HTH
>  -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
>

[-- Attachment #1.2: Type: text/html, Size: 1766 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Headline and numbered plain list
  2010-06-29  6:56   ` Juri Artamonov
@ 2010-06-29 11:27     ` Bernt Hansen
  2010-06-29 16:19       ` Juri Artamonov
  2010-06-29 17:46       ` J. David Boyd
  0 siblings, 2 replies; 7+ messages in thread
From: Bernt Hansen @ 2010-06-29 11:27 UTC (permalink / raw)
  To: Juri Artamonov; +Cc: emacs-orgmode

Juri Artamonov <jartamonov@gmail.com> writes:

> Thank you David, for your reply.
> 
> The only reason I need this is just I can specify TAG(s) for headline
> and can't do this for any other record. Therefore, I need to have
> information about number of items, checked number and get items by
> TAG.
> 
> Is there any other way to achieve this?

Hi Juri,

I think you should promote your list entries with checkboxes to full
headlines that support tags.  You can switch back and forth between
lists and headlines by selecting the text and using C-c * on the region.

I would suggest you change from 

,----
| ** 1. [ ] Text for first item
| ** 2. [ ] Text for second item
`----

to

,----
| * Top level headline [/] [%]                    :sometags:
| ** TODO Text for first item
| ** TODO Text for second item
`----

that way when you mark the TODO items DONE (equivalent to checking the
checkboxes) the cookies [/] and [%] update with the number of complete
and total items for the subheadings.

HTH,
Bernt

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

* Re: Headline and numbered plain list
  2010-06-29 11:27     ` Bernt Hansen
@ 2010-06-29 16:19       ` Juri Artamonov
  2010-06-29 16:22         ` Bernt Hansen
  2010-06-29 17:46       ` J. David Boyd
  1 sibling, 1 reply; 7+ messages in thread
From: Juri Artamonov @ 2010-06-29 16:19 UTC (permalink / raw)
  To: Bernt Hansen, David Maus, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1313 bytes --]

Thank you Bernt for proposal. Yes, it can work but only TODO and DONE in
this case not good words for the item but I will try.

Thank you,
                   Juri.

On Tue, Jun 29, 2010 at 2:27 PM, Bernt Hansen <bernt@norang.ca> wrote:

> Juri Artamonov <jartamonov@gmail.com> writes:
>
> > Thank you David, for your reply.
> >
> > The only reason I need this is just I can specify TAG(s) for headline
> > and can't do this for any other record. Therefore, I need to have
> > information about number of items, checked number and get items by
> > TAG.
> >
> > Is there any other way to achieve this?
>
> Hi Juri,
>
> I think you should promote your list entries with checkboxes to full
> headlines that support tags.  You can switch back and forth between
> lists and headlines by selecting the text and using C-c * on the region.
>
> I would suggest you change from
>
> ,----
> | ** 1. [ ] Text for first item
> | ** 2. [ ] Text for second item
> `----
>
> to
>
> ,----
> | * Top level headline [/] [%]                    :sometags:
> | ** TODO Text for first item
> | ** TODO Text for second item
> `----
>
> that way when you mark the TODO items DONE (equivalent to checking the
> checkboxes) the cookies [/] and [%] update with the number of complete
> and total items for the subheadings.
>
> HTH,
> Bernt
>

[-- Attachment #1.2: Type: text/html, Size: 1811 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Headline and numbered plain list
  2010-06-29 16:19       ` Juri Artamonov
@ 2010-06-29 16:22         ` Bernt Hansen
  0 siblings, 0 replies; 7+ messages in thread
From: Bernt Hansen @ 2010-06-29 16:22 UTC (permalink / raw)
  To: Juri Artamonov; +Cc: emacs-orgmode

Juri Artamonov <jartamonov@gmail.com> writes:

> On Tue, Jun 29, 2010 at 2:27 PM, Bernt Hansen <bernt@norang.ca> wrote:
>
>     Juri Artamonov <jartamonov@gmail.com> writes:
>    
>     > Thank you David, for your reply.
>     >
>     > The only reason I need this is just I can specify TAG(s) for headline
>     > and can't do this for any other record. Therefore, I need to have
>     > information about number of items, checked number and get items by
>     > TAG.
>     >
>     > Is there any other way to achieve this?
>    
>     Hi Juri,
>    
>     I think you should promote your list entries with checkboxes to full
>     headlines that support tags.  You can switch back and forth between
>     lists and headlines by selecting the text and using C-c * on the region.
>    
>     I would suggest you change from
>    
>     ,----
>     | ** 1. [ ] Text for first item
>     | ** 2. [ ] Text for second item
>     `----
>    
>     to
>    
>     ,----
>     | * Top level headline [/] [%]                    :sometags:
>     | ** TODO Text for first item
>     | ** TODO Text for second item
>     `----
>    
>     that way when you mark the TODO items DONE (equivalent to checking the
>     checkboxes) the cookies [/] and [%] update with the number of complete
>     and total items for the subheadings.

> Thank you Bernt for proposal. Yes, it can work but only TODO and DONE
> in this case not good words for the item but I will try.    Thank you,

You can use other keywords - just enter them in the file as

#+TODO: FOO | BAR

Use whatever makes sense for your scenario.  Alternatively set them up
in your global todo keyword list in org-todo-keywords.

-Bernt

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

* Re: Headline and numbered plain list
  2010-06-29 11:27     ` Bernt Hansen
  2010-06-29 16:19       ` Juri Artamonov
@ 2010-06-29 17:46       ` J. David Boyd
  1 sibling, 0 replies; 7+ messages in thread
From: J. David Boyd @ 2010-06-29 17:46 UTC (permalink / raw)
  To: emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

>
> ,----
> | * Top level headline [/] [%]                    :sometags:
> | ** TODO Text for first item
> | ** TODO Text for second item
> `----
>
> that way when you mark the TODO items DONE (equivalent to checking the
> checkboxes) the cookies [/] and [%] update with the number of complete
> and total items for the subheadings.


Damn!  I didn't know the statistic boxes worked like that either.   I
think I need to go reread the docs!

Thanks for the info.  This is great!

Dave in Largo, FL

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

end of thread, other threads:[~2010-06-29 17:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28  9:31 Headline and numbered plain list Juri Artamonov
2010-06-28 11:43 ` David Maus
2010-06-29  6:56   ` Juri Artamonov
2010-06-29 11:27     ` Bernt Hansen
2010-06-29 16:19       ` Juri Artamonov
2010-06-29 16:22         ` Bernt Hansen
2010-06-29 17:46       ` J. David Boyd

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