[Geany-Devel] Some Auto-Indentation Ideas
rbooth at xxxxx
Thu Mar 14 18:51:14 UTC 2013
On 03/14/2013 11:00 AM, Dimitar Zhekov wrote:
> On Thu, 14 Mar 2013 09:03:40 -0700
> Roger Booth <rbooth at kabooth.com> wrote:
>> My point was that there is no need for the editor to remove whitespace
>> if the editor does not auto-generate it in the first place. That's how
>> Codewright worked, and it seemed to work better than Geany's various
> You can write a plugin that connects to Geany "key-press-event"; you
> can send anything to Scintilla using scintilla_send_message() and the
> other sci wrappers - see GeanyExtraSel for example of both.
> That seems enough to try implementing indentation via virtual space.
> Unless the plugin does really nasty hacks, or slows Geany
> significantly, it's likely to be accepted, or at least mentioned as
> link in geany.org's "Other Plugins".
The code that back-fills would have to be fixed. Currently Geany doesn't
do it correctly. With indentation set to tabs, Geany fills the virtual
space with spaces. I've suspected that for a while; this thread just now
caused me to verify. Guess its time to submit a bug report.
More information about the Devel