[Geany-Users] Ruby indent not working

Colomban Wendling lists.ban at herbesfolles.org
Thu Jan 17 21:42:24 UTC 2013


Le 17/01/2013 21:28, Lex Trotman a écrit :
> On 17 January 2013 23:02, Sayth Renshaw <flebber.crue at gmail.com> wrote:
>> Hi
>>
>> [...]
>>
>> Not sure if I have missed something Ruby specific
> 
> Hi,
> 
> Well, sort of, or rather Geany has missed something, Ruby specific
> support for indenting :)
> 
> Geany autoindent is almost language independent, it knows how to:
> 
> 1. go to the same indent as last line
> 2. indent and unindent on { and }
> 3. as a special case only, indent on : in Python
> 
> None of these will work for Ruby IIUC.
> 
> What it needs is for someone to specify the algorithm, and to provide
> a plugin that implements it (such language specific stuff shouldn't be
> in core)

No, I think that what's needed is a configurable indentation thing, like
what Jiří and I somewhat started at different times, but didn't finish
for some reasons.  I (or somebody else ;)) should get back on that
subject and try to get something working for real, Geany's
auto-indenting is useless in most non-brace language (but Python as you
noted), which is sad.

Cheers,
Colomban


More information about the Users mailing list