# Functions
No description provided by the author
BufKeyActionGeneral makes a general pane action from a BufKeyAction.
BufMapEvent maps an event to an action.
BufMouseActionGeneral makes a general pane mouse action from a BufKeyAction.
BufUnmap unmaps a key or mouse event from any action.
CommandAction returns a bindable function which executes the given command.
CommandComplete autocompletes commands.
CommandEditAction returns a bindable function that opens a prompt with the given string and executes the command when the user presses enter.
ConstructEvent takes a tcell event and returns a micro event.
DefaultBindings returns a map containing micro's default keybindings.
GetInfoBar returns the infobar pane.
HelpComplete autocompletes help topics.
No description provided by the author
No description provided by the author
InitBindings intializes the bindings map by reading from bindings.json.
No description provided by the author
InitGlobals initializes the log buffer and the info bar.
No description provided by the author
LuaAction makes an action from a lua function.
No description provided by the author
MakeCommand is a function to easily create new commands This can be called by plugins in Lua so that plugins can define their own commands.
NewBufPane creates a new buffer pane with the given window.
NewBufPaneFromBuf constructs a new pane from the given buffer and automatically creates a buf window.
No description provided by the author
No description provided by the author
NewKeyTree allocates and returns an empty key tree.
No description provided by the author
No description provided by the author
No description provided by the author
NewTabFromBuffer creates a new tab from the given buffer.
No description provided by the author
NewTabList creates a TabList from a list of buffers by creating a Tab for each buffer.
No description provided by the author
OptionComplete autocompletes options.
OptionValueComplete completes values for various options.
PluginCmdComplete autocompletes the plugin command.
PluginComplete completes values for the plugin command.
ReloadConfig reloads only the configuration.
RunTermEmulator starts a terminal emulator from a bufpane with the given input (command) if wait is true it will wait for the user to exit by pressing enter once the executable has terminated if getOutput is true it will redirect the stdout of the process to a pipe which will be passed to the callback which is a function that takes a string and a list of optional user arguments.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TryBindKey tries to bind a key by writing to config.ConfigDir/bindings.json Returns true if the keybinding already existed and a possible error.
UnbindKey removes the binding for a key from the bindings.json file.
WriteLog writes a string to the log buffer.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
TermEmuSupported is a constant that marks if the terminal emulator is supported.
# Variables
No description provided by the author
BufBindings stores the bindings for the buffer pane type.
BufKeyActions contains the list of all possible key actions the bufhandler could execute.
BufMouseActions contains the list of all possible mouse actions the bufhandler could execute.
InfoBar is the global info bar.
No description provided by the author
No description provided by the author
InfoKeyActions contains the list of all possible key actions the infopane could execute.
LogBufPane is a global log buffer.
MultiActions is a list of actions that should be executed multiple times if there are multiple cursors (one per cursor) Generally actions that modify global editor state like quitting or saving should not be included in this list.
No description provided by the author
Tabs is the global tab list.
No description provided by the author
TermKeyActions contains the list of all possible key actions the termpane could execute.
# Structs
The BufPane connects the buffer and the window It provides a cursor (or multiple) and defines a set of actions that can be taken on the buffer The ActionHandler can access the window for necessary info about visual positions for mouse clicks and scrolling.
A Command contains information about how to execute a command It has the action for that command as well as a completer function.
No description provided by the author
KeyEvent is a key event containing a key code, some possible modifiers (alt, ctrl, etc...) and a rune if it was simply a character press Note: to be compatible with tcell events, for ctrl keys r=code.
A KeySequence defines a list of consecutive events.
A KeyTree is a data structure for storing keybindings.
A KeyTreeCursor keeps track of the current location within the tree, and stores any information from previous events that may be needed to execute the action (values of wildcard events or mouse events).
A KeyTreeNode stores a single node in the KeyTree (trie).
A ModeConstraint specifies that an action can only be executed while a certain mode is enabled or disabled.
MouseEvent is a mouse event with a mouse button and any possible key modifiers.
RawEvent is simply an escape code We allow users to directly bind escape codes to get around some of a limitations of terminals.
No description provided by the author
A Tab represents a single tab It consists of a list of edit panes (the open buffers), a split tree (stored as just the root node), and a uiwindow to display the UI elements like the borders between splits.
The TabList is a list of tabs and a window to display the tab bar at the top of the screen.
No description provided by the author
A TreeAction stores an action, and a set of mode constraints for the action to be active.
# Type aliases
BufKeyAction represents an action bound to a key.
BufMouseAction is an action that must be bound to a mouse event.
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
No description provided by the author