New Edit command-line text editor in Windows 11 now open source



 Microsoft Dev Blogs:

What is Edit?​

Edit is a new command-line text editor in Windows. Edit is open source, so you can build the code or install the latest version from GitHub!

This CLI text editor will be available to preview in the Windows Insider Program in the coming months. After that, it will ship as part of Windows 11!

How to use Edit​

Open Edit by running edit in the command line or running edit <your-file-name>. With this, you will be able to edit files directly in the command line without context switching.

Edit.gif


What are Edit’s features?​

Edit is still in an early stage, but it has several features out of the box. Here are some highlights!

Lightweight​

Edit is a small, lightweight text editor. It is less than 250kB, which allows it to keep a small footprint in the Windows 11 image.

Mouse Mode Support​

As a modeless editor with a Text User Interface (TUI), all the menu options in Edit have keybindings (which you can see next to the menu options).

MouseModeSupport.gif


Open Multiple Files​

You can open multiple files in Edit and switch between them with Ctrl+P (or by clicking the file list on the lower-right).

MultiFileSupport.gif


Find & Replace​

You can find and replace text with Ctrl+R or select Edit > Replace in the TUI menu. There is also Match Case and Regular Expression support as well.

Replace image


Word Wrap​

Edit supports word wrapping. To use Word Wrap, you can use Alt+Z or select View > Word Wrap on the TUI menu.

WordWrapMode.gif


Why build another CLI editor?​

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. From there, we narrowed down our options…

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.

Happy Editing!​

Edit will be rolling out to the Windows Insider Program in the coming months. Edit is now open source, so you can build the code or install it from our GitHub repository.

If you have any feedback or questions, please reach out to the team on the official Edit repository!


 Source:

 
This is some cool stuff!
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion Laptop 15-cw1xxx
    CPU
    AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
    Memory
    8.00 GB
    Graphics Card(s)
    AMD Radeon(TM) Vega 8 Graphics
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor
    Screen Resolution
    1920x1080
    Hard Drives
    LITEON CV8-8E128-HP (SSD)
    WDC WD10SPZX-60Z10T0 (Hard Drive)
    PSU
    Microsoft ACPI-Compliant Control Method Battery
    Case
    Proprietary HP Pavilion Laptop 15 shell
    Cooling
    Active Fan Cooling
    Keyboard
    Standard PS/2 Keyboard
    Mouse
    ELAN Clickpad
    Internet Speed
    35.50 Mbps download 23.44 Mbps upload
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 24h2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Apple iMac "Core i5" 2.7 21.5" (Late 2012)
    CPU
    Intel® Core™ i5-3330S Processor
    Motherboard
    Ivy Bridge (LGA 1155)
    Memory
    8.00 GB DDR3 1600 MHz
    Graphics card(s)
    NVIDIA GeForce GT 640M
    Sound Card
    Cirrus Logic CS4206B (AB 90)
    Monitor(s) Displays
    Generic Monitor (iMac)
    Screen Resolution
    1920x1080
    Hard Drives
    APPLE HDD HTS541010A9E662 (Hard Drive 1TB)
    PSU
    Integrated
    Case
    iMac Aluminum Body
    Cooling
    Fan
    Keyboard
    HP SK-2085
    Mouse
    Lenovo
    Internet Speed
    90.8 Mbps download 23.4 Mbps upload
    Browser
    Google Chrome
    Antivirus
    Windows Defender
Back
Top Bottom