SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: asandler on June 11, 2009, 10:51:44 am

Title: Feature request: quickly switch between EOL format
Post by: asandler on June 11, 2009, 10:51:44 am
When switching between Windows<->Unix files, it is very useful to have an option to save the file with different EOL style. This option is already available via Save As->Line format, but I wish there was something more handy - to change EOL format for already existing file you gotta go to do save-as, change line format in save as dialog, locate original file and confirm that you want to overwrite it.

Ideally this should be a sub-menu in Document menu with three options in it - each option corresponds to certain EOL format. This will make converting between different formats much easier - choose right format and save.

Thanks!
Alex
Title: Re: Feature request: quickly switch between EOL format
Post by: kenkahn on June 11, 2009, 11:11:16 am
If you don't mind using the command line you can use the save command with the following options:

+FU Save file in UNIX ASCII format (Lines ending with just 10 character). The buffer is modified if the output file name matches the buffer name.

+FD Save file in DOS ASCII format (Lines ending with 13,10). The buffer is modified if the output file name matches the buffer name.

+FM Save file in Macintosh ASCII format (Lines ending with just 13 character). The buffer is modified if the output file name matches the buffer name.
Title: Re: Feature request: quickly switch between EOL format
Post by: kenkahn on June 11, 2009, 11:15:13 am
If you want to automate it, you can add a customized ICON to your menu bar that will automatically issue either "save +FU" or "save +FD".
Title: Re: Feature request: quickly switch between EOL format
Post by: asandler on June 11, 2009, 11:44:55 am
Seems this is exactly what I was looking for.
Thanks a lot!