emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* FR: org-hide-context
@ 2009-12-16 15:58 Adam Spiers
  2009-12-16 18:38 ` Scot Becker
  2010-01-01 10:38 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: Adam Spiers @ 2009-12-16 15:58 UTC (permalink / raw)
  To: org-mode mailing list

It would be great to have an opposite to `org-reveal' which folded all
siblings, ancestors, and maybe even all ancestors' siblings of the
current headline.  A suitable key-binding might be C-u C-u C-c C-r
or similar.

Thanks,
Adam

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

* Re: FR: org-hide-context
  2009-12-16 15:58 FR: org-hide-context Adam Spiers
@ 2009-12-16 18:38 ` Scot Becker
  2009-12-16 18:58   ` Dan Davison
  2010-01-01 10:38 ` Carsten Dominik
  1 sibling, 1 reply; 5+ messages in thread
From: Scot Becker @ 2009-12-16 18:38 UTC (permalink / raw)
  To: Adam Spiers, org-mode mailing list


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

I like that, too.


On Wed, Dec 16, 2009 at 3:58 PM, Adam Spiers <orgmode@adamspiers.org> wrote:

> It would be great to have an opposite to `org-reveal' which folded all
> siblings, ancestors, and maybe even all ancestors' siblings of the
> current headline.  A suitable key-binding might be C-u C-u C-c C-r
> or similar.
>
> Thanks,
> Adam
>
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 1006 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] 5+ messages in thread

* Re: FR: org-hide-context
  2009-12-16 18:38 ` Scot Becker
@ 2009-12-16 18:58   ` Dan Davison
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Davison @ 2009-12-16 18:58 UTC (permalink / raw)
  To: Scot Becker; +Cc: org-mode mailing list

Scot Becker <scot.becker@gmail.com> writes:

> I like that, too.
>
>
> On Wed, Dec 16, 2009 at 3:58 PM, Adam Spiers <orgmode@adamspiers.org> wrote:
>
>     It would be great to have an opposite to `org-reveal' which folded all
>     siblings, ancestors, and maybe even all ancestors' siblings of the
>     current headline.  A suitable key-binding might be C-u C-u C-c C-r
>     or similar.

Are these speed commands at all similar to what you have in mind?

***** Speed commands
#+begin_src emacs-lisp 
  (defun ded/org-show-next-heading-tidily ()
    "Show next entry, keeping other entries closed."
    (if (save-excursion (end-of-line) (outline-invisible-p))
        (progn (org-show-entry) (show-children))
      (outline-next-heading)
      (unless (and (bolp) (org-on-heading-p))
        (org-up-heading-safe)
        (hide-subtree)
        (error "Boundary reached"))
      (org-overview)
      (org-reveal t)
      (org-show-entry)
      (show-children)))
  
  (defun ded/org-show-previous-heading-tidily ()
    "Show previous entry, keeping other entries closed."
    (let ((pos (point)))
      (outline-previous-heading)
      (unless (and (< (point) pos) (bolp) (org-on-heading-p))
        (goto-char pos)
        (hide-subtree)
        (error "Boundary reached"))
      (org-overview)
      (org-reveal t)
      (org-show-entry)
      (show-children)))
  
  (setq org-use-speed-commands t)
  (add-to-list 'org-speed-commands-user
               '("n" ded/org-show-next-heading-tidily))
  (add-to-list 'org-speed-commands-user 
               '("p" ded/org-show-previous-heading-tidily))
#+end_src

Dan


>
>     Thanks,
>     Adam
>
>
>     _______________________________________________
>     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
>
>
> _______________________________________________
> 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] 5+ messages in thread

* Re: FR: org-hide-context
  2009-12-16 15:58 FR: org-hide-context Adam Spiers
  2009-12-16 18:38 ` Scot Becker
@ 2010-01-01 10:38 ` Carsten Dominik
  2010-01-01 13:21   ` Scot Becker
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2010-01-01 10:38 UTC (permalink / raw)
  To: Adam Spiers; +Cc: org-mode mailing list

Hi Adam,

I am not sure I find this useful.

to localize, I usually do

S-TAB     to hide everything
C-c C-r   to reveal the current location

Can you maybe describe a bit more what this is supposed to do and
under what circumstances you'd like to use this?

Thanks.

- Carsten

On Dec 16, 2009, at 4:58 PM, Adam Spiers wrote:

> It would be great to have an opposite to `org-reveal' which folded all
> siblings, ancestors, and maybe even all ancestors' siblings of the
> current headline.  A suitable key-binding might be C-u C-u C-c C-r
> or similar.
>
> Thanks,
> Adam
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: FR: org-hide-context
  2010-01-01 10:38 ` Carsten Dominik
@ 2010-01-01 13:21   ` Scot Becker
  0 siblings, 0 replies; 5+ messages in thread
From: Scot Becker @ 2010-01-01 13:21 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: org-mode mailing list


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

I'm not the OP, but that  works for me.  Somehow I thought I'd loose my
place when I did S-TAB.  Thanks,



On Fri, Jan 1, 2010 at 10:38 AM, Carsten Dominik
<carsten.dominik@gmail.com>wrote:

> Hi Adam,
>
> I am not sure I find this useful.
>
> to localize, I usually do
>
> S-TAB     to hide everything
> C-c C-r   to reveal the current location
>
> Can you maybe describe a bit more what this is supposed to do and
> under what circumstances you'd like to use this?
>
> Thanks.
>
> - Carsten
>
>
> On Dec 16, 2009, at 4:58 PM, Adam Spiers wrote:
>
>  It would be great to have an opposite to `org-reveal' which folded all
>> siblings, ancestors, and maybe even all ancestors' siblings of the
>> current headline.  A suitable key-binding might be C-u C-u C-c C-r
>> or similar.
>>
>> Thanks,
>> Adam
>>
>>
>> _______________________________________________
>> 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
>>
>
> - Carsten
>
>
>
>
>
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 2203 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] 5+ messages in thread

end of thread, other threads:[~2010-01-01 13:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16 15:58 FR: org-hide-context Adam Spiers
2009-12-16 18:38 ` Scot Becker
2009-12-16 18:58   ` Dan Davison
2010-01-01 10:38 ` Carsten Dominik
2010-01-01 13:21   ` Scot Becker

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