micro-editor / micro-editor/micro
Automatically indent files
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
Imagine that I'm editing a python file:
if somevar == "something":
The moment I press enter, it should automatically add 4 spaces (or tabs or whatever, depending on config) to the newline because python expects that.
All other editors (kate, vscode) do this by default. Maybe I'm missing something, but I don't see an option to enable it on micro.
Specifications
Commit hash: b9763856
OS: Arch Linux
Terminal: Konsole
Config:
{
"mkparents": true,
"tabstospaces": true
}
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 source files or tests. Start by reproducing the behavior in micro with a Python file and the configuration shown, then locate the editor's indentation handling entry point. Define how pressing Enter after a block-opening line should determine indentation and preserve tab settings; completion should include coverage for the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, python
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100