Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#42 dumb auto indent

closed
None
5
2007-03-08
2006-12-14
Péter Szabó
No

Hi!

Geany-0.9 supports two auto indent modes:

-- no auto indent
-- smart auto indent

I'd like to suggest adding a new mode:

-- dumb auto indent: when Enter is pressed, the number of spaces added to the new line will be equal (i.e. no more, no less) to the number of indenting spaces in the current line. Also, the number of spaces in a line is not changed automatically, i.e. when the user inserts `}', the editor just inserts that character, without changing the number of spaces.

Rationale: When smart auto indent is on, I always have to watch the screen carefully at every keypress, and check whether the editor has changed the indentation of the line against my will. This is so annoying that I turn smart auto indent off whenever possible. But in no auto indent mode, it is tedious to add those spaces by hand.

Discussion

  • Enrico Tröger
    Enrico Tröger
    2007-03-08

    Logged In: YES
    user_id=1117045
    Originator: NO

    Added in SVN r1373.

     
  • Enrico Tröger
    Enrico Tröger
    2007-03-08

    • assigned_to: nobody --> eht16
    • status: open --> closed