From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Re: Todo state for [un]ordered list items? Date: Sat, 27 Mar 2010 15:07:59 -0600 Message-ID: References: <877hoxcz5x.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0962767043==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvdEj-00030X-HJ for emacs-orgmode@gnu.org; Sat, 27 Mar 2010 17:08:05 -0400 Received: from [140.186.70.92] (port=40826 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvdEh-0002xl-9Y for emacs-orgmode@gnu.org; Sat, 27 Mar 2010 17:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvdEe-0003DB-Gg for emacs-orgmode@gnu.org; Sat, 27 Mar 2010 17:08:03 -0400 Received: from mail-gx0-f217.google.com ([209.85.217.217]:53052) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvdEe-0003D7-9W for emacs-orgmode@gnu.org; Sat, 27 Mar 2010 17:08:00 -0400 Received: by gxk9 with SMTP id 9so668871gxk.8 for ; Sat, 27 Mar 2010 14:07:59 -0700 (PDT) In-Reply-To: <877hoxcz5x.fsf@mean.albasani.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Memnon Anon Cc: emacs-orgmode@gnu.org --===============0962767043== Content-Type: multipart/alternative; boundary=000e0cd299dab6fddd0482ceacf0 --000e0cd299dab6fddd0482ceacf0 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Mar 27, 2010 at 2:15 PM, Memnon Anon < gegendosenfleisch@googlemail.com> wrote: > John Hendy writes > > * Projects > > ** Project 1 > > *** History/Overview > > *** Journals > > **** <2010-03-27 Sat> > > ***** Main thing I did 1 > > - did stuff > --snip-- First, I would suggest a different organisation. You are 5 headlines > deep, because you chose this kind of setup, but with some tweaking, you > could avoid this: > a) Give each Project an own file. > b) Don't give dates a headline. > So, you would have a file like this: > > * Project 1 > ** History/Overview > ** Journals > *** DONE Main thing I did 1 > <2010-03-27 Sat> > *** TODO Stuff 2 > *** TODO Stuff 3 > > I started this way (pro1.org, pro2.org, etc.) but found changing buffers constantly to be annoying. I much prefer them all in one place now, but am still open to changing that! I can see advantages to the one-file-per-project idea. For instance I just wrote up a paper at home and exporting to html/latex was far easier since it had the whole file to play in. I would have had a harder time getting just my paper out of a whole ' personal.org' file... Followup/claification: - what are your pro/cons for why you go one file per project vs. a big file? I know different people have different opinions on this. I believe Carsten said in at least one of his main talks on org-mode that he has on big one as does Sacha Chua who I emailed with a little and uses org-mode a ton. - The journals are not always todos. Sometimes they are just notes, but need a time stamp anyway. I can see your point of doing it that way. I burn a headline level just on the time stamp. - My main purpose of the time stamps is that I need to print my status and then double side tape it into an intellectual property notebook. I think I can do this with agenda. Side note: I wonder about putting one file vs. many files in this new 'beginner tutorial' to help new people choose a set up when first starting? Might be cool. Not to say one is better, but to at least offer what I'm looking for: experience users' input as to what is benefited from one style vs. the other and what functionality is gained/lost/tougher. > If you want to review what you did on a specific day, use the agenda for > this. For "substuff", if it is really not worth a separate task, there > are lists. > I will look into agenda more. Have not explored it's functionality much yet. Been on org-mode for about 2 weeks! > > - If not, I'm absolutely game to hear alternative work flows and how > > others manage without this feature at present! > > --- So far, I've just been making the headline a TODO and then putting > > in a [/] at the top; unordered list items that are todos also have a [ > > ] which is tracked by the top level todo. - Bonus: if this is the best > > (headline = todo and unordered lists are check boxes), how can I > > implement a shortcut to toggle the 'todo checkbox' state for unordered > > list items? It would be awesome to have a C-c C-t equivalent for > > sub-items such that they were given a checkbox! > > I do not understand, did you miss this: > ,----[ (info "(org)The very busy C-c C-c key") ] > | - If the cursor is in a plain list item with a checkbox, toggle the > | status of the checkbox. > `---- > Sorry, this is not what I meant. You answered my 'state' question in your next point with C-c C-x C-b. I know how to toggle the checkbox 'state'... I meant to toggle the state of having a checkbox... period, aka go from - item 1 to - [ ] item 1 > To make a checkbox without typing "[ ]", use C-c C-x C-b: > ,----[ (info "(org)Checkboxes") ] > | `C-c C-x C-b' > | Toggle checkbox status or (with prefix arg) checkbox presence at > | point. With double prefix argument, set it to `[-]', which is > | considered to be an intermediate state. > | - If there is an active region, toggle the first checkbox in > | the region and set all remaining boxes to the same status as > | the first. With a prefix arg, add or remove the checkbox for > | all items in the region. > | > | - If the cursor is in a headline, toggle checkboxes in the > | region between this headline and the next (so _not_ the > | entire subtree). > | > | - If there is no active region, just toggle the checkbox at > | point. > `---- > > This is what I was looking for. Dumb that I missed it. In my skimming, only the 'toggle checkbox status' descriptions were popping out to me so it seemed to be for something of a tree-level C-c C-c vs. what it actually does. Even after re-reading it, though, it seems confusing: - I don't get what a '[double] prefix arg' is. C-c C-x C-b does indeed, add a check box to an unordered list item no matter where I am on the line, but according to this, since I'm not providing a prefix argument (with C-u, right?), it should only toggle the status? But there is no 'status' so it adds? - How do I get the box to go away if I don't want it anymore? > If you need this very often, you may want to bind this to an easier > keycombo. > > Did this help so far? > > memnon > P.S. Somewhat un-related, but while taking about lists... In an unordered list like this (my todo list for today) * TODO [0/4] <2010-03-27 Sat> - floors - [ ] sweep or vacuum all hardwood - [ ] wash all hardwood - [ ] wash hardwood floors - [ ] wash kitchen floor - [ ] send envelopes via post office - [ ] vacuum back stairs and hallway If I have either - floors or - [/] floors then * TODO says [0/4] (it's only counting the sub-items under floors). If I have - [ ] floors then TODOS says [0/3] (it's counting the highest level items: floors, send, and vacuum) Aren't - [ ] send envelopes via post office - [ ] vacuum back stairs and hallway Still under the todo headline whether -floors is a checkbox or not? Shouldn't they be counted? Based on the example here ( http://www.gnu.org/software/emacs/manual/html_node/org/Checkboxes.html), I should get the behavior I expect. In fact, when yanking it into my file, I get this instead of what's shown on the tutorial page: * TODO Organize party [1/3] (instead of [3/6] - call people [1/3] - [ ] Peter - [X] Sarah - [ ] Sam - [X] order food - [ ] think about what music to play - [X] talk to the neighbors Bug or something in .emacs that I'm unaware of? Sincere thanks, John > _______________________________________________ > 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 > --000e0cd299dab6fddd0482ceacf0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sat, Mar 27, 2010 at 2:15 PM, Memnon Anon= <= gegendosenfleisch@googlemail.com> wrote:
John Hendy <jw.h= endy@gmail.com> writes
> * Projects
> ** Project 1
> *** History/Overview
> *** Journals
> **** <2010-03-27 Sat>
> ***** Main thing I did 1
> - did stuff

--snip--

First, I wo= uld suggest a different organisation. You are 5 headlines
deep, because you chose this kind of setup, but with some tweaking, you
could avoid this:
=A0 =A0 =A0a) Give each Project an own file.
=A0 =A0 =A0b) Don't give dates a headline.
So, you would have a file like this:

* Project 1
** History/Overview
** Journals
*** DONE Main thing I did 1
<2010-03-27 Sat>
*** TODO Stuff 2
*** TODO Stuff 3


I started this way (p= ro1.org, pro2.org, etc.) but found chan= ging buffers constantly to be annoying. I much prefer them all in one place= now, but am still open to changing that! I can see advantages to the one-f= ile-per-project idea. For instance I just wrote up a paper at home and expo= rting to html/latex was far easier since it had the whole file to play in. = I would have had a harder time getting just my paper out of a whole 'personal.org' file...

Followup/claification:
- what are your pro/cons for why you go one f= ile per project vs. a big file? I know different people have different opin= ions on this. I believe Carsten said in at least one of his main talks on o= rg-mode that he has on big one as does Sacha Chua who I emailed with a litt= le and uses org-mode a ton.
- The journals are not always todos. Sometimes they are just notes, but nee= d a time stamp anyway. I can see your point of doing it that way. I burn a = headline level just on the time stamp.
- My main purpose of the time sta= mps is that I need to print my status and then double side tape it into an = intellectual property notebook. I think I can do this with agenda.

Side note: I wonder about putting one file vs. many files in this new &= #39;beginner tutorial' to help new people choose a set up when first st= arting? Might be cool. Not to say one is better, but to at least offer what= I'm looking for: experience users' input as to what is benefited f= rom one style vs. the other and what functionality is gained/lost/tougher.<= br>
=A0
If you want to review what you did on a specific day, use the agenda for this. For "substuff", if it is really not worth a separate task, = there
are lists.

I will look int= o agenda more. Have not explored it's functionality much yet. Been on o= rg-mode for about 2 weeks!
=A0
> - If not, I'm absolutely game to hear alternative work flows and h= ow
> others manage without this feature at present!
> --- So far, I've just been making the headline a TODO and then put= ting
> in a [/] at the top; unordered list items that are todos also have a [=
> ] which is tracked by the top level todo. - Bonus: if this is the best=
> (headline =3D todo and unordered lists are check boxes), how can I
> implement a shortcut to toggle the 'todo checkbox' state for u= nordered
> list items? It would be awesome to have a C-c C-t equivalent for
> sub-items such that they were given a checkbox!

I do not understand, did you miss this:
,----[ (info "(org)The very busy C-c C-c key") ]
| =A0 =A0- If the cursor is in a plain list item with a checkbox, toggle th= e
| =A0 =A0 =A0status of the checkbox.
`----

