{"id":13398911,"url":"https://github.com/zyedidia/micro","last_synced_at":"2025-05-12T18:30:33.961Z","repository":{"id":37492969,"uuid":"53632140","full_name":"zyedidia/micro","owner":"zyedidia","description":"A modern and intuitive terminal-based text editor","archived":false,"fork":false,"pushed_at":"2025-05-05T00:25:54.000Z","size":13580,"stargazers_count":26059,"open_issues_count":951,"forks_count":1209,"subscribers_count":269,"default_branch":"master","last_synced_at":"2025-05-05T15:56:21.229Z","etag":null,"topics":["command-line","cross-platform","editor","go","golang","micro","terminal","text-editor"],"latest_commit_sha":null,"homepage":"https://micro-editor.github.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyedidia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-11T02:06:28.000Z","updated_at":"2025-05-05T15:22:41.000Z","dependencies_parsed_at":"2024-01-17T09:33:58.587Z","dependency_job_id":"910d6902-0b9d-4d4d-9df8-85cef400c501","html_url":"https://github.com/zyedidia/micro","commit_stats":{"total_commits":2530,"total_committers":331,"mean_commits":7.643504531722054,"dds":0.3529644268774703,"last_synced_commit":"dd913df9e9b92bebeac26b22068cc30ffe1f8804"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyedidia%2Fmicro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyedidia%2Fmicro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyedidia%2Fmicro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyedidia%2Fmicro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyedidia","download_url":"https://codeload.github.com/zyedidia/micro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253797826,"owners_count":21965968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","cross-platform","editor","go","golang","micro","terminal","text-editor"],"created_at":"2024-07-30T19:00:32.663Z","updated_at":"2025-05-12T18:30:33.910Z","avatar_url":"https://github.com/zyedidia.png","language":"Go","readme":"\u003cimg alt=\"micro logo\" src=\"./assets/micro-logo-drop.svg\" width=\"500px\"/\u003e\n\n![Test Workflow](https://github.com/zyedidia/micro/actions/workflows/test.yaml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zyedidia/micro)](https://goreportcard.com/report/github.com/zyedidia/micro)\n[![Release](https://img.shields.io/github/release/zyedidia/micro.svg?label=Release)](https://github.com/zyedidia/micro/releases)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zyedidia/micro/blob/master/LICENSE)\n[![Join the chat at https://gitter.im/zyedidia/micro](https://badges.gitter.im/zyedidia/micro.svg)](https://gitter.im/zyedidia/micro?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Snap Status](https://snapcraft.io/micro/badge.svg)](https://snapcraft.io/micro)\n\n**micro** is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the capabilities\nof modern terminals. It comes as a single, batteries-included, static binary with no dependencies; you can download and use it right now!\n\nAs its name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use.\nIt strives to be enjoyable as a full-time editor for people who prefer to work in a terminal, or those who regularly edit files over SSH.\n\nHere is a picture of micro editing its source code.\n\n![Screenshot](./assets/micro-solarized.png)\n\nTo see more screenshots of micro, showcasing some of the default color schemes, see [here](https://micro-editor.github.io).\n\nYou can also check out the website for Micro at https://micro-editor.github.io.\n\n- - -\n\n## Features\n\n- Easy to use and install.\n- No dependencies or external files are needed — just the binary you can download further down the page.\n- Multiple cursors.\n- Common keybindings (\u003ckbd\u003eCtrl-s\u003c/kbd\u003e, \u003ckbd\u003eCtrl-c\u003c/kbd\u003e, \u003ckbd\u003eCtrl-v\u003c/kbd\u003e, \u003ckbd\u003eCtrl-z\u003c/kbd\u003e, …).\n  - Keybindings can be rebound to your liking.\n- Sane defaults.\n  - You shouldn't have to configure much out of the box (and it is extremely easy to configure).\n- Splits and tabs.\n- nano-like menu to help you remember the keybindings.\n- Extremely good mouse support.\n  - This means mouse dragging to create a selection, double click to select by word, and triple click to select by line.\n- Cross-platform (it should work on all the platforms Go runs on).\n  - Note that while Windows is supported, Mingw/Cygwin is not (see below).\n- Plugin system (plugins are written in Lua).\n  - micro has a built-in plugin manager to automatically install, remove, and update plugins.\n- Built-in diff gutter.\n- Simple autocompletion.\n- Persistent undo.\n- Automatic linting and error notifications.\n- Syntax highlighting for over [130 languages](runtime/syntax).\n- Color scheme support.\n  - By default, micro comes with 16, 256, and true color themes.\n- True color support (set the `MICRO_TRUECOLOR` environment variable to 1 to enable it).\n- Copy and paste with the system clipboard.\n- Small and simple.\n- Easily configurable.\n- Macros.\n- Smart highlighting of trailing whitespace and tab vs space errors.\n- Common editor features such as undo/redo, line numbers, Unicode support, soft wrapping, …\n\n## Installation\n\nTo install micro, you can download a [prebuilt binary](https://github.com/zyedidia/micro/releases), or you can build it from source.\n\nIf you want more information about ways to install micro, see this [wiki page](https://github.com/zyedidia/micro/wiki/Installing-Micro).\n\nUse `micro -version` to get the version information after installing. It is only guaranteed that you are installing the most recent\nstable version if you install from the prebuilt binaries, Homebrew, or Snap.\n\nA desktop entry file and man page can be found in the [assets/packaging](https://github.com/zyedidia/micro/tree/master/assets/packaging) directory.\n\n### Pre-built binaries\n\nPre-built binaries are distributed in [releases](https://github.com/zyedidia/micro/releases).\n\nTo uninstall micro, simply remove the binary, and the configuration directory at `~/.config/micro`.\n\n#### Third-party quick-install script\n\n```bash\ncurl https://getmic.ro | bash\n```\n\nThe script will place the micro binary in the current directory. From there, you can move it to a directory on your path of your choosing (e.g. `sudo mv micro /usr/bin`). See its [GitHub repository](https://github.com/benweissmann/getmic.ro) for more information.\n\n#### Eget\n\nWith [Eget](https://github.com/zyedidia/eget) installed, you can easily get a pre-built binary:\n\n```\neget zyedidia/micro\n```\n\nUse `--tag VERSION` to download a specific tagged version.\n\n```\neget --tag nightly zyedidia/micro # download the nightly version (compiled every day at midnight UTC)\neget --tag v2.0.8 zyedidia/micro  # download version 2.0.8 rather than the latest release\n```\n\nYou can install `micro` by adding `--to /usr/local/bin` to the `eget` command, or move the binary manually to a directory on your `$PATH` after the download completes.\n\nSee [Eget](https://github.com/zyedidia/eget) for more information.\n\n### Package managers\n\nYou can install micro using Homebrew on Mac:\n\n```\nbrew install micro\n```\n\n**Note for Mac:** All micro keybindings use the control or alt (option) key, not the command\nkey. By default, macOS terminals do not forward alt key events. To fix this, please see\nthe section on [macOS terminals](https://github.com/zyedidia/micro#macos-terminal) further below.\n\nOn Linux, you can install micro through [snap](https://snapcraft.io/docs/core/install)\n\n```\nsnap install micro --classic\n```\n\nMicro is also available through other package managers on Linux such as dnf, AUR, Nix, and package managers\nfor other operating systems. These packages are not guaranteed to be up-to-date.\n\n\u003c!-- * `apt install micro` (Ubuntu 20.04 `focal`, and Debian `unstable | testing | buster-backports`). At the moment, this package (2.0.1-1) is outdated and has a known bug where debug mode is enabled. --\u003e\n\n* Linux:\n    * distro-specific package managers:\n        * `dnf install micro` (Fedora).\n        * `apt install micro` (Ubuntu and Debian).\n        * `pacman -S micro` (Arch Linux).\n        * `emerge app-editors/micro` (Gentoo).\n        * `zypper install micro-editor` (SUSE)\n        * `eopkg install micro` (Solus).\n        * `pacstall -I micro` (Pacstall).\n        * `apt-get install micro` (ALT Linux)\n        * See [wiki](https://github.com/zyedidia/micro/wiki/Installing-Micro) for details about CRUX, Termux.\n    * distro-agnostic package managers:\n        * `nix profile install nixpkgs#micro` (with [Nix](https://nixos.org/) and flakes enabled)\n        * `flox install micro` (with [Flox](https://flox.dev))\n* Windows: [Chocolatey](https://chocolatey.org), [Scoop](https://scoop.sh/) and [WinGet](https://learn.microsoft.com/en-us/windows/package-manager/winget/).\n    * `choco install micro`.\n    * `scoop install micro`.\n    * `winget install zyedidia.micro`\n* OpenBSD: Available in the ports tree and also available as a binary package.\n    * `pkg_add -v micro`.\n* NetBSD, macOS, Linux, Illumos, etc. with [pkgsrc](http://www.pkgsrc.org/)-current:\n    * `pkg_add micro`\n* macOS: Available in package managers.\n    * `sudo port install micro` (with [MacPorts](https://www.macports.org))\n    * `brew install micro` (with [Homebrew](https://brew.sh/))\n    * `nix profile install nixpkgs#micro` (with [Nix](https://nixos.org/) and flakes enabled)\n    * `flox install micro` (with [Flox](https://flox.dev))\n\n**Note for Linux desktop environments:**\n\nFor interfacing with the local system clipboard, the following tools need to be installed:\n* For X11, `xclip` or `xsel`\n* For [Wayland](https://wayland.freedesktop.org/), `wl-clipboard`\n\nWithout these tools installed, micro will use an internal clipboard for copy and paste, but it won't be accessible to external applications.\n\n### Building from source\n\nIf your operating system does not have a binary release, but does run Go, you can build from source.\n\nMake sure that you have Go version 1.19 or greater and Go modules are enabled.\n\n```\ngit clone https://github.com/zyedidia/micro\ncd micro\nmake build\nsudo mv micro /usr/local/bin # optional\n```\n\nThe binary will be placed in the current directory and can be moved to\nanywhere you like (for example `/usr/local/bin`).\n\nThe command `make install` will install the binary to `$GOPATH/bin` or `$GOBIN`.\n\nYou can install directly with `go get` (`go get github.com/zyedidia/micro/cmd/micro`) but this isn't\nrecommended because it doesn't build micro with version information (necessary for the plugin manager),\nand doesn't disable debug mode.\n\n### Fully static or dynamically linked binary\n\nBy default, the micro binary is linked statically to increase the portability of the prebuilt binaries.\nThis behavior can simply be overriden by providing `CGO_ENABLED=1` to the build target.\n\n```\nCGO_ENABLED=1 make build\n```\n\nAfterwards the micro binary will dynamically link with the present core system libraries.\n\n**Note for Mac:**\nNative macOS builds are done with `CGO_ENABLED=1` forced set to support adding the \"Information Property List\" in the linker step.\n\n### macOS terminal\n\nIf you are using macOS, you should consider using [iTerm2](http://iterm2.com/) instead of the default terminal (Terminal.app). The iTerm2 terminal has much better mouse support as well as better handling of key events. For best keybinding behavior, choose `xterm defaults` under `Preferences-\u003eProfiles-\u003eKeys-\u003ePresets...`, and select `Esc+` for `Left Option Key` in the same menu. The newest versions also support true color.\n\nIf you still insist on using the default Mac terminal, be sure to set `Use Option key as Meta key` under\n`Preferences-\u003eProfiles-\u003eKeyboard` to use \u003ckbd\u003eoption\u003c/kbd\u003e as \u003ckbd\u003ealt\u003c/kbd\u003e.\n\n### WSL and Windows Console\n\nIf you use micro within WSL, it is highly recommended that you use the [Windows\nTerminal](https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-us\u0026gl=us)\ninstead of the default Windows Console.\n\nIf you must use Windows Console for some reason, note that there is a bug in\nWindows Console WSL that causes a font change whenever micro tries to access\nthe external clipboard via powershell. To fix this, use an internal clipboard\nwith `set clipboard internal` (though your system clipboard will no longer be\navailable in micro).\n\n### Colors and syntax highlighting\n\nIf you open micro and it doesn't seem like syntax highlighting is working, this is probably because\nyou are using a terminal which does not support 256 color mode. Try changing the color scheme to `simple`\nby pressing \u003ckbd\u003eCtrl-e\u003c/kbd\u003e in micro and typing `set colorscheme simple`.\n\nIf you are using the default Ubuntu terminal, to enable 256 color mode make sure your `TERM` variable is set\nto `xterm-256color`.\n\nMany of the Windows terminals don't support more than 16 colors, which means\nthat micro's default color scheme won't look very good. You can either set\nthe color scheme to `simple`, or download and configure a better terminal emulator\nthan the Windows default.\n\n### Cygwin, Mingw, Plan9\n\nCygwin, Mingw, and Plan9 are unfortunately not officially supported. In Cygwin and Mingw, micro will often work when run using\nthe `winpty` utility:\n\n```\nwinpty micro.exe ...\n```\n\nMicro uses the amazing [tcell library](https://github.com/gdamore/tcell), but this\nmeans that micro is restricted to the platforms tcell supports. As a result, micro does not support\nPlan9 or Cygwin (although this may change in the future). Micro also doesn't support NaCl (which is deprecated anyway).\n\n## Usage\n\nOnce you have built the editor, start it by running `micro path/to/file.txt` or `micro` to open an empty buffer.\n\nmicro also supports creating buffers from `stdin`:\n\n```sh\nip a | micro\n```\n\nYou can move the cursor around with the arrow keys and mouse.\n\nYou can also use the mouse to manipulate the text. Simply clicking and dragging\nwill select text. You can also double click to enable word selection, and triple\nclick to enable line selection.\n\n## Documentation and Help\n\nmicro has a built-in help system which you can access by pressing \u003ckbd\u003eCtrl-e\u003c/kbd\u003e and typing `help`. Additionally, you can\nview the help files here:\n\n- [main help](https://github.com/zyedidia/micro/tree/master/runtime/help/help.md)\n- [keybindings](https://github.com/zyedidia/micro/tree/master/runtime/help/keybindings.md)\n- [commands](https://github.com/zyedidia/micro/tree/master/runtime/help/commands.md)\n- [colors](https://github.com/zyedidia/micro/tree/master/runtime/help/colors.md)\n- [options](https://github.com/zyedidia/micro/tree/master/runtime/help/options.md)\n- [plugins](https://github.com/zyedidia/micro/tree/master/runtime/help/plugins.md)\n\nI also recommend reading the [tutorial](https://github.com/zyedidia/micro/tree/master/runtime/help/tutorial.md) for\na brief introduction to the more powerful configuration features micro offers.\n\nThere is also an unofficial Discord, which you can join at https://discord.gg/nhWR6armnR.\n\n## Contributing\n\nIf you find any bugs, please report them! I am also happy to accept pull requests from anyone.\n\nYou can use the [GitHub issue tracker](https://github.com/zyedidia/micro/issues)\nto report bugs, ask questions, or suggest new features.\n\nFor a more informal setting to discuss the editor, you can join the [Gitter chat](https://gitter.im/zyedidia/micro) or the [Discord](https://discord.gg/nhWR6armnR). You can also use the [Discussions](https://github.com/zyedidia/micro/discussions) section on Github for a forum-like setting or for Q\u0026A.\n\nSometimes I am unresponsive, and I apologize! If that happens, please ping me.\n","funding_links":[],"categories":["Go","Popular","Development","开源类库","Text Editors","Applications","其它","Open source library","Go Tools and Frameworks","Terminal","Editor","Ports and Programs","Go Tools","语言资源库","编辑器","Tools","golang","Programming Languages","text-editor","工具","Text editors","CLI Utilities","\u003ca name=\"editors\"\u003e\u003c/a\u003eEditors","Editor Support","terminal","Table of Contents","\\*nix/\\*nux","Uncategorized"],"sub_categories":["Text Editors","编辑器","Windows","Editors","Apps and Tools","Interfaces","go","网络服务_其他","Go","📝 Editors (4)","E-Books","Mesh networks","JavaScript Libraries for Machine Learning","客户端工具","End to End Testing","Text Editor","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyedidia%2Fmicro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyedidia%2Fmicro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyedidia%2Fmicro/lists"}