Help us shape the future of Go! Take the 2026 Go Developer Survey

hints

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package hints shows the keys that may follow the command being typed, once it waits key_hints milliseconds for its next key, as which-key.nvim does. They stay while the command goes on, a page at a time (B172).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module is hints. It keeps the command being typed and whether its hints show.

func New

func New() *Module

New returns hints.

func (*Module) Call

func (m *Module) Call(context.Context, uint32, api.Scope, ...int) (api.Result, error)

func (*Module) Callback

func (m *Module) Callback(_ context.Context, id uint32, s api.Scope) (api.Result, error)

Callback shows the hints once the newest wait ends, while the command it waited for is still being typed.

func (*Module) Close

func (m *Module) Close(context.Context) error

func (*Module) Event

func (m *Module) Event(_ context.Context, name string, s api.Scope) (api.Result, error)

Event waits hints.delay for a command being typed, or shows the hints of one that goes on while they show.

func (*Module) Init

func (m *Module) Init(context.Context, api.Scope) (api.Result, error)

func (*Module) Name

func (m *Module) Name() string

func (*Module) Registered

func (m *Module) Registered() []api.Registration

func (*Module) Subscribed

func (m *Module) Subscribed() []string

func (*Module) Work

func (m *Module) Work(context.Context, api.Job) (string, error)

Jump to

Keyboard shortcuts

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