We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Greatnessguru
Posts: 14
Joined: Fri Jan 22, 2021 6:46 am

Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 1:08 pm

Goodbye Vim? Say Hello to Microsoft's New Text Editor Written in Rust!
https://www.youtube.com/watch?v=75cMN80IUBM

It's Open Source. The video covers building Edit on Raspberry Pi.

Can Edit come preinstalled on RPi OS alongside nano, please?

User avatar
scruss
Posts: 6519
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 1:36 pm

MS don't want you renaming the binary, and Debian/Raspberry Pi OS already has a /usr/bin/edit

This editor is nothing like the MS-DOS 'edit'. If you want one that is, use tilde:

Code: Select all

sudo apt install tilde
tilde.jpg
tilde text editor running in a terminal
tilde.jpg (49.09 KiB) Viewed 1150 times
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

Greatnessguru
Posts: 14
Joined: Fri Jan 22, 2021 6:46 am

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 2:28 pm

scruss wrote:
Wed Jun 25, 2025 1:36 pm
MS don't want you renaming the binary, and Debian/Raspberry Pi OS already has a /usr/bin/edit
MS is happy if we use "msedit" instead of "edit". Would "msedit" work?

User avatar
craigevil
Posts: 813
Joined: Wed Jan 27, 2021 5:22 am
Location: heaven

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 2:35 pm

I put it in ~/.local/bin/

Then created a bash alias:

# Microsoft Edit
alias edit="/home/craig/.local/bin/edit"

Download link: https://github.com/microsoft/edit/releases
Screenshot_2025-06-25_09-33-47.png
Screenshot_2025-06-25_09-33-47.png (46.86 KiB) Viewed 1115 times
Raspberry PI 500 Pi OS Trixie Kernel: 6.12.47-v8 Ram: 8GB DE: XFCE
Debian - "The Universal OS - One OS to Rule Them ALL"

hippy
Posts: 19516
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 2:53 pm

Pi 4B 1GB, Bookworm 32-bit.

It built, it worked, and in some respects is better than 'nano' I use on Pi and Windows, but I can't see it replacing 'nano' for me, and I would expect 'vim' users being even less enthused by it.

I can understand why Microsoft needs an in-house CLI editor they can deliver with Windows 11, having the same work on other platforms is great, choosing MIT Licensing is to be applauded, but I can't see it as being so useful I would want to see it pre-installed on a Pi.

Made available as an 'apt' package for Pi I would have no problem with.

Greatnessguru
Posts: 14
Joined: Fri Jan 22, 2021 6:46 am

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 5:14 pm

craigevil wrote:
Wed Jun 25, 2025 2:35 pm
I put it in ~/.local/bin/

Then created a bash alias:

# Microsoft Edit
alias edit="/home/craig/.local/bin/edit"

Download link: https://github.com/microsoft/edit/releases
It works! I put the edit file in my home directory, then I use: ~/edit
Thank you so much.

User avatar
thagrol
Posts: 14455
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 5:24 pm

Greatnessguru wrote:
Wed Jun 25, 2025 2:28 pm
scruss wrote:
Wed Jun 25, 2025 1:36 pm
MS don't want you renaming the binary, and Debian/Raspberry Pi OS already has a /usr/bin/edit
MS is happy if we use "msedit" instead of "edit".

Do you have a link to support that claim?
Would "msedit" work?

Technically speaking you can rename it to anything you like. Or use an alias or symlink. What matters is whether the code checks the filename or not. And, I guess, whether you're going to distribute the renamed file.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

Greatnessguru
Posts: 14
Joined: Fri Jan 22, 2021 6:46 am

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 5:40 pm

thagrol wrote:
Wed Jun 25, 2025 5:24 pm
Greatnessguru wrote:
Wed Jun 25, 2025 2:28 pm
scruss wrote:
Wed Jun 25, 2025 1:36 pm
MS don't want you renaming the binary, and Debian/Raspberry Pi OS already has a /usr/bin/edit
MS is happy if we use "msedit" instead of "edit".

Do you have a link to support that claim?
https://github.com/microsoft/edit

Notes to Package Maintainers
Package Naming

The canonical executable name is "edit" and the alternative name is "msedit". We're aware of the potential conflict of "edit" with existing commands and recommend alternatively naming packages and executables "msedit". Names such as "ms-edit" should be avoided. Assigning an "edit" alias is recommended, if possible.

Greatnessguru
Posts: 14
Joined: Fri Jan 22, 2021 6:46 am

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Wed Jun 25, 2025 5:53 pm

Official Linux executable name #341
https://github.com/microsoft/edit/discussions/341

What should be Edit's name on Linux?
msedit - 63%

User avatar
scruss
Posts: 6519
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Thu Jun 26, 2025 12:33 am

Greatnessguru wrote:
Wed Jun 25, 2025 5:53 pm
What should be Edit's name on Linux?
bah, they didn't offer a qbasic option, the cowards ...
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

ame
Posts: 11420
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Thu Jun 26, 2025 1:12 am

Greatnessguru wrote:
Wed Jun 25, 2025 5:53 pm
What should be Edit's name on Linux?
yafe
Oh no, not again.

KeithMck
Posts: 742
Joined: Thu Dec 31, 2020 10:58 am

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Thu Jun 26, 2025 9:06 am

Not needed! We have perfectly good editors already. :mrgreen:

ame
Posts: 11420
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Thu Jun 26, 2025 9:21 am

KeithMck wrote:
Thu Jun 26, 2025 9:06 am
Not needed! We have perfectly good editors already. :mrgreen:
You mean emacs, right?
Oh no, not again.

User avatar
bensimmo
Posts: 8077
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Microsoft Edit CLI editor, preinstalled alongside nano?

Thu Jun 26, 2025 10:08 am

ame wrote:
Thu Jun 26, 2025 9:21 am
KeithMck wrote:
Thu Jun 26, 2025 9:06 am
Not needed! We have perfectly good editors already. :mrgreen:
You mean emacs, right?
I think they mean PTE

https://www.bbc.co.uk/ahistoryoftheworl ... mpQScdazxQ

(At least some here...)

Return to “Advanced users”