zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.95k stars 1.17k forks source link

[Feature request] Plugin install option #3157

Closed mdziczkowski closed 4 weeks ago

mdziczkowski commented 7 months ago

I wanted to request a option that would allow to install plugins from the level if both: cli and editor

Currently, there are only options to:

plugins, but none to install them

taconi commented 7 months ago

This option already exists, through the CLI you install the plugin with micro -plugin install 'pl' where 'pl' is the name of the plugin (just type micro -plugin to see help) and through the editor you enter the command bar with Ctrl-e and installs your plugin with the command plugin install 'pl'.

mdziczkowski commented 7 months ago

Thanks. I had proposed it brcause it was not mentioned in the manual

taconi commented 7 months ago

The plugins you can install are on the official plugins channel.

It basically lists the plugins but you can list other plugins that are not there to install with the micro.

You can do this in two ways:

The first way is to put the repo.json file link (to see more about plugins and repo.json see this) in the pluginrepos field in the settings file:

{
    "pluginrepos": [
        "https://codeberg.org/micro-plugins/manager/raw/branch/main/repo.json"
    ]
}

The second way is to add another plugin channel besides the official one. You put the file link in the pluginchannels.

{
    "pluginchannels": [
        "https://codeberg.org/micro-plugins/plugin-channel/raw/branch/main/channel.json"
    ]
}

I don't know if there are other plugin channels besides this one.

JoeKar commented 4 weeks ago

It was and is documented for a while now. So we can close this issue.

mdziczkowski commented 1 week ago

Thanks 👍