emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Sparse Trees layout
@ 2009-07-30 21:13 Cian OConnor
  2009-07-31  0:10 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Cian OConnor @ 2009-07-30 21:13 UTC (permalink / raw)
  To: emacs-orgmode

What I'd like to be able to do is the following. Say I have the
following tree:
* level 1
  * level 2
    * level 3
      * level 4

Now if I go to level 3 and create a sparse tree I get this:
    * level 3
      * level 4

Which is fine and usable, but it would be nice to have the option to
have the following instead:

* level 3
  * level 4

Is this possible? I looked in the manual, but couldn't see anything.

Thanks,
Cian

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

* Re: Sparse Trees layout
  2009-07-30 21:13 Sparse Trees layout Cian OConnor
@ 2009-07-31  0:10 ` Bastien
  2009-07-31 14:22   ` Narrow tSparse " Cian OConnor
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2009-07-31  0:10 UTC (permalink / raw)
  To: Cian OConnor; +Cc: emacs-orgmode

Cian OConnor <cian.oconnor@gmail.com> writes:

> Now if I go to level 3 and create a sparse tree I get this:
>     * level 3
>       * level 4
>
> Which is fine and usable, but it would be nice to have the option to
> have the following instead:
>
> * level 3
>   * level 4

Why would you want to have this?  

I find this a bit confusing...

-- 
 Bastien

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

* Re: Narrow tSparse Trees layout
  2009-07-31  0:10 ` Bastien
@ 2009-07-31 14:22   ` Cian OConnor
  2009-07-31 14:46     ` Nick Dokos
  2009-08-02 19:17     ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Cian OConnor @ 2009-07-31 14:22 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


Oh sorry, I was using the wrong terminology. I don't mean sparse trees
at all, I meant narrow trees.

It would be nice if there was an option so that narrowed trees are
displayed without their normal indentation. So for example if narrow a
subtree at level 4, then it is displayed as a normal tree at level 1
rather than as a tree starting at level 4 as currently happens. 
Its just that when drafting papers I tend to have lots and lots of
indentation in early drafts, and while narrowing trees is a godsend, the
unnecessary (for my purposes) indentation is slightly annoying.

Cian

Bastien <bastienguerry@googlemail.com> writes:

> Cian OConnor <cian.oconnor@gmail.com> writes:
>
>> Now if I go to level 3 and create a sparse tree I get this:
>>     * level 3
>>       * level 4
>>
>> Which is fine and usable, but it would be nice to have the option to
>> have the following instead:
>>
>> * level 3
>>   * level 4
>
> Why would you want to have this?  
>
> I find this a bit confusing...

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

* Re: Narrow tSparse Trees layout
  2009-07-31 14:22   ` Narrow tSparse " Cian OConnor
@ 2009-07-31 14:46     ` Nick Dokos
  2009-08-02 19:17     ` Bastien
  1 sibling, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2009-07-31 14:46 UTC (permalink / raw)
  To: Cian OConnor; +Cc: Bastien, emacs-orgmode

Cian OConnor <cian.oconnor@gmail.com> wrote:

> 
> Oh sorry, I was using the wrong terminology. I don't mean sparse trees
> at all, I meant narrow trees.
> 
> It would be nice if there was an option so that narrowed trees are
> displayed without their normal indentation. So for example if narrow a
> subtree at level 4, then it is displayed as a normal tree at level 1
> rather than as a tree starting at level 4 as currently happens. 
> Its just that when drafting papers I tend to have lots and lots of
> indentation in early drafts, and while narrowing trees is a godsend, the
> unnecessary (for my purposes) indentation is slightly annoying.
> 

I presume you have org-hide-leading-stars set to t. If so, what looks
like indentation, is really hidden leading stars (see section 14.5 of
the manual). I am no expert but I would think that implementing what
you want would be difficult. If it really bothers you, perhaps you can
promote the tree to level 1 while you are working on it and then demote
it before widening again - I think this cure is worse than the disease,
but to each his own.

HTH,
Nick

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

