emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Smarter indent with C-j
@ 2007-03-06 11:00 Leo
       [not found] ` <b71b18520703060800s258d4727ve93bb698033ae268@mail.gmail.com>
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Leo @ 2007-03-06 11:00 UTC (permalink / raw)
  To: emacs-orgmode

Hello!

I am wondering if the following behavior is desirable.

  *** Head 1
      |
      ^ C-j should move the point here

  - Item 1
    |
    ^ C-j should move the point here

Regards,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Re: Smarter indent with C-j
       [not found] ` <b71b18520703060800s258d4727ve93bb698033ae268@mail.gmail.com>
@ 2007-03-06 16:30   ` Leo
  2007-03-06 18:44     ` Carsten Dominik
  0 siblings, 1 reply; 9+ messages in thread
From: Leo @ 2007-03-06 16:30 UTC (permalink / raw)
  To: emacs-orgmode

Hello, Eddward!

On 2007-03-06, Eddward DeVilla said:

> I would like this. 

Follow up in the mailing list would increase the chance of this
feature being implemented by Carsten ;)

> I would want to make sure it doesn't use tab characters though.  I
> already have something inserting tabs in the left margin that is
> playing merry heck with C-q and autofill.

I hate tab as well but I don't know what's the best to suggest.

> Are you thinking it would only work directly under a heading or on
> any line under a heading?

C-j can do that indent already in any mode i.e.

      Fist line
      |
      ^ C-j move the point here.

> Edd
>
> On 3/6/07, Leo <sdl.web@gmail.com> wrote:
>> Hello!
>>
>> I am wondering if the following behavior is desirable.
>>
>>   *** Head 1
>>       |
>>       ^ C-j should move the point here
>>
>>   - Item 1
>>     |
>>     ^ C-j should move the point here
>>
>> Regards,
>> --
>> Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>


regards,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Re: Smarter indent with C-j
  2007-03-06 16:30   ` Leo
@ 2007-03-06 18:44     ` Carsten Dominik
  2007-03-06 21:13       ` Eddward DeVilla
  0 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2007-03-06 18:44 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Mar 6, 2007, at 17:30, Leo wrote:

> Hello, Eddward!
>
> On 2007-03-06, Eddward DeVilla said:
>
>> I would like this.
>
> Follow up in the mailing list would increase the chance of this
> feature being implemented by Carsten ;)
>
>> I would want to make sure it doesn't use tab characters though.  I
>> already have something inserting tabs in the left margin that is
>> playing merry heck with C-q and autofill.
>
> I hate tab as well but I don't know what's the best to suggest.

(setq indent-tabs-mode nil)

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

* Re: Smarter indent with C-j
  2007-03-06 11:00 Smarter indent with C-j Leo
       [not found] ` <b71b18520703060800s258d4727ve93bb698033ae268@mail.gmail.com>
@ 2007-03-06 18:45 ` Carsten Dominik
  2007-03-07  7:48 ` Carsten Dominik
  2 siblings, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2007-03-06 18:45 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Mar 6, 2007, at 12:00, Leo wrote:

> Hello!
>
> I am wondering if the following behavior is desirable.
>
>   *** Head 1
>       |
>       ^ C-j should move the point here
>
>   - Item 1
>     |
>     ^ C-j should move the point here

Yes, I would say it is.  I'll put it on the list.

- Carsten

>
> Regards,
> -- 
> Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: Smarter indent with C-j
  2007-03-06 18:44     ` Carsten Dominik
@ 2007-03-06 21:13       ` Eddward DeVilla
  0 siblings, 0 replies; 9+ messages in thread
From: Eddward DeVilla @ 2007-03-06 21:13 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Leo

On 3/6/07, Carsten Dominik <dominik@science.uva.nl> wrote:
>
> On Mar 6, 2007, at 17:30, Leo wrote:
>
> > Hello, Eddward!
> >
> > On 2007-03-06, Eddward DeVilla said:
> >
> >> I would like this.
> >
> > Follow up in the mailing list would increase the chance of this
> > feature being implemented by Carsten ;)

I forget to hit 'reply to all' all the time.  :-)

> >> I would want to make sure it doesn't use tab characters though.  I
> >> already have something inserting tabs in the left margin that is
> >> playing merry heck with C-q and autofill.
> >
> > I hate tab as well but I don't know what's the best to suggest.
>
> (setq indent-tabs-mode nil)

Thanks!

Edd

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

* Re: Smarter indent with C-j
  2007-03-06 11:00 Smarter indent with C-j Leo
       [not found] ` <b71b18520703060800s258d4727ve93bb698033ae268@mail.gmail.com>
  2007-03-06 18:45 ` Carsten Dominik
@ 2007-03-07  7:48 ` Carsten Dominik
  2007-03-22  8:05   ` Leo
  2 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2007-03-07  7:48 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Mar 6, 2007, at 12:00, Leo wrote:

> Hello!
>
> I am wondering if the following behavior is desirable.
>
>   *** Head 1
>       |
>       ^ C-j should move the point here
>
>   - Item 1
>     |
>     ^ C-j should move the point here
>
> Regards,
> -- 
> Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)
>



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: Smarter indent with C-j
  2007-03-07  7:48 ` Carsten Dominik
@ 2007-03-22  8:05   ` Leo
       [not found]     ` <b71b18520703220848r5ab5db5w9c9ed54cccbe4ca4@mail.gmail.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Leo @ 2007-03-22  8:05 UTC (permalink / raw)
  To: emacs-orgmode

On 2007-03-07, Carsten Dominik said:

> Fixed, thanks.
>
> - Carsten

I just noticed one minor issue for check boxes. As in org 4.69:

   - [ ] Check box 1<--- C-j
     |<--- cursor moved here

I think the following is more elegant:
   - [ ] Check box 1<--- C-j
         |<--- cursor moved here

What do people think?

Best,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Re: Re: Smarter indent with C-j
       [not found]     ` <b71b18520703220848r5ab5db5w9c9ed54cccbe4ca4@mail.gmail.com>
