22 votes

Edit, new Microsoft CLI editor

12 comments

  1. [8]
    ShroudedScribe
    Link
    Seems silly at first that they just built their own version of nano, but this a fair reason:

    Seems silly at first that they just built their own version of nano, but this a fair reason:

    What motivated us to build Edit was the need for a default CLI text editor in 64-bit versions of Windows. 32-bit versions of Windows ship with the MS-DOS Edit or, but 64-bit versions do not have a CLI editor installed inbox.

    11 votes
    1. [7]
      daychilde
      Link Parent
      The only real silly thing is them calling it new. Edit was, as implied or possibly mentioned in the article, included with MS-DOS and was around under at least 32-bit Windows. So really, this...

      The only real silly thing is them calling it new. Edit was, as implied or possibly mentioned in the article, included with MS-DOS and was around under at least 32-bit Windows. So really, this feels more like a restoration of what was lost to me.

      It'll be nice to have it back.

      6 votes
      1. [6]
        donn
        Link Parent
        It's technically not the same program as edit.com, it just happens to share its name. https://github.com/microsoft/edit

        It's technically not the same program as edit.com, it just happens to share its name. https://github.com/microsoft/edit

        4 votes
        1. [5]
          daychilde
          Link Parent
          Yes, it is new, but it also fills the same role and works in nearly the same way. To me, it is the same as how Notepad or Paint or Calculator are technically new these days (I would assume), or at...

          Yes, it is new, but it also fills the same role and works in nearly the same way. To me, it is the same as how Notepad or Paint or Calculator are technically new these days (I would assume), or at least heavily changed from older versions.

          1 vote
          1. [4]
            updawg
            Link Parent
            Modern Notepad is pretty awesome because it autosaves but you don't have to actually save your notes, so you can just throw some stuff in a note in a program that opens in about half a second and...

            Modern Notepad is pretty awesome because it autosaves but you don't have to actually save your notes, so you can just throw some stuff in a note in a program that opens in about half a second and then it's just there until you delete it.

            6 votes
            1. ShroudedScribe
              Link Parent
              I've been using Notepad++ for this for long enough that I doubt I'll ever switch.

              I've been using Notepad++ for this for long enough that I doubt I'll ever switch.

              3 votes
            2. daychilde
              Link Parent
              And you can start it from CLI: (or .txt) And it'll prompt to create it if it doesn't exist. :)

              And you can start it from CLI:

              start notepad.exe somefile.bat

              (or .txt)

              And it'll prompt to create it if it doesn't exist. :)

              1 vote
            3. JCPhoenix
              Link Parent
              That's how I use Sublime Text. Good to know that Notepad also has that functionality now. In a pinch, that's handy.

              That's how I use Sublime Text. Good to know that Notepad also has that functionality now. In a pinch, that's handy.

              1 vote
  2. teaearlgraycold
    Link
    Very happy to see this. Microsoft would do very well to continue embracing developers and power users like this. Part of the rise of web apps comes from the superior development ecosystem. Any...

    Very happy to see this. Microsoft would do very well to continue embracing developers and power users like this. Part of the rise of web apps comes from the superior development ecosystem. Any time I take a peek into Windows development (even web app dev on Windows) I can see lack of care.

    4 votes
  3. Reapy
    Link
    I think this is great honestly, the more windows can start to have similar tools that are found in linux the better IMHO. We can't all choose what we work on day to day and things like microsoft...

    I think this is great honestly, the more windows can start to have similar tools that are found in linux the better IMHO. We can't all choose what we work on day to day and things like microsoft terminal, WSL, chocolatey/scoop to make the pc more command line friendly are all good things. If I think about what we have now doing windows dev vs a few years ago it is already night and day. Not to say that there aren't always some gotcha's on windows that aren't there as often on linux (for dev) it's still good to see them working at improving it.

    2 votes
  4. Akir
    Link
    Wow, they really couldn’t find a moment to proofread that, could they?

    Wow, they really couldn’t find a moment to proofread that, could they?

    1 vote
  5. updawg
    Link
    It's funny how I remember being so confused by trying to save and exit vim at first and it's been years since I've used it, but of course I'll always remember how to do it now :)

    Many of you are probably familiar with the “How do I exit vim?” meme. While it is relatively simple to learn the magic exit incantation, it’s certainly not a coincidence that this often turns up as a stumbling block for new and old programmers.

    Because we wanted to avoid this for a built-in default editor, we decided that we wanted a modeless editor for Windows (versus a modal editor where new users would have to remember different modes of operation and how to switch between them).

    This unfortunately limited our choices to a list of editors that either had no first-party support for Windows or were too big to bundle them with every version of the OS. As a result, Edit was born.

    It's funny how I remember being so confused by trying to save and exit vim at first and it's been years since I've used it, but of course I'll always remember how to do it now :)

    1 vote