Author Topic: Feature request: quickly switch between EOL format  (Read 2617 times)

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Feature request: quickly switch between EOL format
« 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

kenkahn

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Feature request: quickly switch between EOL format
« Reply #1 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.

kenkahn

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Feature request: quickly switch between EOL format
« Reply #2 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".

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
Re: Feature request: quickly switch between EOL format
« Reply #3 on: June 11, 2009, 11:44:55 am »
Seems this is exactly what I was looking for.
Thanks a lot!