Sorry, this is not what I meant. You answere= d my 'state' question in your next point with C-c C-x C-b. I know h= ow to toggle the checkbox 'state'... I meant to toggle the state of= having a checkbox... period, aka go from
- item 1
to
- [ ] item 1
=A0
To make a checkbox without typing "[ ]", use C-c C-x C-b:
,----[ (info "(org)Checkboxes") ]
| `C-c C-x C-b'
| =A0 =A0 =A0Toggle checkbox status or (with prefix arg) checkbox presence = at
| =A0 =A0 =A0point. =A0With double prefix argument, set it to `[-]', wh= ich is
| =A0 =A0 =A0considered to be an intermediate state.
| =A0 =A0 =A0 =A0 - If there is an active region, toggle the first checkbox= in
| =A0 =A0 =A0 =A0 =A0 the region and set all remaining boxes to the same st= atus as
| =A0 =A0 =A0 =A0 =A0 the first. =A0With a prefix arg, add or remove the ch= eckbox for
| =A0 =A0 =A0 =A0 =A0 all items in the region.
|
| =A0 =A0 =A0 =A0 - If the cursor is in a headline, toggle checkboxes in th= e
| =A0 =A0 =A0 =A0 =A0 region between this headline and the next (so _not_ t= he
| =A0 =A0 =A0 =A0 =A0 entire subtree).
|
| =A0 =A0 =A0 =A0 - If there is no active region, just toggle the checkbox = at
| =A0 =A0 =A0 =A0 =A0 point.
`----


This is what I was looking for. Dumb that I misse= d it. In my skimming, only the 'toggle checkbox status' description= s were popping out to me so it seemed to be for something of a tree-level C= -c C-c vs. what it actually does. Even after re-reading it, though, it seem= s confusing:
- I don't get what a '[double] prefix arg' is. C-c C-x C-b does= indeed, add a check box to an unordered list item no matter where I am on = the line, but according to this, since I'm not providing a prefix argum= ent (with C-u, right?), it should only toggle the status? But there is no &= #39;status' so it adds?
- How do I get the box to go away if I don't want it anymore?
=A0
If you need this very often, you may want to bind this to an easier
keycombo.

Did this help so far?

memnon


P.S. Somewhat un-related, but while tak= ing about lists... In an unordered list like this (my todo list for today)<= br>
* TODO [0/4] <2010-03-27 Sat>
=A0- floors
=A0=A0 - [ ] s= weep or vacuum all hardwood
=A0=A0 - [ ] wash all hardwood
=A0=A0 - [ ] wash hardwood floors
=A0= =A0 - [ ] wash kitchen floor
=A0- [ ] send envelopes via post office
= =A0- [ ] vacuum back stairs and hallway

If I have either
- floors=
or
- [/] floors
then

* TODO says [0/4] (it's only counting the sub-items under f= loors). If I have
- [ ] floors then TODOS says [0/3] (it's counting = the highest level items: floors, send, and vacuum)

Aren't
=A0- [ ] send envelopes via post office
=A0- [ ] vacuum back stairs and hallway

Still under the todo headline whether -floors is a checkbox or not? Sho= uldn't they be counted? Based on the example here (http://www.g= nu.org/software/emacs/manual/html_node/org/Checkboxes.html), I should g= et the behavior I expect. In fact, when yanking it into my file, I get this= instead of what's shown on the tutorial page:
* TODO Organize party [1/3] (instead of [3/6]
-= call people [1/3]
- [ ] Peter
- [X] Sarah
- [ ] Sam - [X] order food
- [ ] think about what music to play
- [X] t= alk to the neighbors

Bug or something in .emacs that I'm unaware of?

Sincer= e thanks,
John
=A0


_______________________________________________
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

--000e0cd299dab6fddd0482ceacf0-- --===============0962767043== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0962767043==--