#119 Trailing spaces removal

closed
nobody
None
5
2007-03-04
2007-02-28
Ilyes Gouta
No

Hi,

I would like Nedit to be able to automatically remove any trailing spaces from each line when the user saves its file. Ideally, it should be implemented as an option. This feature is already implemented in programs like Kwrite and Kate and I think it's highly useful.

Best regards,
Ilyes Gouta.

Discussion

  • Joerg Fischer
    Joerg Fischer
    2007-03-02

    Logged In: YES
    user_id=918104
    Originator: NO

    NEdit is able to do this. Simply bind

    replace("[\t\r ]+$", "", "regex")
    save()

    to Ctrl+S, cf. the online help.

     
  • Ilyes Gouta
    Ilyes Gouta
    2007-03-04

    Logged In: YES
    user_id=1353932
    Originator: YES

    Well, I didn't know about it. Thanks for the information!

    I've always underestimated those regexps. I started hacking into Nedit source code to add that feature but now you saved me a lot of hassle! :)

    Best regards,
    Ilyes Gouta.

     
  • Ilyes Gouta
    Ilyes Gouta
    2007-03-04

    • status: open --> closed