←back to thread

Microsoft Edit

(github.com)
486 points ethanpil | 1 comments | | HN request time: 0.226s | source
Show context
anyfoo ◴[] No.44372516[source]
Fun. I must admit I don't really know who this is for, but it seems fun.
replies(5): >>44372607 #>>44372679 #>>44372736 #>>44373224 #>>44373591 #
tim-- ◴[] No.44372736[source]
It's for people that want to use the Windows Terminal to edit files. The old `edit` command has been unsupported on Windows since 2006, so there was no Microsoft-provided editor that could be used in the command line since then.

It's impressive to see how fast this editor is. https://github.com/microsoft/edit/pull/408

> By writing SIMD routines specific to newline seeking, we can bump that up [to 125GB/s]

replies(3): >>44372789 #>>44373783 #>>44376123 #
axpvms ◴[] No.44376123[source]
That's pretty handy. I was having to use bash -c "vi myfile.txt" which was a bit annoying.
replies(1): >>44379942 #
1. jcotton42 ◴[] No.44379942[source]
If you were doing that to invoke WSL, note that these days you can do `wsl command arg arg arg...`