Change line separator and encoding for current file.

Are you missing a feature? Request its implementation here.
jelovirt
Posts: 84
Joined: Tue Oct 11, 2005 9:17 am
Location: Helsinki, Finland
Contact:

Change line separator and encoding for current file.

Post by jelovirt »

Is there a way to change the line separator and encoding of a text file being edited? There are global preferences for these, but can they be changed per file? If I my default line separator is Windows' CR LF and I create a new Shell file, I'd like to be able to change this to UNIX's LF.

This is a common feature in editors and many show it in the bottom status bar, along with current character and cursor location. Preferable it should be possible to change the line separator and encoding from the status bar by double clicking on the current value.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Change line separator and encoding for current file.

Post by sorin_ristache »

Hello,

Thank you for your request. We will consider allowing the user to change the line separator and the encoding at file level in a future version.


Regards,
Sorin
jelovirt
Posts: 84
Joined: Tue Oct 11, 2005 9:17 am
Location: Helsinki, Finland
Contact:

Re: Change line separator and encoding for current file.

Post by jelovirt »

You could also add option to select whether to output BOM or not, so that the status bar would be something like:

Code: Select all


UTF-8 | Unix | BOM | U+0064 | 23:41 | Modified
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Change line separator and encoding for current file.

Post by sorin_ristache »

We will consider adding the BOM too if the status bar has enough space for all these details. For example if I set a font size a little larger than default the status bar starts truncating some details.


Regards,
Sorin
Post Reply