commands

package
v0.1.0-pre-release Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAppCommands

func RegisterAppCommands(api plugin.EditorAPI, themeAPI ThemeAPI)

RegisterAppCommands registers built-in commands like :theme

func RegisterThemeCommands

func RegisterThemeCommands(api plugin.EditorAPI, themeAPI ThemeAPI)

RegisterThemeCommands registers only theme-related commands

Types

type ThemeAPI

type ThemeAPI interface {
	SetTheme(name string) error
	GetTheme() *theme.Theme
	ListThemes() []string
	SetStatusMessage(format string, args ...interface{})
}

ThemeAPI extends the commands functionality to support theme operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL