I need to fold the code so that I can get a handle on the overall structure;
basically to tidy up and and move whole public methods into protected or
private sections, that sort of thing.
I've tried browsing the code in Kate (xemacs is my usual home) which supports
folding of ruby code. But it's folding is very buggy and I seem to lose whole
portions of a file into a fold without warning. I can't find any good folding
solutions for xemacs. What about vim, or other open source editors (for
linux)?
Vim is excellent at folding (along with pretty much everything else).
You can fold by any number of methods, including indent, marker,
expression, syntax, diff-style, or even manual... Give it a shot if
you're not too die-hard with emacs.
Tom
···
* On Apr 25 6:46, Andrew Walrond (ruby-talk@ruby-lang.org) wrote:
What about vim, or other open source editors (for linux)?
I need to fold the code so that I can get a handle on the overall structure;
basically to tidy up and and move whole public methods into protected or
private sections, that sort of thing.
I've tried browsing the code in Kate (xemacs is my usual home) which supports
folding of ruby code. But it's folding is very buggy and I seem to lose whole
portions of a file into a fold without warning. I can't find any good folding
solutions for xemacs. What about vim, or other open source editors (for
linux)?
It not only does code folding, but also has a source browser - a clickable tree control that let's you see and navigate your ruby code by its structure (module/class/method). It also has interactive Ruby documentation.
Best of all, it written entirely in Ruby and is open source!
I need to fold the code so that I can get a handle on the overall structure; basically to tidy up and and move whole public methods into protected or private sections, that sort of thing.
Recommendations?
jEdit with the Ruby plug in does this quite well. There's other folding options like by-indentation as well.
I need to fold the code so that I can get a handle on the overall structure; basically to tidy up and and move whole public methods into protected or private sections, that sort of thing.
I've tried browsing the code in Kate (xemacs is my usual home) which supports folding of ruby code. But it's folding is very buggy and I seem to lose whole portions of a file into a fold without warning. I can't find any good folding solutions for xemacs. What about vim, or other open source editors (for linux)?
Recommendations?
SciTE does folding quite well (especially if you get the more rubyish lexers, the old one did some strange pythonic things).
What version of Kate/KDE are you using?
If you can show me specific code snippets for which syntax highlighting or
code folding fails, I can probably correct them.
Stefan
···
On Sunday 24 April 2005 23:46, Andrew Walrond wrote:
I need to fold the code so that I can get a handle on the overall
structure; basically to tidy up and and move whole public methods into
protected or private sections, that sort of thing.
I've tried browsing the code in Kate (xemacs is my usual home) which
supports folding of ruby code. But it's folding is very buggy and I seem to
lose whole portions of a file into a fold without warning. I can't find any
good folding solutions for xemacs. What about vim, or other open source
editors (for linux)?
I need to fold the code so that I can get a handle on the overall structure;
basically to tidy up and and move whole public methods into protected or
private sections, that sort of thing.
I've tried browsing the code in Kate (xemacs is my usual home) which supports
folding of ruby code. But it's folding is very buggy and I seem to lose whole
portions of a file into a fold without warning. I can't find any good folding
solutions for xemacs. What about vim, or other open source editors (for
linux)?
Recommendations?
After some playing around with various of the more graphically
oriented IDEs, kdevelop is currently my favourite for Linux use.
I have never been much for VIm or Emacs, although I should
probably learn them, huh?
As a matter of principle I would also like to plug Mondrian,
a pure-ruby IDE with a bunch of promise (albeit no folding).
Will folding enable you to finish Heretix faster?
Andrew Walrond
E
···
Le 24/4/2005, "Andrew Walrond" <andrew@walrond.org> a écrit:
On Sunday 24 April 2005 22:54, Thomas Kirchner wrote:
Vim is excellent at folding (along with pretty much everything else).
You can fold by any number of methods, including indent, marker,
expression, syntax, diff-style, or even manual... Give it a shot if
you're not too die-hard with emacs.
Tom
I'll mail you the offending file off-list (because its too big for the ML, not
because its confidential)
Andrew
···
On Monday 25 April 2005 14:14, Stefan Lang wrote:
What version of Kate/KDE are you using?
If you can show me specific code snippets for which syntax highlighting or
code folding fails, I can probably correct them.
Any online places that discuss vim folding? Or general vim tips, for
that matter?
···
On 4/24/05, Thomas Kirchner <lists@halffull.org> wrote:
* On Apr 25 6:46, Andrew Walrond (ruby-talk@ruby-lang.org) wrote:
> What about vim, or other open source editors (for linux)?
>
> Recommendations?
Vim is excellent at folding (along with pretty much everything else).
You can fold by any number of methods, including indent, marker,
expression, syntax, diff-style, or even manual... Give it a shot if
you're not too die-hard with emacs.
Vim is *awesome* at folding. And *awesome* at everything else I have tried so
far. I wish I had spent a day learning vim _years_ ago.
Its a bit like snow-boarding; I put off learning for ages (because I didn't
want to waste a holiday) But I haven't put on skis since I tried it
_Sincere_ thanks for the recommendation!
Andrew Walrond
···
On Sunday 24 April 2005 22:54, Thomas Kirchner wrote:
* On Apr 25 6:46, Andrew Walrond (ruby-talk@ruby-lang.org) wrote:
> What about vim, or other open source editors (for linux)?
>
> Recommendations?
Vim is excellent at folding (along with pretty much everything else).
You can fold by any number of methods, including indent, marker,
expression, syntax, diff-style, or even manual... Give it a shot if
you're not too die-hard with emacs.
Tom
Vim is excellent at folding (along with pretty much everything else).
You can fold by any number of methods, including indent, marker,
expression, syntax, diff-style, or even manual... Give it a shot if
you're not too die-hard with emacs.
Tom
Vim fell at the first hurdle; syntax colouring/highlighting
It seems unhappy with IO#<< unless I put some spaces around it; Try the attached file.
The syntax highlighting engine parses the line
f<<stdin
as the beginning of a Here Document. This would go away if you
put a space after the << (makes the code more readable too IMO).
As a fix (especially if you don't use Here Documents anyway) you
can comment out the lines in the Here Document section of the
ruby.vim file; actually, commenting out only the first line there,
(the one containing the expression '<<\z' (without the quotes))
should work too.
HTH,
Michael
···
On Sunday 24 April 2005 22:54, Thomas Kirchner wrote:
--
Michael Ulm
R&D Team
ISIS Information Systems Austria
tel: +43 2236 27551-219, fax: +43 2236 21081
e-mail: michael.ulm@isis-papyrus.com
Visit our Website: www.isis-papyrus.com
On 4/24/05, Thomas Kirchner <lists@halffull.org> wrote:
* On Apr 25 6:46, Andrew Walrond (ruby-talk@ruby-lang.org) wrote:
What about vim, or other open source editors (for linux)?
Recommendations?
Vim is excellent at folding (along with pretty much everything else).
You can fold by any number of methods, including indent, marker,
expression, syntax, diff-style, or even manual... Give it a shot if
you're not too die-hard with emacs.
Any online places that discuss vim folding? Or general vim tips, for
that matter?
Question: folding is available in emacs for other languages. Is there a
reason its not in ruby-mode?
···
On 4/26/05, Andrew Walrond <andrew@walrond.org> wrote:
On Sunday 24 April 2005 22:54, Thomas Kirchner wrote:
> * On Apr 25 6:46, Andrew Walrond (ruby-talk@ruby-lang.org) wrote:
> > What about vim, or other open source editors (for linux)?
> >
> > Recommendations?
>
> Vim is excellent at folding (along with pretty much everything else).
> You can fold by any number of methods, including indent, marker,
> expression, syntax, diff-style, or even manual... Give it a shot if
> you're not too die-hard with emacs.
> Tom
Vim is *awesome* at folding. And *awesome* at everything else I have tried
so
far. I wish I had spent a day learning vim _years_ ago.
Its a bit like snow-boarding; I put off learning for ages (because I
didn't
want to waste a holiday) But I haven't put on skis since I tried it
Vim is *awesome* at folding. And *awesome* at everything else I have
tried so far. I wish I had spent a day learning vim _years_ ago.
I wish I could un-spend the time I had to use emacs years ago (just
kidding, I don't intend to start an editor war!)
If it's possible for a text editor to be life changing, that's vim. Want
to know the best part? It just keeps getting better as you learn more
and more about it. The sad thing is I've had trouble with lots of other
programs when I hit escape after entering text. It seems they're not
smart enough for vi-syntax.
I guess my only (very minor) complaint is that the ruby syntax isn't
*quite* perfect yet, but it's darn good.
Its a bit like snow-boarding; I put off learning for ages (because I
didn't want to waste a holiday) But I haven't put on skis since I tried
it
Now that's something still on my todo list... I've been a skier for
years, and my wife really wants to take up snowboarding. And seeing as
it's only April, we've got another good month of snow in line for my
area!
_Sincere_ thanks for the recommendation!
No problem. Oh, and in a few days, you may come to like how your wrists
feel, too... emacs is painful.
Tom
···
* On Apr 27 0:01, Andrew Walrond (ruby-talk@ruby-lang.org) wrote:
But I climbed back on, charged around aintree and won the national by a
nose...
I spent a few hours feeling like somebody had chopped my arms off, but now I'm
getting to grips with vims modal system. I _really_ like vim's syntax based
folding mechanism (set foldmethod=syntax).
For that feature alone, I think vim might just become my editor of choice.
Graphical only editors and IDEs are great, but a significant amount of my work
is done via ssh, so I really need an editor that works well in both
environments.
Andrew
···
On Monday 25 April 2005 13:07, Michael Ulm wrote:
Andrew Walrond wrote:
>
> Vim fell at the first hurdle; syntax colouring/highlighting
Question: folding is available in emacs for other languages. Is there a
reason its not in ruby-mode?
Not like this its not (at least not as far as I have managed to find).
This command
:set foldmethod=syntax
does the magic. Now edit a ruby file and it is loaded up fully folded,
with real easy fold manipulation commands (zo - fold close, zo - fold open,
etc.)
You can even save the state of your folds (or several states) and reload
at will.
I am _seriously_ impressed.
···
On Tuesday 26 April 2005 16:06, Kelly Felkins wrote:
I've also found a couple little problems with the syntax parser. Very minor
though. Have you tried emailing the maintainer? Know if he/she is still
active?
Andrew
···
On Tuesday 26 April 2005 20:51, Thomas Kirchner wrote:
I guess my only (very minor) complaint is that the ruby syntax isn't
*quite* perfect yet, but it's darn good.