@ 2007-03-22 16:00       ` Leo
  2007-03-25  9:40       ` Leo
  1 sibling, 0 replies; 9+ messages in thread
From: Leo @ 2007-03-22 16:00 UTC (permalink / raw)
  To: Eddward DeVilla; +Cc: emacs-orgmode


I CC the list.

On 2007-03-22, Eddward DeVilla said:

> On 3/22/07, Leo <sdl.web@gmail.com> wrote:
>> On 2007-03-07, Carsten Dominik said:
>>
>> > Fixed, thanks.
>
>> >
>> > - Carsten
>>
>> I just noticed one minor issue for check boxes. As in org 4.69:
>>
>>    - [ ] Check box 1<--- C-j
>>      |<--- cursor moved here
>>
>> I think the following is more elegant:
>>    - [ ] Check box 1<--- C-j
>>          |<--- cursor moved here
>>
>> What do people think?
>
> I tend to use the top behavior, but I do kind of the look of the second one.  How would
> you handle subcheck boxes?
>
>   - [ ] list 1
>         - [ ] list 1.1
>
> or
>
>   - [ ] list 1
>     - [ ] list 1.1
>
> Now that I think of it, this could be a little hairy for me.  Right now the behavior is
> uniform.  Always a 2 char indent (but I could live with a uniform 4 or 6 char).  But
> sometimes I do the following
>
>   - [/] list 1
>     - [ ] list 1.1
>
> The size of the [/] token can vary.  I think I'd still like it to be treated like a box
> in this case.  I guess I'd like it to indent the number of character as a checkbox
> line.  
>
> Also, how would you handle numbered lists where the indent would also change for lists
> with 10 or more items.
>
>    1) [ ] foo1
>           bar1
>    2) [ ] foo2
>           bar2
>     ...
>    10) [ ] foo10
>            bar10
>
> Sorry for some many questions.  I'm not against it.  I think I've convinced myself I'd
> I'd like a deeper indent for readability.  My just not sure what the right thing is in
> all cases.
>
> Edd

I didn't think of that many cases. But the questions are all good for
triggering a better solution. Thanks.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Re: Re: Smarter indent with C-j
       [not found]     ` <b71b18520703220848r5ab5db5w9c9ed54cccbe4ca4@mail.gmail.com>
  2007-03-22 16:00       ` Leo
@ 2007-03-25  9:40       ` Leo
  1 sibling, 0 replies; 9+ messages in thread
From: Leo @ 2007-03-25  9:40 UTC (permalink / raw)
  To: emacs-orgmode

I now find some time to think about Eddward's questions and I just
realized all those questions have little to do with what C-j should
do.

My proposed change is in common with some other outliners such as this
one: http://www.omnigroup.com/applications/omnioutliner/pro/

Any comments?

On 2007-03-22, Eddward DeVilla said:

>> I just noticed one minor issue for check boxes. As in org 4.69:
>>
>>    - [ ] Check box 1<--- C-j
>>      |<--- cursor moved here
>>
>> I think the following is more elegant:
>>    - [ ] Check box 1<--- C-j
>>          |<--- cursor moved here
>>
>> What do people think?
>
> I tend to use the top behavior, but I do kind of the look of the
> second one.  How would you handle subcheck boxes?
>
>   - [ ] list 1
>         - [ ] list 1.1
> or
>
>   - [ ] list 1
>     - [ ] list 1.1

This is not related to C-j, which stays in the same list entry or
heading.

>
> Now that I think of it, this could be a little hairy for me.  Right
>now the behavior is
> uniform.  Always a 2 char indent (but I could live with a uniform 4 or 6 char).  But
> sometimes I do the following
>
>   - [/] list 1
>     - [ ] list 1.1
>
> The size of the [/] token can vary.  I think I'd still like it to be treated like a box
> in this case.  I guess I'd like it to indent the number of character as a checkbox
> line.  

Again, not related to what C-j does.

>
> Also, how would you handle numbered lists where the indent would
>also change for lists
> with 10 or more items.
>
>    1) [ ] foo1
>           bar1
>    2) [ ] foo2
>           bar2
>     ...
>    10) [ ] foo10
>            bar10

Again not related. C-j is about aligning text.

Best,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

end of thread, other threads:[~2007-03-25  9:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 11:00 Smarter indent with C-j Leo
     [not found] ` <b71b18520703060800s258d4727ve93bb698033ae268@mail.gmail.com>
2007-03-06 16:30   ` Leo
2007-03-06 18:44     ` Carsten Dominik
2007-03-06 21:13       ` Eddward DeVilla
2007-03-06 18:45 ` Carsten Dominik
2007-03-07  7:48 ` Carsten Dominik
2007-03-22  8:05   ` Leo
     [not found]     ` <b71b18520703220848r5ab5db5w9c9ed54cccbe4ca4@mail.gmail.com>
2007-03-22 16:00       ` Leo
2007-03-25  9:40       ` Leo

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