micro-editor / micro-editor/micro
Single istance option
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
When we (accidentally) re-open an already existing file in micro, micro either opens it in another instance or asks us to abort etc. An option to prevent all of these would be fine. That is, I work in FILE_A and by entering micro FILE_A:10 command my cursor go directly to the line in the already existing FILE_A.
By this unassuming feature I can, for istance, use an outliner in micro as shown in the attachment I've created (by means of fzy/fzf and xdotool) just by right-clicking on the bottom window border which shows an outline of the section headings of an asciidoc(tor) file preceeded by the corresponding line numbers. By choosing the desired heading micro could bring the cursor to that point.

Specifications
Commit hash: 2.0.10
OS: Arch Linux (Fluxbox)
Terminal: xterm
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by locating micro's instance-management and file-opening entry points, then trace how FILE_A:10 is parsed; done means reopening an already open file focuses its existing instance and moves the cursor to the requested line without prompting or launching another instance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100