* Re: Narrow tSparse Trees layout
  2009-07-31 14:22   ` Narrow tSparse " Cian OConnor
  2009-07-31 14:46     ` Nick Dokos
@ 2009-08-02 19:17     ` Bastien
  2009-08-04 13:51       ` Cian OConnor
  1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2009-08-02 19:17 UTC (permalink / raw)
  To: Cian OConnor; +Cc: emacs-orgmode

Hi Cian,

Cian OConnor <cian.oconnor@gmail.com> writes:

> It would be nice if there was an option so that narrowed trees are
> displayed without their normal indentation. So for example if narrow a
> subtree at level 4, then it is displayed as a normal tree at level 1
> rather than as a tree starting at level 4 as currently happens. 

I still would find such a display a bit confusing.

> Its just that when drafting papers I tend to have lots and lots of
> indentation in early drafts, and while narrowing trees is a godsend, the
> unnecessary (for my purposes) indentation is slightly annoying.

If the purpose of such a temporary display is to make the export render
the structure of the narrowed buffer as if it was a top-level subtree,
then I agree this is useful.  You can already achieve this by selecting
the whole narrowed subtree (with transient-mark-mode on) and exporting
the region.

But maybe a narrowed tree should be considered as a selected region by
default...  

-- 
 Bastien

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

* Re: Narrow tSparse Trees layout
  2009-08-02 19:17     ` Bastien
@ 2009-08-04 13:51       ` Cian OConnor
  2009-08-04 17:20         ` Samuel Wales
  0 siblings, 1 reply; 7+ messages in thread
From: Cian OConnor @ 2009-08-04 13:51 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bastienguerry@googlemail.com> writes:

> Hi Cian,
>> Its just that when drafting papers I tend to have lots and lots of
>> indentation in early drafts, and while narrowing trees is a godsend, the
>> unnecessary (for my purposes) indentation is slightly annoying.
>
> If the purpose of such a temporary display is to make the export render
> the structure of the narrowed buffer as if it was a top-level subtree,
> then I agree this is useful.  You can already achieve this by selecting
> the whole narrowed subtree (with transient-mark-mode on) and exporting
> the region.

Not really. Its simply a convenience method that I can probably hack for 
myself, but didn't want to if it already existed. Its simply when I'm 
drafting I tend to work in subtrees, and it becomes (for my purposes)
quite unwieldy when working with large trees (as I tend to). The indent
when I'm working with the narrowed buffer is a waste of space, and it
also makes it difficult for me to work out what level I'm working at
with a simple eyeball at the structure.

However I can quite cheerfully see that this is not something most
people would want/need.

> But maybe a narrowed tree should be considered as a selected region by
> default...  

Yes it probably should.

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

* Re: Narrow tSparse Trees layout
  2009-08-04 13:51       ` Cian OConnor
@ 2009-08-04 17:20         ` Samuel Wales
  0 siblings, 0 replies; 7+ messages in thread
From: Samuel Wales @ 2009-08-04 17:20 UTC (permalink / raw)
  To: Cian OConnor; +Cc: Bastien, emacs-orgmode

A possible workaround:

(require 'scroll-lock)
(define-key global-map [(control shift up)] 'scroll-lock-previous-line)
(define-key global-map [(control shift down)] 'scroll-lock-next-line)
(define-key global-map [(control shift right)] 'alpha-scroll-lock-next-char)
(define-key global-map [(control shift left)] 'alpha-scroll-lock-previous-char)
(defun alpha-scroll-lock-previous-char () (interactive) (scroll-right 1))
(defun alpha-scroll-lock-next-char () (interactive) (scroll-left 1))

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

end of thread, other threads:[~2009-08-04 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 21:13 Sparse Trees layout Cian OConnor
2009-07-31  0:10 ` Bastien
2009-07-31 14:22   ` Narrow tSparse " Cian OConnor
2009-07-31 14:46     ` Nick Dokos
2009-08-02 19:17     ` Bastien
2009-08-04 13:51       ` Cian OConnor
2009-08-04 17:20         ` Samuel Wales

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