Re: [O] Move to item to the bottom

2011-07-27 Thread Marcelo de Moraes Serpa
Hi Bastien, Thanks, did not know about it. M> On Wed, Jul 27, 2011 at 6:22 AM, Bastien wrote: > Hi Marcelo, > > Marcelo de Moraes Serpa writes: > > > [Feature suggestion] (related to what I described in the last post of > > this thread): > > > > Keep configuration options for an org file in a

Re: [O] Move to item to the bottom

2011-07-27 Thread Bastien
Hi Marcelo, Marcelo de Moraes Serpa writes: > [Feature suggestion] (related to what I described in the last post of > this thread): > > Keep configuration options for an org file in a separate file. Could > be: > * nameoftheorgfile.conf I don't think this is necessary. You can already include

Re: [O] Move to item to the bottom

2011-07-20 Thread Marcelo de Moraes Serpa
[Feature suggestion] (related to what I described in the last post of this thread): Keep configuration options for an org file in a separate file. Could be: * nameoftheorgfile.conf I know it seems awkward, but I think it'd be nice if we could keep org file configurations outside of the org file,

Re: [O] Move to item to the bottom

2011-07-07 Thread Marcelo de Moraes Serpa
It's obvious, but here's the snippet to promote the headline for your convenience: (defun ngz-move-headline-up () "Move current headline to the top of the tree" (interactive) (unless (org-at-heading-p) (error "Not at an headline")) (save-excursion (while (ignore-errors (org-move-subtree-u

Re: [O] Move to item to the bottom

2011-07-04 Thread Marcelo de Moraes Serpa
I definitely need to get my head around elisp. Thank you very much. On Sun, Jul 3, 2011 at 4:39 AM, Nicolas Goaziou wrote: > Hello, > > Marcelo de Moraes Serpa writes: > > > Nicolas, the function works quite well! Thanks. Just one last request: > Is > > it possible to not follow the item until

Re: [O] Move to item to the bottom

2011-07-03 Thread Nicolas Goaziou
Hello, Marcelo de Moraes Serpa writes: > Nicolas, the function works quite well! Thanks. Just one last request: Is > it possible to not follow the item until the bottom? The issue is that, once > running it and when the item is sent to the bottom of the file, the pointer > is also put there and

Re: [O] Move to item to the bottom

2011-07-02 Thread Marcelo de Moraes Serpa
Nicolas, the function works quite well! Thanks. Just one last request: Is it possible to not follow the item until the bottom? The issue is that, once running it and when the item is sent to the bottom of the file, the pointer is also put there and the buffer scrolls down with it. Cheers, M> On

Re: [O] Move to item to the bottom

2011-07-02 Thread Nicolas Goaziou
Hello, Bastien writes: > Nicolas Goaziou writes: > >> It needs a better optimization (my excuse for >> `org-list-delete-item'). I will work on it tonight. > > Thanks! I've pushed a draft to: git://github.com/ngz/org-mode-lists.git move-cycle The branch is made of two patches. T

Re: [O] Move to item to the bottom

2011-07-02 Thread Bastien
Nicolas Goaziou writes: > That's what I thought. You are talking about headlines whereas my code > was about plain lists: FWIW, I was also talking about plain lists, not headlines. -- Bastien

Re: [O] Move to item to the bottom

2011-07-02 Thread Nicolas Goaziou
Hello, Marcelo de Moraes Serpa writes: >> Or are we talking about two different things? > > Not sure, maybe. What I mean is: > > gtd.org file: > > * TODO Blah > * TODO Foo > * TODO bar [...] That's what I thought. You are talking about headlines whereas my code was about plain lists: - Blah -

Re: [O] Move to item to the bottom

2011-07-01 Thread Marcelo de Moraes Serpa
Nicolas, Or are we talking about two different things? Not sure, maybe. What I mean is: gtd.org file: * TODO Blah * TODO Foo * TODO bar Instead of: gtd.org file: * Tasks ** TODO Blah ** TODO Foo ** TODO Bar So, the items in gtd.org files are all top-level, they don't belong to a list (unles

Re: [O] Move to item to the bottom

2011-07-01 Thread Nicolas Goaziou
Hello, Marcelo de Moraes Serpa writes: > Nicolas, what if all the items are top-level items? My gtd.org file is > basically a flat list of projects and I don't have a main top list for that > wraps them. Any ideas? I'm not sure to understand. If all the items are at top level, the function will

Re: [O] Move to item to the bottom

2011-07-01 Thread Marcelo de Moraes Serpa
Nice discussion! Nicolas, what if all the items are top-level items? My gtd.org file is basically a flat list of projects and I don't have a main top list for that wraps them. Any ideas? Cheers, M> On Fri, Jul 1, 2011 at 11:07 AM, Bastien wrote: > Hi Carsten, > > Carsten Dominik writes: > >

Re: [O] Move to item to the bottom

2011-07-01 Thread Bastien
Hi Carsten, Carsten Dominik writes: > I do not agree, if I move something up, I never want it to go down. > A list is not a circle. Maybe C-M-down, or C-u M-down > or so might be a possibility. Agreed, C-M-up will surely be less surprising. Let's wait for Nicolas's patch about this and give f

Re: [O] Move to item to the bottom

2011-07-01 Thread Carsten Dominik
On Jul 1, 2011, at 12:14 PM, Eric S Fraga wrote: > Carsten Dominik writes: > >> On Jul 1, 2011, at 10:57 AM, Bastien wrote: >> >>> Hi Nicolas, >>> >>> Nicolas Goaziou writes: >>> Correcting myself, I paste here another try to the problem at hand. Indeed, moving an item to a list h

Re: [O] Move to item to the bottom

2011-07-01 Thread Carsten Dominik
On Jul 1, 2011, at 11:46 AM, Bastien wrote: > Carsten Dominik writes: > >> This does sound counter-intuitive to me. > > Why? > > The idea is that someone who wants to move a first item to the top > really wants to cycle through items -- same for moving the bottom item > to the bottom, where t

Re: [O] Move to item to the bottom

2011-07-01 Thread Eric S Fraga
Carsten Dominik writes: > On Jul 1, 2011, at 10:57 AM, Bastien wrote: > >> Hi Nicolas, >> >> Nicolas Goaziou writes: >> >>> Correcting myself, I paste here another try to the problem at >>> hand. Indeed, moving an item to a list he doesn't directly belong to >>> makes little sense. Thus, the i

Re: [O] Move to item to the bottom

2011-07-01 Thread Nicolas Goaziou
Hello, Bastien writes: >> Correcting myself, I paste here another try to the problem at >> hand. Indeed, moving an item to a list he doesn't directly belong to >> makes little sense. Thus, the item will be moved at the end of its >> list. > > Nice. Such a move could be bound to M- when the curs

Re: [O] Move to item to the bottom

2011-07-01 Thread Bastien
Carsten Dominik writes: > This does sound counter-intuitive to me. Why? The idea is that someone who wants to move a first item to the top really wants to cycle through items -- same for moving the bottom item to the bottom, where the user really wants to move it to the top. Actually, it's imp

Re: [O] Move to item to the bottom

2011-07-01 Thread Bastien
Nicolas Goaziou writes: > It needs a better optimization (my excuse for > `org-list-delete-item'). I will work on it tonight. Thanks! I'm really excited by all this activity/features/questions. I'm still focusing on our main goal, though, which is to release 7.6 ASAP so that it will be incl

Re: [O] Move to item to the bottom

2011-07-01 Thread Carsten Dominik
On Jul 1, 2011, at 10:57 AM, Bastien wrote: > Hi Nicolas, > > Nicolas Goaziou writes: > >> Correcting myself, I paste here another try to the problem at >> hand. Indeed, moving an item to a list he doesn't directly belong to >> makes little sense. Thus, the item will be moved at the end of its

Re: [O] Move to item to the bottom

2011-07-01 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Correcting myself, I paste here another try to the problem at > hand. Indeed, moving an item to a list he doesn't directly belong to > makes little sense. Thus, the item will be moved at the end of its > list. Nice. Such a move could be bound to M- when th

Re: [O] Move to item to the bottom

2011-06-30 Thread Nicolas Goaziou
Correcting myself, I paste here another try to the problem at hand. Indeed, moving an item to a list he doesn't directly belong to makes little sense. Thus, the item will be moved at the end of its list. #+begin_src emacs-lisp (defun ngz-move-item-at-bottom () "Move item at point at the bottom o

Re: [O] Move to item to the bottom

2011-06-30 Thread Nicolas Goaziou
Hello, Marcelo de Moraes Serpa writes: > It'd be nice if we could just send an item to the bottom of a list. Useful > when reviewing a long list and putting the next actions in the top. Is there > a way to do that with org currently? Not heavily tested, but something like the following snippet

[O] Move to item to the bottom

2011-06-30 Thread Marcelo de Moraes Serpa
Hi list, It'd be nice if we could just send an item to the bottom of a list. Useful when reviewing a long list and putting the next actions in the top. Is there a way to do that with org currently? Cheers, M>