microsoft / microsoft/edit

Edit is hard to use in Windows containers, now using vim as default text editor

Open
#874 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

Edit is hard to use in Windows containers, now using vim as default text editor.

Actually I was kind of charmed that edit had made it to the new world of 64 bits like now a days.

Now I want to use it in Windows Containers but it standard adds the characters: "c0c " on the first line.
And when scrolling down it jumps the menu 1 character per line to the right.
This is very annoying and makes it almost not usable inside Containers.
From nostalgia point of view it would be nice to have something from back in the good old days still present.
Now adays I work much more in the command line world.

To every time needing to remove the characters on line 1, makes it unworkable for me.
It is a pitty to have move to vim as a Senior Windows DevOps Engineer, but yeah vim just works.

Image

Image

Image

Is someone eagerly motivated enough to make the "edit" tool more environment proof? And also make it work properly inside the Windows containers?
I wish I was skilled enough to make a quick fix in the code, but I am not there yet.
Maybe someone would like to collaborate?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing issue #874 in a Windows container using the edit tool and capture the terminal, encoding, and container details that produce the extra characters and scrolling offset. Read the relevant terminal-rendering and input-handling entry points once the failure is localized. Done means edit opens and scrolls correctly in the reported Windows container scenario without requiring vim or manual removal of characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.