Author Topic: [SCRIPT]: Compress / trim / remove white spaces / blanks and empty lines  (Read 1262 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Hi Alex,

we have talk about something like this before in 2009 >> http://forum.hippoedit.com/index.php/topic,124.msg419.html#msg419

but since this is always an missed feature for me which i use every day more then once
and because it would be not nifty to implement this by an script or S&R-favorites,
because i like to set several options at once, i like to suggest this again:

Compress / trim / remove white spaces / blanks and empty lines dialog.


I thinking about an dialog like


Code: [Select]
       ======== Compress white space =================

Compress white space: [ ]Left  [X]Inside [ ]Right [X]Keep one

Compress blank lines: [ ]All                      [ ]Keep one


              [All/None]       [OK]       [Cancel]




It should remember the settings.
All/none would work as an toggle: first check all options for space and the keep-one for lines, second click would clear all settings.



I think also about such three-state check boxes: Unchecked=disabled / Checked=enabled / Grey-checked=enabled-but-keep-one



EDIT
added a few screenshots how this is implemented by other editors (not complied yet ;-) )
.
« Last Edit: May 22, 2011, 10:04:09 pm by alex »
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
4421 Views
Last post May 22, 2011, 04:30:14 pm
by Stefan
3 Replies
2456 Views
Last post January 22, 2009, 03:40:27 pm
by Stefan
3 Replies
2258 Views
Last post March 25, 2009, 11:44:15 pm
by alex
0 Replies
1459 Views
Last post September 27, 2009, 07:18:54 pm
by Stefan
1 Replies
2704 Views
Last post September 27, 2009, 07:47:24 pm
by Stefan