[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Enhanced Ruby editor

CParticle

5/3/2007 2:45:00 PM

All,

I know this subject has been mention a few time recently but I'll ask
again and hopefully I'll be specific enough that its new.

I've been using SCITE as my main code editor. I'm not a developer
just a sysadmin so for the scripts that I use VBscript and Ruby it
fills my need and then some.

My needs listed below for the curious and to keep the alternate editor
suggestions to a minimum
* Lightweight (smaller is better)
* Cross platform (I use linux at home)
* Free
* Multiple tabs for many open files
* Handles a fair number of language for syntax highlighting
* Customizable (color schemes and added shortcuts for svn use)

Recently I was working with someone on some VBscript and I noticed a
feature that I had forgotten existed in VBscript editors. That
feature was a drop down box to switch between various functions. I
know that VBscript is different from Ruby but I was wondering if there
are any Ruby editors that have something similar to traverse class
definitions or blocks or any of the other Ruby structures.

I imagine that a person might be able to customize SCITE to add a
feature like this but aside from not knowing LUA I'm also a relative
coding and Ruby novice. So I'm asking the group if anyone has seen or
knows of something similar?

C.Particle

16 Answers

mrpink

5/3/2007 2:54:00 PM

0

CParticle wrote:
> That feature was a drop down box to switch between various functions.
>

I know this feature from borland's delphi IDE, I think you mean that if
you type behind an object a dot like: "object." You get a drop down box
with every possible method for this object. I also couldn't find
anything which works similar for ruby.

At the moment I'm just using gedit with ruby syntax-highlighting which
works fine.

I heard eclipse should be nice for ruby but in mine eyes eclipse is
slow, ugly and overloaded so at least I don't wanna use it. Maybe you
wanna risk some testing with it.



--
greets

(
)
(
/\ .-"""-. / //\\/ ,,, \//\ |/\| ,;;;;;, |/\|
//\\\;-"""-;///\ // \/ . \/ \ (| ,-_| \ | / |_-, |)
//`__\.-.-./__`\ // /.-(() ())-.\ \ (\ |) '---' (| /)
` (| |) `
jgs \) (/


one must still have chaos in oneself to be able to give birth to a
dancing star

M. Edward (Ed) Borasky

5/3/2007 3:00:00 PM

0

CParticle wrote:
> All,
>
> I know this subject has been mention a few time recently but I'll ask
> again and hopefully I'll be specific enough that its new.
>
> I've been using SCITE as my main code editor. I'm not a developer
> just a sysadmin so for the scripts that I use VBscript and Ruby it
> fills my need and then some.
>
> My needs listed below for the curious and to keep the alternate editor
> suggestions to a minimum
> * Lightweight (smaller is better)
> * Cross platform (I use linux at home)
> * Free
> * Multiple tabs for many open files
> * Handles a fair number of language for syntax highlighting
> * Customizable (color schemes and added shortcuts for svn use)
>
Almost Komodo editor -- free as in price but not as in speech,
Linux/Windows for sure, and I think MacOS and Solaris, lots of tabs and
language lexical highlighting and fairly customizable. The SVN (and CVS)
interfaces require the paid version, Komodo, which also includes the
other IDE goodies like debuggers.


Gregory Seidman

5/3/2007 3:32:00 PM

0

On Thu, May 03, 2007 at 11:45:05PM +0900, CParticle wrote:
[...]
> My needs listed below for the curious and to keep the alternate editor
> suggestions to a minimum
> * Lightweight (smaller is better)
> * Cross platform (I use linux at home)
> * Free
> * Multiple tabs for many open files
> * Handles a fair number of language for syntax highlighting
> * Customizable (color schemes and added shortcuts for svn use)

Vim fulfills all of the requirements you've listed, and it's been my editor
of choice (counting vi before vim existed) for more than a decade and a
half.

> Recently I was working with someone on some VBscript and I noticed a
> feature that I had forgotten existed in VBscript editors. That
> feature was a drop down box to switch between various functions. I
> know that VBscript is different from Ruby but I was wondering if there
> are any Ruby editors that have something similar to traverse class
> definitions or blocks or any of the other Ruby structures.
>
> I imagine that a person might be able to customize SCITE to add a
> feature like this but aside from not knowing LUA I'm also a relative
> coding and Ruby novice. So I'm asking the group if anyone has seen or
> knows of something similar?

AFAIK, Vim does not currently have a facility to do that.

> C.Particle
--Greg


CParticle

5/3/2007 3:44:00 PM

0

On May 3, 10:54 am, anansi <kaz...@oleco.net> wrote:
> CParticle wrote:
> > That feature was a drop down box to switch between various functions.
>
> I know this feature from borland's delphi IDE, I think you mean that if
> you type behind an object a dot like: "object." You get a drop down box
> with every possible method for this object. I also couldn't find
> anything which works similar for ruby.
>
> At the moment I'm just using gedit with ruby syntax-highlighting which
> works fine.
>
> I heard eclipse should be nice for ruby but in mine eyes eclipse is
> slow, ugly and overloaded so at least I don't wanna use it. Maybe you
> wanna risk some testing with it.

When I'm referring to a drop down I'm talking about a tool bar drop
down. I'm not speaking about the context sensitive drop down that
suggest all possible choices while you are typing code. What I'm
talking about is a feature that simple let you go to a particular
already written block of code. So if you have written multiple
functions in a long script it lets you select any one of those and
jump right to it instead of having to go searching through the code to
find that particular section.

CParticle

Gregory Seidman

5/3/2007 4:01:00 PM

0

On Fri, May 04, 2007 at 12:45:07AM +0900, CParticle wrote:
> On May 3, 10:54 am, anansi <kaz...@oleco.net> wrote:
> > CParticle wrote:
> > > That feature was a drop down box to switch between various functions.
> >
> > I know this feature from borland's delphi IDE, I think you mean that if
> > you type behind an object a dot like: "object." You get a drop down box
> > with every possible method for this object. I also couldn't find
> > anything which works similar for ruby.
> >
> > At the moment I'm just using gedit with ruby syntax-highlighting which
> > works fine.
> >
> > I heard eclipse should be nice for ruby but in mine eyes eclipse is
> > slow, ugly and overloaded so at least I don't wanna use it. Maybe you
> > wanna risk some testing with it.
>
> When I'm referring to a drop down I'm talking about a tool bar drop
> down. I'm not speaking about the context sensitive drop down that
> suggest all possible choices while you are typing code. What I'm
> talking about is a feature that simple let you go to a particular
> already written block of code. So if you have written multiple
> functions in a long script it lets you select any one of those and
> jump right to it instead of having to go searching through the code to
> find that particular section.

Ah, this is supported by ctags. It sounds like the kind of extension
someone would have written already for Vim. Do some searching at
http://www.vim.org/... to see if what you are looking for is already
out there.

> CParticle
--Greg


CParticle

5/3/2007 4:02:00 PM

0

On May 3, 11:00 am, "M. Edward (Ed) Borasky" <z...@cesmail.net> wrote:
> CParticle wrote:
> > All,
>
> > I know this subject has been mention a few time recently but I'll ask
> > again and hopefully I'll be specific enough that its new.
>
> > I've been using SCITE as my main code editor. I'm not a developer
> > just a sysadmin so for the scripts that I use VBscript and Ruby it
> > fills my need and then some.
>
> > My needs listed below for the curious and to keep the alternate editor
> > suggestions to a minimum
> > * Lightweight (smaller is better)
> > * Cross platform (I use linux at home)
> > * Free
> > * Multiple tabs for many open files
> > * Handles a fair number of language for syntax highlighting
> > * Customizable (color schemes and added shortcuts for svn use)
>
> Almost Komodo editor -- free as in price but not as in speech,
> Linux/Windows for sure, and I think MacOS and Solaris, lots of tabs and
> language lexical highlighting and fairly customizable. The SVN (and CVS)
> interfaces require the paid version, Komodo, which also includes the
> other IDE goodies like debuggers.

Ed,
Your right this does sound very much like Komodo at least from what I
see on their site. I'll have to make some time to try it out. You are
correct in saying that it exist for MacOS(both Intel and PowerPC) I
don't see a Solaris version though. One of the big drawbacks I see
though is that the editor by itself is a 27mb download while Scite is
under 1mb not that, that should be a real issue with todays download
speeds and drive sizes but something to consider. Like I said I will
have to look more closely at it as it does look very complete.

Thanks
C.Particle

CParticle

5/3/2007 4:10:00 PM

0

On May 3, 11:32 am, Gregory Seidman <gsslist+r...@anthropohedron.net>
wrote:
> On Thu, May 03, 2007 at 11:45:05PM +0900, CParticle wrote:
>
> [...]
>
> > My needs listed below for the curious and to keep the alternate editor
> > suggestions to a minimum
> > * Lightweight (smaller is better)
> > * Cross platform (I use linux at home)
> > * Free
> > * Multiple tabs for many open files
> > * Handles a fair number of language for syntax highlighting
> > * Customizable (color schemes and added shortcuts for svn use)
>
> Vim fulfills all of the requirements you've listed, and it's been my editor
> of choice (counting vi before vim existed) for more than a decade and a
> half.
>
> > Recently I was working with someone on some VBscript and I noticed a
> > feature that I had forgotten existed in VBscript editors. That
> > feature was a drop down box to switch between various functions. I
> > know that VBscript is different from Ruby but I was wondering if there
> > are any Ruby editors that have something similar to traverse class
> > definitions or blocks or any of the other Ruby structures.
>
> > I imagine that a person might be able to customize SCITE to add a
> > feature like this but aside from not knowing LUA I'm also a relative
> > coding and Ruby novice. So I'm asking the group if anyone has seen or
> > knows of something similar?
>
> AFAIK, Vim does not currently have a facility to do that.
>
> > C.Particle
>
> --Greg

Greg,

Thanks for you comment about VIM I have used it and currently have it
configured to do Ruby Syntax highlighting. I don't use often as I'm
mostly working from the GUI not in a shell but I do like it and the
way does some things. I do know that GVIM exists to but I've never
really been attracted to it as a GUI.

The feature I was asking about was what I was really interested in.
I'm happy with SCITE but I'm always looking at new software and I was
interested in seeing a Ruby version of that VBscript feature.

Again Thanks

CParticle

Chris Hulan

5/3/2007 4:10:00 PM

0

On May 3, 11:43 am, CParticle <cparti...@gmail.com> wrote:

> When I'm referring to a drop down I'm talking about a tool bar drop
> down. I'm not speaking about the context sensitive drop down that
> suggest all possible choices while you are typing code. What I'm
> talking about is a feature that simple let you go to a particular
> already written block of code. So if you have written multiple
> functions in a long script it lets you select any one of those and
> jump right to it instead of having to go searching through the code to
> find that particular section.
>
> CParticle

Its not a drop-down list, but its close 9^)

The free Komodo editor has a 'Find all Functions' feature under the
Code menu.
This will list all the methods and you can jump to a particular method
by simply double-clicking it in the results

You could do something similar in SciTe if you right a little script
(Ruby of course) to scan a given file for all methods and return a
list with the line number and add that to the Tool menu for Ruby
files. Maybe someone has done this?

Cheers
Chris

CParticle

5/3/2007 4:23:00 PM

0

On May 3, 12:01 pm, Gregory Seidman <gsslist+r...@anthropohedron.net>
wrote:
> On Fri, May 04, 2007 at 12:45:07AM +0900, CParticle wrote:
> > On May 3, 10:54 am, anansi <kaz...@oleco.net> wrote:
> > > CParticle wrote:
> > > > That feature was a drop down box to switch between various functions.
>
> > > I know this feature from borland's delphi IDE, I think you mean that if
> > > you type behind an object a dot like: "object." You get a drop down box
> > > with every possible method for this object. I also couldn't find
> > > anything which works similar for ruby.
>
> > > At the moment I'm just using gedit with ruby syntax-highlighting which
> > > works fine.
>
> > > I heard eclipse should be nice for ruby but in mine eyes eclipse is
> > > slow, ugly and overloaded so at least I don't wanna use it. Maybe you
> > > wanna risk some testing with it.
>
> > When I'm referring to a drop down I'm talking about a tool bar drop
> > down. I'm not speaking about the context sensitive drop down that
> > suggest all possible choices while you are typing code. What I'm
> > talking about is a feature that simple let you go to a particular
> > already written block of code. So if you have written multiple
> > functions in a long script it lets you select any one of those and
> > jump right to it instead of having to go searching through the code to
> > find that particular section.
>
> Ah, this is supported by ctags. It sounds like the kind of extension
> someone would have written already for Vim. Do some searching athttp://www.vim.org/se... see if what you are looking for is already
> out there.
>
> > CParticle
>
> --Greg

Greg,

Wow ctags seems to be it for SCITE. I did a quick search on ctags for
SCITE and there are all sorts of things out there on how to set it
up. I'll have to look into how to get that to work. Its probably not
as pretty as editor integrated feature I was looking at but it seems
to be the right functionality. Thanks again.

C.Particle

CParticle

5/3/2007 4:26:00 PM

0

On May 3, 12:10 pm, ChrisH <chris.hu...@gmail.com> wrote:
> On May 3, 11:43 am, CParticle <cparti...@gmail.com> wrote:
>
> > When I'm referring to a drop down I'm talking about a tool bar drop
> > down. I'm not speaking about the context sensitive drop down that
> > suggest all possible choices while you are typing code. What I'm
> > talking about is a feature that simple let you go to a particular
> > already written block of code. So if you have written multiple
> > functions in a long script it lets you select any one of those and
> > jump right to it instead of having to go searching through the code to
> > find that particular section.
>
> > CParticle
>
> Its not a drop-down list, but its close 9^)
>
> The free Komodo editor has a 'Find all Functions' feature under the
> Code menu.
> This will list all the methods and you can jump to a particular method
> by simply double-clicking it in the results
>
> You could do something similar in SciTe if you right a little script
> (Ruby of course) to scan a given file for all methods and return a
> list with the line number and add that to the Tool menu for Ruby
> files. Maybe someone has done this?
>
> Cheers
> Chris

I think this is similar to ctags in SciTe that Greg's post led me to.
Here is a link to a wiki about it.
http://lua-users.org/wiki...
C.Particle