# Functions
AddRealRuntimeFile registers a file for the given filetype.
AddRuntimeFile registers a file for the given filetype.
AddRuntimeFilesFromAssets registers each file from the given asset-directory for the filetype which matches the file-pattern.
AddRuntimeFilesFromDirectory registers each file from the given directory for the filetype which matches the file-pattern.
ColorschemeExists checks if a given colorscheme exists.
DefaultAllSettings returns a map of all common buffer & global-only settings and their default values.
DefaultCommonSettings returns a map of all common buffer settings and their default values.
FindAnyPlugin does not require the plugin to be enabled.
FindPlugin returns the plugin with the given name.
FindRuntimeFile finds a runtime file of the given filetype and name will return nil if no file was found.
GetAllPluginPackages gets all PluginPackages which may be available.
GetColor takes in a syntax group and returns the colorscheme's style for that group.
GetColor256 returns the tcell color for a number between 0 and 255.
GetGlobalOption returns the global value of the given option.
No description provided by the author
GetInstalledPluginVersion returns the string of the exported VERSION variable of a loaded plugin.
GetInstalledVersions returns a list of all currently installed plugins including an entry for micro itself.
GetNativeValue parses and validates a value for a given option.
InitColorscheme picks and initializes the colorscheme when micro starts.
InitConfigDir finds the configuration directory for micro according to the XDG spec.
InitGlobalSettings initializes the options map and sets all options to their default values Must be called after ReadSettings.
InitLocalSettings scans the json in settings.json and sets the options locally based on whether the filetype or path matches ft or glob local settings Must be called after ReadSettings.
InitPlugins initializes the plugins.
InitRuntimeFiles initializes all assets files and the config directory.
ListRealRuntimeFiles lists all real runtime files (on disk) for a filetype these runtime files will be ones defined by the user and loaded from the config directory.
ListRuntimeFiles lists all known runtime files for the given filetype.
LoadAllPlugins loads all detected plugins (in runtime/plugins and ConfigDir/plugins).
LoadColorscheme loads the given colorscheme from a directory.
LoadDefaultColorscheme loads the default colorscheme from $(ConfigDir)/colorschemes.
NewPluginInfo parses a JSON input into a valid PluginInfo struct Returns an error if there are any missing fields or any invalid fields There are no optional fields in a plugin info json file.
NewRTFiletype creates a new RTFiletype.
OptionIsValid checks if a value is valid for a certain option.
OverwriteSettings writes the current settings to settings.json and resets any user configuration of local settings present in settings.json.
ParseColorscheme parses the text definition for a colorscheme and returns the corresponding object Colorschemes are made up of color-link statements linking a color group to a list of colors For example, color-link keyword (blue,red) makes all keywords have a blue foreground and red background.
No description provided by the author
PluginAddRuntimeFile adds a file to the runtime files for a plugin.
PluginAddRuntimeFileFromMemory adds a file to the runtime files for a plugin from a given string.
PluginAddRuntimeFilesFromDirectory adds files from a directory to the runtime files for a plugin.
No description provided by the author
PluginListRuntimeFiles allows plugins to lists all runtime files of the given type.
PluginReadRuntimeFile allows plugin scripts to read the content of a runtime file.
No description provided by the author
RegisterCommonOption creates a new option.
RegisterCommonOptionPlug creates a new option (called pl.name).
RegisterGlobalOption creates a new global-only option.
RegisterGlobalOptionPlug creates a new global-only option (named pl.name).
RunPluginFn runs a given function in all plugins returns an error if any of the plugins had an error.
RunPluginFnBool runs a function in all plugins and returns false if any one of them returned false also returns an error if any of the plugins had an error.
SearchPlugin retrieves a list of all PluginPackages which match the given search text and could be or are already installed.
No description provided by the author
No description provided by the author
StringToColor returns a tcell color from a string representation of a color We accept either bright..
StringToStyle returns a style from a string The strings must be in the format "extra foregroundcolor,backgroundcolor" The 'extra' can be bold, reverse, italic or underline.
UninstallPlugin deletes the plugin folder of the given plugin.
UpdatePlugins updates the given plugins.
WriteSettings writes the settings to the specified filename as JSON.
# Constants
CorePluginName is a plugin dependency name for the micro core.
How many milliseconds to wait before a second click is not a double click.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
Colorscheme is the current colorscheme.
No description provided by the author
a list of settings that should only be globally modified and their default values.
DefStyle is Micro's default style.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrNoSuchFunction is returned when Call is executed on a function that does not exist.
The options that the user can set.
a list of settings that should never be globally modified.
ModifiedSettings is a map of settings which should be written to disk because they have been modified by the user in this session.
How many filetypes are there.
a list of settings with pre-defined choices.
Plugins is a list of all detected plugins (enabled or disabled).
VolatileSettings is a map of settings which should not be written to disk because they have been temporarily set for this session only.
# Structs
Plugin stores information about the source files/info for a plugin.
PluginDependency descripes a dependency to another plugin or micro itself.
PluginInfo contains all the needed info about a plugin The info is just strings and are not used beyond that (except the Site and Install fields should be valid URLs).
PluginPackage contains the meta-data of a plugin and all available versions.
PluginVersion descripes a version of a PluginPackage.
# Interfaces
RuntimeFile allows the program to read runtime data like colorschemes or syntax files.
# Type aliases
PluginChannel contains an url to a json list of PluginRepository.
PluginChannels is a slice of PluginChannel.
PluginDependencies is a slice of PluginDependency.
PluginPackages is a list of PluginPackage instances.
PluginRepository contains an url to json file containing PluginPackages.
PluginVersions is a slice of PluginVersion.
No description provided by the author