okibcn/nano-for-windows
关于
GNU Nano 编辑器的 Windows 版本。
开发工具可以做什么
- Interface customization: colors, key shortcuts, line numbers, infobar, scroll bar, etc...
- Syntax coloring for 47 different types of documents. It can be upgraded thanks to community support, for instance here or here you can find additional syntax files for many other document types.
- Full support for UTF-8 encoded files.
- Supplemental Unicode character support, including all the languages and emojis 😜in the CLI interface.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文This is a 64-bit/32-bit and Windows on ARM port of the legendary GNU nano text editor, a small and compact CLI editor that packs a world of functionality in a small footprint (less than 300KB). It can be run in a Windows Terminal, Powershell window, Command Prompt window, SSH session, or similar environment.
GNU nano is constantly being upgraded, but the original project is focused on providing support and functionality for Linux. This project is meant to bring the latest updates to both 64-bit and 32-bit Windows users.
Features ported to Windows
Pretty much everything is supported except for Linux-specific functions, including:
- Interface customization: colors, key shortcuts, line numbers, infobar, scroll bar, etc...
- Syntax coloring for 47 different types of documents. It can be upgraded thanks to community support, for instance here or here you can find additional syntax files for many other document types.
- Full support for UTF-8 encoded files.
- Supplemental Unicode character support, including all the languages and emojis 😜in the CLI interface.
- Multi-document editor.
- Integrated file browser.
- Mouse support for scroll and cursor location.
- Normal and regular expression (regex) search and replace.
- Auto-indent, syntax highlight and fast line comment for many programming languages.
- Line wrap, search, cut, copy & paste, and all the basic functions of any full-fledged editor.
- Data input through stdin support, from a pipe or the keyboard.
- Transparent backgrounds in Windows Terminal, and other supported environments.
- Beta native support for Windows on ARM (WoA)

Installation
The easiest way to install nano is via Scoop.
- To install Scoop, open a PowerShell terminal (version 5.1 or later) and run:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex
- Add nano for Windows directly from its bucket:
scoop bucket add .oki https://github.com/okibcn/Bucket # Optional: the changes are propagated faster this way
scoop install nano
To remove the app, type:
scoop uninstall nano
To update the app, type:
scoop update nano
Installation via direct download
Visit the releases page, and download the latest release file ending in .zip for your architecture (Windows 32, Windows 64, or Windows on Arm). Then unzip the file to a directory in your %PATH%.
Usage
This repo handles only the conversion to the Windows OS. The original GNU nano documentation covers all the usage instructions. For a quick reference, you can just press F1 within nano to open the integrated help.
The interface customization file is located in the user profile and has good descriptions of each setting. To edit it, just open a powershell terminal, and type:
nano ~/.nanorc
Notes
When using Windows Terminal and the screen is resized within nano, after returning to the shell there could be some corruption due to the new size. To fix the issue without losing the terminal history just resize the terminal window to zero lines and return to the desired size.
Feel free to open any issue you find, or use the Discussions section for any other issue, suggestion, question, etc...
探索相关项目
加载中…