all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Temporary code folding for navigation
@ 2013-04-24 15:39 Illya Bomash
  2013-04-24 17:09 ` Thorsten Jolitz
  0 siblings, 1 reply; 5+ messages in thread
From: Illya Bomash @ 2013-04-24 15:39 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]

Hi everyone,  

When I use org-mode, I really like org-goto: it puts me in a temporary buffer that has an overview of my file (with all the details folded away), thereby showing me the structure of the file at a glance, and lets me easily get to a particular place, using simple keys for navigation or using isearch within this temporary buffer.

I’d love to have something similar for source code, e.g. Python files:

Press a key to temporarily put me in a buffer with only the outline of my code;
Put me in a mode where I can use single keystrokes to navigate to the different locations in my code.

Do you know of any existing modes or packages that work this way?

There are a few code-outline modes that exist, but I don’t want this on the screen all the time…only when I want to jump someplace new. Hideshow is close, but it’s not meant as a “temporary” mode, and it doesn’t do anything to make navigation easier.

Any tips would be appreciated! Thanks!

Best,
Illya




[-- Attachment #2: Type: text/html, Size: 1329 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Temporary code folding for navigation
@ 2013-04-24 19:49 Illya Bomash
  2013-04-25 13:43 ` Thien-Thi Nguyen
  2013-04-25 14:14 ` Thorsten Jolitz
  0 siblings, 2 replies; 5+ messages in thread
From: Illya Bomash @ 2013-04-24 19:49 UTC (permalink / raw)
  To: tjolitz, help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]

Hi Thorsten, thanks! This looks very much in line with what I was looking for!

From what I can tell, outshine won’t just use the function definitions themselves to define structure — it specifically uses commented org-mode header lines for structure?

What I had in mind originally would just use the function definitions themselves as navigation headers (sort of like making a temporary buffer from the current imenu or ECB data), but doing it by header levels instead could be a useful way to go about it…. I’ll give it a shot!

Best,
Illya

> navi-mode.el (in combination with outshine.el and outorg.el) might give
> you exactly what you want, see this article on Worg  
>  
> ,-----------------------------------------------------------
> | http://orgmode.org/worg/org-tutorials/org-outside-org.html
> `-----------------------------------------------------------
>  
> There are screencasts available on youtube, e.g.  
>  
> ,--------------------------------------------
> | Modern conventions for Emacs Lisp files  
> | https://www.youtube.com/watch?v=nqE6YxlY0rw
> `--------------------------------------------
>  
> to give you an idea what its all about.
>  
> --  
> cheers,
> Thorsten
>  



[-- Attachment #2: Type: text/html, Size: 1680 bytes --]

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

end of thread, other threads:[~2013-04-25 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 15:39 Temporary code folding for navigation Illya Bomash
2013-04-24 17:09 ` Thorsten Jolitz
  -- strict thread matches above, loose matches on Subject: below --
2013-04-24 19:49 Illya Bomash
2013-04-25 13:43 ` Thien-Thi Nguyen
2013-04-25 14:14 ` Thorsten Jolitz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.