Skip Navigation

An Elaborate GitHub Comment on Microsoft's new edit CLI Text Editor Asking for Simplicity and Predictability

github.com Edit produces documents with no LF/CRLF after the last line · Issue #41 · microsoft/edit

I feel like ensuring the presence of a final EOL is something a text editor is supposed to do.

Edit produces documents with no LF/CRLF after the last line · Issue #41 · microsoft/edit

The comment does well in providing context and arguments.

Lets go back to the closest thing we have for requirements for this editor..Default CLI Editor - Feature Exploration!. This discussion was based on the current state of windows and was not concerned with UNIX.

Being a simple text editor, it should not hallucinate, it should not add text one did not type, it should not change the text that was typed. If the user typed a tab character, it was because the user wanted a tab character. If you want four spaces then type four spaces.

edit should by default work like the original namesake and not hallucinate or add characters that were not typed or make assumptions.

Where do you draw the line on "smart" features? Tab should not add indent spaces? Encoding or newline mechanisms? Determining EOF newline?

12

You're viewing a single thread.

12 comments
    12 comments