Opened 6 years ago

Closed 6 years ago

#41 closed enhancement (fixed)

line endings

Reported by: szabgab Owned by: szabgab
Priority: major Milestone: Get Adam Kennedy on Padre
Component: editor Version:
Keywords: Cc:

Description

recognize if the file has UNIX or Windows line endings and when you save the files keep the same file endings.

Change History (3)

comment:1 Changed 6 years ago by szabgab

  • Slurp file
  • check what are the line endings, report the current endings or if they are mixed
  • convert the whole string to one type (in memory)
  • save the string to file using the selected line endings

STL has some support for different line endings

other tools are

comment:2 Changed 6 years ago by szabgab

  • Owner set to szabgab
  • Status changed from new to accepted

The user should have options (given the following line endings: UNIX, Win32, Mac, mixed)

  1. Ask for every file what to do (will be annoying pop-up) (needs conversion)
  2. Automatically change every opened and saved file to the selected line endings (needs conversion)
  3. Keep every file as it is (needs detection)
    1. In case of mixed line endings
      1. keep the garbage as it is (I am not sure this is really an option)
      2. give annoying pop-up to ask user how to convert (needs conversion)

In any case there should be a menu option to convert the file to any of the newline endings.

Provide a menu option (in search and replace ?) to fix all the files in a directory tree.

comment:3 Changed 6 years ago by szabgab

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.