Support for native CLI editor #20860

Closed
opened 2026-01-31 07:26:10 +00:00 by claunia · 3 comments
Owner

Originally created by @plante-msft on GitHub (Nov 20, 2023).

Description of idea

It would be helpful during everyday tasks to be able to view and edit files in Windows via CLI. Default support for nano for example.

Expected behavior

Using 'nano file.txt' opens up the file in the CLI for editing.
image

Actual behavior

Error displayed.
image

Originally created by @plante-msft on GitHub (Nov 20, 2023). # Description of idea It would be helpful during everyday tasks to be able to view and edit files in Windows via CLI. Default support for `nano` for example. # Expected behavior Using 'nano file.txt' opens up the file in the CLI for editing. ![image](https://github.com/microsoft/terminal/assets/150482134/de1dd5a4-6de8-4e49-80a1-f944726fe10e) # Actual behavior Error displayed. ![image](https://github.com/microsoft/terminal/assets/150482134/fe4a3217-abd1-448c-9832-90b0c58b7ab9)
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 07:26:10 +00:00
Author
Owner

@ghost commented on GitHub (Nov 21, 2023):

Just an outside observer here, but it looks to me like the issue isn't with terminal; it's that you don't have nano installed on your system. It's on the winget package manager too, so if your Windows install is recent, you should be able to install from there. Left panel is Powershell in Terminal before installing, right panel is after.

Screenshot 2023-11-20 211134
@ghost commented on GitHub (Nov 21, 2023): Just an outside observer here, but it looks to me like the issue isn't with terminal; it's that you don't have `nano` installed on your system. It's on the `winget` package manager too, so if your Windows install is recent, you should be able to install from there. Left panel is Powershell in Terminal before installing, right panel is after. <img width="1500" alt="Screenshot 2023-11-20 211134" src="https://github.com/microsoft/terminal/assets/122397995/79f0b880-05c6-4e75-b612-eac4a2c3b7af">
Author
Owner

@b-cpu commented on GitHub (Dec 3, 2023):

I think he's asking for a native, built-in way to edit text files in Terminal/PowerShell/CMD and may be under the impression that "nano" is a built-in command in Linux environments.

nano, however, is an optional package in Linux just as it is in Windows

@b-cpu commented on GitHub (Dec 3, 2023): I think he's asking for a native, built-in way to edit text files in Terminal/PowerShell/CMD and may be under the impression that "nano" is a built-in command in Linux environments. nano, however, is an optional package in Linux just as it is in Windows
Author
Owner

@plante-msft commented on GitHub (Dec 7, 2023):

@scanyard @b-cpu apologies for the late response to these comments. I am trying to gauge community interest in having one or more CLI text editors installed inbox and immediately available to Windows users.

Yes, nano is not a built-in command, but it does come installed by default on many distros - this is the behaviour I'm interested in gauging interest in for Windows.

I have opened up a Feature Exploration issue, and will be closing this one as a duplicate of that issue. If you have more feedback, please comment on there!

Closing as /dup #16438 .

@plante-msft commented on GitHub (Dec 7, 2023): @scanyard @b-cpu apologies for the late response to these comments. I am trying to gauge community interest in having one or more CLI text editors installed inbox and immediately available to Windows users. Yes, nano is not a built-in command, but it does come installed by default on many distros - this is the behaviour I'm interested in gauging interest in for Windows. I have opened up a Feature Exploration issue, and will be closing this one as a duplicate of that issue. If you have more feedback, please comment on there! Closing as /dup #16438 .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20860