I'm a fervent emacs user, and I've been recently amazed and delighted
by the simplicity and ease of use of Reftex, or more specifically
reftex-toc. It is a bit of emacs code that lets you browse through the
table of contents of a LaTeX document. For instance, if I run it on my
PhD, I get something like
[sorry, french...]
1 Introduction
1.1 Où va-t-on ?
1.2 La photosynthèse
1.2.1 Généralités
...
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say, you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
code) and you can select and go there ? I usually find myself looking
for methods more longer than I actually code, that would definitely help.
Or, at least, would that interest anyone if I tried it ?
I'm a fervent emacs user, and I've been recently amazed and delighted
by the simplicity and ease of use of Reftex, or more specifically
reftex-toc. It is a bit of emacs code that lets you browse through the
table of contents of a LaTeX document. For instance, if I run it on my
PhD, I get something like
[sorry, french...]
1 Introduction
1.1 Où va-t-on ?
1.2 La photosynthèse
1.2.1 Généralités
...
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say, you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
code) and you can select and go there ? I usually find myself looking
for methods more longer than I actually code, that would definitely help.
Or, at least, would that interest anyone if I tried it ?
Cheers,
Vincent
Well, it's not Ruby-specific, but the Leo editor has this sort of thing as its standard modus operandi. It has syntax coloring for nearly all languages, but its "native" language is Python, and it is both written in and scripted with Python. It interfaces to either Emacs or Vim as well. I was enthusiastic about it for a while, but the learning curve is rather steep for a Vim hacker like myself and the "core team" -- one person, really -- is a rapidly-moving target. Anyhow, if you're interested, it's at
Vincent Fourmond <vincent.fourmond@9online.fr> writes:
Hello !
I'm a fervent emacs user, and I've been recently amazed and delighted
by the simplicity and ease of use of Reftex, or more specifically
reftex-toc. It is a bit of emacs code that lets you browse through the
table of contents of a LaTeX document. For instance, if I run it on my
PhD, I get something like
[sorry, french...]
1 Introduction
1.1 Où va-t-on ?
1.2 La photosynthèse
1.2.1 Généralités
...
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say, you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
code) and you can select and go there ? I usually find myself looking
for methods more longer than I actually code, that would definitely help.
Or, at least, would that interest anyone if I tried it ?
Try speedbar or maybe imenu.
Or, if nothing helps, M-x occur RET ^\s-*\(class\|module\|def\)
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say, you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say, you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
On Wed, 03 Jan 2007 05:07:33 +0900, Vincent Fourmond wrote:
Ian Duggan wrote:
Vincent Fourmond wrote:
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say,
you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
Subject: Re: A reftex-like mode for ruby in emacs ?
Ian Duggan wrote:
Vincent Fourmond wrote:
I just need to select one line with the cursor, press enter, and I go
to the relevant line in the relevant file.
Does anyone know if something similar is available for Ruby ? Say,
you
have a code tree (or even a file), you press a few keys and you get an
outline, with only, say module, classes and method definitions (without
and I will second that. I only started looking at ruby a few weeks ago. Since
I'm a long time emacs user, I thought there had to be some sort of initerface
that would allow me to lookup ruby docs from within emacs with just a keystroke
or two. I figured either it already exists or I would code it myself.
A quick google found the ri-emacs project and I immediately downloaded it and
have been using it from within CVS emacs (Emacs 22). It has been very useful
and helped considerably in handling the learning curve associated with a new
language.
Thanks.
Tim
···
On Wed, 03 Jan 2007 05:07:33 +0900, Vincent Fourmond wrote:
Thanks to all of you for your answers. I've been looking around, and I
definitely will use ri-emacs, although only the command ri-show-topic
works for me. Other commands fail with
apply: Wrong type argument: stringp, io-error
I've looked at the imenu code. Although I don't like the presentation
at all, I think I can turn it into something very reftex-like, if time
is available.