micro-editor / micro-editor/micro

-fileformat affects help text colors, too

Open
#2,389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

First of thanks for this amazing editor! :-)

My report is a minor issue :-)
When I open a PHP script like $ micro -filetype php foobar and then type Ctrl-G the help text is hilighted also, as if it were PHP code. When I create a symlink a.php to foobar and open that $ micro a.php, the PHP code is hilighted while the help text shows as it does normally.

Specifications

micro -version yields: Version: 0.0.0-unknown
but apt install micro states it's at 2.0.1-1
Commit hash: -
OS: Windows 10
Terminal: WSL2/tmux

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with micro -filetype php foobar and Ctrl-G, then compare it with opening a symlink named a.php. Trace how the -filetype setting is applied to the editor and help text, and verify that PHP highlighting remains in the buffer while the help text keeps its normal styling.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.