Dear Geany devs,
I'd like to request a 'strip trailing spaces' option in the menu to be able to manually strip files of those 'byte-consuming bits of nothing' ;) ...
-H-
Harold Aling wrote:
Dear Geany devs,
I'd like to request a 'strip trailing spaces' option in the menu to be able to manually strip files of those 'byte-consuming bits of nothing' ;) ...
-H-
REQ: +1 :-D
If somebody can post a nice working sed command for the custom commands, this will be great to.
Best regards,
Jelle
On 9/17/07, Jelle de Jong jelledejong@powercraft.nl wrote:
Harold Aling wrote:
I'd like to request a 'strip trailing spaces' option in the menu to be able to manually strip files of those 'byte-consuming bits of nothing' ;) ...
If somebody can post a nice working sed command for the custom commands,
I don't know sed, but awk could be:
awk '{gsub(/[\t ]+$/, ""); print}'
- Jeff
On Mon, 17 Sep 2007 17:24:48 +0200 Jelle de Jong jelledejong@powercraft.nl wrote:
Harold Aling wrote:
Dear Geany devs,
I'd like to request a 'strip trailing spaces' option in the menu to be able to manually strip files of those 'byte-consuming bits of nothing' ;) ...
-H-
REQ: +1 :-D
I'm working on that... ETA probably tonight or tomorrow. Feel free to beat me to it :)
François
On Mon, 17 Sep 2007 17:24:48 +0200 Jelle de Jong jelledejong@powercraft.nl wrote:
Harold Aling wrote:
Dear Geany devs,
I'd like to request a 'strip trailing spaces' option in the menu to be able to manually strip files of those 'byte-consuming bits of nothing' ;) ...
-H-
REQ: +1 :-D
(Nick and Enrico added because I am not sure my messages to the list are getting through...)
The attached patch against 0.12pre (20070911) should do the trick. It works on the attached testcase file. However, it is rather crude. It is also the first time I added something to the interface (and I probably did something wrong, since I do not have the correct version of glade to generate the interface files, so I edited them by hand). Please test and report.
Best,
François Cami
On 18/09/07 00:11:46, FD Cami wrote:
On Mon, 17 Sep 2007 17:24:48 +0200 Jelle de Jong jelledejong@powercraft.nl wrote:
Harold Aling wrote:
Dear Geany devs,
I'd like to request a 'strip trailing spaces' option in the menu
to
be able to manually strip files of those 'byte-consuming bits of nothing' ;) ...
-H-
REQ: +1 :-D
(Nick and Enrico added because I am not sure my messages to the list are getting through...)
The attached patch against 0.12pre (20070911) should do the trick. It works on the attached testcase file. However, it is rather crude. It is also the first time I added something to the interface (and I probably did something wrong, since I do not have the correct version of glade to generate the interface files, so I edited them by hand). Please test and report.
I've added the menu item now in SVN. Thanks for the original patch.
Regards, Nick