Skip to content

Bug: when manually running set filetype <type>, micro should reload appropriate settings from the config file for that type, but it doesn't #2712

@ElectricRCAircraftGuy

Description

@ElectricRCAircraftGuy

Description of the problem or steps to reproduce

Use this config file:

~/.config/micro/settings.json:

{
    "*.md": {
        "softwrap": true
    },
    "colorcolumn": 80,
    "colorscheme": "monokai",
    "savecursor": true,
    "scrollbar": true,
    "scrollspeed": 5,
    "wordwrap": true
}

Notice how it has custom settings for *.md files.

Now, run micro to edit a new file. Set syntax highlighting to markdown, with Ctrl + E then cmd: set filetype markdown. Now, since the config file above says to have softwrap on, it should. But, it doesn't. That's the bug. It should reload the config settings for the *.md filetype once I run set filetype markdown, but it doesn't. You can paste a bunch of text and it won't wrap.

Specifications

Commit hash: 225927b
OS: Linux Ubuntu 22.04
Terminal: terminator 2.1.1

Work-around

Save the open file as a .md markdown file. Close and re-open it in micro to get micro to apply the proper config settings when editing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions