s4wave_command

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandFocusContext_name = map[int32]string{
		0: "COMMAND_FOCUS_CONTEXT_UNSPECIFIED",
		1: "COMMAND_FOCUS_CONTEXT_GLOBAL",
		2: "COMMAND_FOCUS_CONTEXT_SHELL_TAB",
		3: "COMMAND_FOCUS_CONTEXT_EDITOR",
		4: "COMMAND_FOCUS_CONTEXT_LIST",
		5: "COMMAND_FOCUS_CONTEXT_CANVAS",
		6: "COMMAND_FOCUS_CONTEXT_MODAL",
		7: "COMMAND_FOCUS_CONTEXT_TEXT_INPUT",
	}
	CommandFocusContext_value = map[string]int32{
		"COMMAND_FOCUS_CONTEXT_UNSPECIFIED": 0,
		"COMMAND_FOCUS_CONTEXT_GLOBAL":      1,
		"COMMAND_FOCUS_CONTEXT_SHELL_TAB":   2,
		"COMMAND_FOCUS_CONTEXT_EDITOR":      3,
		"COMMAND_FOCUS_CONTEXT_LIST":        4,
		"COMMAND_FOCUS_CONTEXT_CANVAS":      5,
		"COMMAND_FOCUS_CONTEXT_MODAL":       6,
		"COMMAND_FOCUS_CONTEXT_TEXT_INPUT":  7,
	}
)

Enum value maps for CommandFocusContext.

View Source
var (
	KeybindingDisplayMode_name = map[int32]string{
		0: "KEYBINDING_DISPLAY_MODE_UNSPECIFIED",
		1: "KEYBINDING_DISPLAY_MODE_SYMBOLS",
		2: "KEYBINDING_DISPLAY_MODE_TEXT",
	}
	KeybindingDisplayMode_value = map[string]int32{
		"KEYBINDING_DISPLAY_MODE_UNSPECIFIED": 0,
		"KEYBINDING_DISPLAY_MODE_SYMBOLS":     1,
		"KEYBINDING_DISPLAY_MODE_TEXT":        2,
	}
)

Enum value maps for KeybindingDisplayMode.

Functions

This section is empty.

Types

type Command

type Command struct {

	// CommandId is the unique reverse-domain command identifier.
	// e.g. "spacewave.file.save", "notes.new-note"
	CommandId string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"commandId,omitempty"`
	// Label is the human-readable display name.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// Keybinding is the legacy default key combination.
	// Format: "CmdOrCtrl+S", "CmdOrCtrl+Shift+P", "Alt+F4"
	// CmdOrCtrl resolves to Cmd on macOS, Ctrl elsewhere.
	Keybinding string `protobuf:"bytes,3,opt,name=keybinding,proto3" json:"keybinding,omitempty"`
	// MenuPath is the menu placement path.
	// Format: "File/Save", "File/Export/PDF", "View/Toggle Sidebar"
	// Empty means the command is not in any menu.
	MenuPath string `protobuf:"bytes,4,opt,name=menu_path,json=menuPath,proto3" json:"menuPath,omitempty"`
	// MenuGroup controls separator placement within a menu level.
	// Commands with the same group are visually grouped together.
	MenuGroup uint32 `protobuf:"varint,5,opt,name=menu_group,json=menuGroup,proto3" json:"menuGroup,omitempty"`
	// MenuOrder controls ordering within a group.
	MenuOrder uint32 `protobuf:"varint,6,opt,name=menu_order,json=menuOrder,proto3" json:"menuOrder,omitempty"`
	// Icon is an optional icon identifier.
	Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
	// Description is an optional longer description for the palette.
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// HasSubItems indicates the command has a sub-item list in the palette.
	// When selected, the palette replaces the command list with sub-items.
	HasSubItems bool `protobuf:"varint,9,opt,name=has_sub_items,json=hasSubItems,proto3" json:"hasSubItems,omitempty"`
	// DefaultBindings are the typed default input bindings for the command.
	DefaultBindings []*CommandBinding `protobuf:"bytes,10,rep,name=default_bindings,json=defaultBindings,proto3" json:"defaultBindings,omitempty"`
	// contains filtered or unexported fields
}

Command is the metadata for a registered command.

func (*Command) CloneMessageVT

func (m *Command) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Command) CloneVT

func (m *Command) CloneVT() *Command

func (*Command) EqualMessageVT

func (this *Command) EqualMessageVT(thatMsg any) bool

func (*Command) EqualVT

func (this *Command) EqualVT(that *Command) bool

func (*Command) GetCommandId

func (x *Command) GetCommandId() string

func (*Command) GetDefaultBindings added in v0.53.0

func (x *Command) GetDefaultBindings() []*CommandBinding

func (*Command) GetDescription

func (x *Command) GetDescription() string

func (*Command) GetHasSubItems

func (x *Command) GetHasSubItems() bool

func (*Command) GetIcon

func (x *Command) GetIcon() string

func (*Command) GetKeybinding

func (x *Command) GetKeybinding() string

func (*Command) GetLabel

func (x *Command) GetLabel() string

func (*Command) GetMenuGroup

func (x *Command) GetMenuGroup() uint32

func (*Command) GetMenuOrder

func (x *Command) GetMenuOrder() uint32

func (*Command) GetMenuPath

func (x *Command) GetMenuPath() string

func (*Command) MarshalJSON

func (x *Command) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Command to JSON.

func (*Command) MarshalProtoJSON

func (x *Command) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Command message to JSON.

func (*Command) MarshalProtoText

func (x *Command) MarshalProtoText() string

func (*Command) MarshalToSizedBufferVT

func (m *Command) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Command) MarshalToVT

func (m *Command) MarshalToVT(dAtA []byte) (int, error)

func (*Command) MarshalVT

func (m *Command) MarshalVT() (dAtA []byte, err error)

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (x *Command) Reset()

func (*Command) SizeVT

func (m *Command) SizeVT() (n int)

func (*Command) String

func (x *Command) String() string

func (*Command) UnmarshalJSON

func (x *Command) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Command from JSON.

func (*Command) UnmarshalProtoJSON

func (x *Command) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Command message from JSON.

func (*Command) UnmarshalVT

func (m *Command) UnmarshalVT(dAtA []byte) error

type CommandBinding added in v0.53.0

type CommandBinding struct {

	// Id is stable within a command's default bindings.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Binding:
	//
	//	*CommandBinding_Combo
	//	*CommandBinding_Sequence
	Binding isCommandBinding_Binding `protobuf_oneof:"binding"`
	// When limits the binding to a focus context.
	When CommandFocusContext `protobuf:"varint,4,opt,name=when,proto3" json:"when,omitempty"`
	// SourceLabel is an optional display label for the binding source.
	SourceLabel string `protobuf:"bytes,5,opt,name=source_label,json=sourceLabel,proto3" json:"sourceLabel,omitempty"`
	// contains filtered or unexported fields
}

CommandBinding stores one default command input binding.

func (*CommandBinding) CloneMessageVT added in v0.53.0

func (m *CommandBinding) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*CommandBinding) CloneVT added in v0.53.0

func (m *CommandBinding) CloneVT() *CommandBinding

func (*CommandBinding) EqualMessageVT added in v0.53.0

func (this *CommandBinding) EqualMessageVT(thatMsg any) bool

func (*CommandBinding) EqualVT added in v0.53.0

func (this *CommandBinding) EqualVT(that *CommandBinding) bool

func (*CommandBinding) GetBinding added in v0.53.0

func (m *CommandBinding) GetBinding() isCommandBinding_Binding

func (*CommandBinding) GetCombo added in v0.53.0

func (x *CommandBinding) GetCombo() *KeyCombo

func (*CommandBinding) GetId added in v0.53.0

func (x *CommandBinding) GetId() string

func (*CommandBinding) GetSequence added in v0.53.0

func (x *CommandBinding) GetSequence() *KeySequence

func (*CommandBinding) GetSourceLabel added in v0.53.0

func (x *CommandBinding) GetSourceLabel() string

func (*CommandBinding) GetWhen added in v0.53.0

func (x *CommandBinding) GetWhen() CommandFocusContext

func (*CommandBinding) MarshalJSON added in v0.53.0

func (x *CommandBinding) MarshalJSON() ([]byte, error)

MarshalJSON marshals the CommandBinding to JSON.

func (*CommandBinding) MarshalProtoJSON added in v0.53.0

func (x *CommandBinding) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CommandBinding message to JSON.

func (*CommandBinding) MarshalProtoText added in v0.53.0

func (x *CommandBinding) MarshalProtoText() string

func (*CommandBinding) MarshalToSizedBufferVT added in v0.53.0

func (m *CommandBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CommandBinding) MarshalToVT added in v0.53.0

func (m *CommandBinding) MarshalToVT(dAtA []byte) (int, error)

func (*CommandBinding) MarshalVT added in v0.53.0

func (m *CommandBinding) MarshalVT() (dAtA []byte, err error)

func (*CommandBinding) ProtoMessage added in v0.53.0

func (*CommandBinding) ProtoMessage()

func (*CommandBinding) Reset added in v0.53.0

func (x *CommandBinding) Reset()

func (*CommandBinding) SizeVT added in v0.53.0

func (m *CommandBinding) SizeVT() (n int)

func (*CommandBinding) String added in v0.53.0

func (x *CommandBinding) String() string

func (*CommandBinding) UnmarshalJSON added in v0.53.0

func (x *CommandBinding) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the CommandBinding from JSON.

func (*CommandBinding) UnmarshalProtoJSON added in v0.53.0

func (x *CommandBinding) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CommandBinding message from JSON.

func (*CommandBinding) UnmarshalVT added in v0.53.0

func (m *CommandBinding) UnmarshalVT(dAtA []byte) error

type CommandBinding_Combo added in v0.53.0

type CommandBinding_Combo struct {
	// Combo stores a one-event key binding.
	Combo *KeyCombo `protobuf:"bytes,2,opt,name=combo,proto3,oneof"`
}

func (*CommandBinding_Combo) CloneOneofVT added in v0.53.0

func (m *CommandBinding_Combo) CloneOneofVT() isCommandBinding_Binding

func (*CommandBinding_Combo) CloneVT added in v0.53.0

func (*CommandBinding_Combo) EqualVT added in v0.53.0

func (this *CommandBinding_Combo) EqualVT(thatIface isCommandBinding_Binding) bool

func (*CommandBinding_Combo) MarshalToSizedBufferVT added in v0.53.0

func (m *CommandBinding_Combo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CommandBinding_Combo) MarshalToVT added in v0.53.0

func (m *CommandBinding_Combo) MarshalToVT(dAtA []byte) (int, error)

func (*CommandBinding_Combo) SizeVT added in v0.53.0

func (m *CommandBinding_Combo) SizeVT() (n int)

type CommandBinding_Sequence added in v0.53.0

type CommandBinding_Sequence struct {
	// Sequence stores an ordered key sequence.
	Sequence *KeySequence `protobuf:"bytes,3,opt,name=sequence,proto3,oneof"`
}

func (*CommandBinding_Sequence) CloneOneofVT added in v0.53.0

func (m *CommandBinding_Sequence) CloneOneofVT() isCommandBinding_Binding

func (*CommandBinding_Sequence) CloneVT added in v0.53.0

func (*CommandBinding_Sequence) EqualVT added in v0.53.0

func (this *CommandBinding_Sequence) EqualVT(thatIface isCommandBinding_Binding) bool

func (*CommandBinding_Sequence) MarshalToSizedBufferVT added in v0.53.0

func (m *CommandBinding_Sequence) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CommandBinding_Sequence) MarshalToVT added in v0.53.0

func (m *CommandBinding_Sequence) MarshalToVT(dAtA []byte) (int, error)

func (*CommandBinding_Sequence) SizeVT added in v0.53.0

func (m *CommandBinding_Sequence) SizeVT() (n int)

type CommandFocusContext added in v0.53.0

type CommandFocusContext int32

CommandFocusContext identifies where a command binding applies.

const (
	// COMMAND_FOCUS_CONTEXT_UNSPECIFIED matches the global context.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_UNSPECIFIED CommandFocusContext = 0
	// COMMAND_FOCUS_CONTEXT_GLOBAL matches the shell globally.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_GLOBAL CommandFocusContext = 1
	// COMMAND_FOCUS_CONTEXT_SHELL_TAB matches the active shell tab.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_SHELL_TAB CommandFocusContext = 2
	// COMMAND_FOCUS_CONTEXT_EDITOR matches an editor surface.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_EDITOR CommandFocusContext = 3
	// COMMAND_FOCUS_CONTEXT_LIST matches list and tree surfaces.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_LIST CommandFocusContext = 4
	// COMMAND_FOCUS_CONTEXT_CANVAS matches canvas surfaces.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_CANVAS CommandFocusContext = 5
	// COMMAND_FOCUS_CONTEXT_MODAL matches modal dialogs.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_MODAL CommandFocusContext = 6
	// COMMAND_FOCUS_CONTEXT_TEXT_INPUT matches editable text controls.
	CommandFocusContext_COMMAND_FOCUS_CONTEXT_TEXT_INPUT CommandFocusContext = 7
)

func (CommandFocusContext) Enum added in v0.53.0

func (CommandFocusContext) MarshalJSON added in v0.53.0

func (x CommandFocusContext) MarshalJSON() ([]byte, error)

MarshalJSON marshals the CommandFocusContext to JSON.

func (CommandFocusContext) MarshalProtoJSON added in v0.53.0

func (x CommandFocusContext) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CommandFocusContext to JSON.

func (CommandFocusContext) MarshalProtoText added in v0.53.0

func (x CommandFocusContext) MarshalProtoText() string

func (CommandFocusContext) MarshalText added in v0.53.0

func (x CommandFocusContext) MarshalText() ([]byte, error)

MarshalText marshals the CommandFocusContext to text.

func (CommandFocusContext) String added in v0.53.0

func (x CommandFocusContext) String() string

func (*CommandFocusContext) UnmarshalJSON added in v0.53.0

func (x *CommandFocusContext) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the CommandFocusContext from JSON.

func (*CommandFocusContext) UnmarshalProtoJSON added in v0.53.0

func (x *CommandFocusContext) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CommandFocusContext from JSON.

func (*CommandFocusContext) UnmarshalText added in v0.53.0

func (x *CommandFocusContext) UnmarshalText(b []byte) error

UnmarshalText unmarshals the CommandFocusContext from text.

type KeyCombo added in v0.53.0

type KeyCombo struct {

	// Combo is the canonical combo string.
	Combo string `protobuf:"bytes,1,opt,name=combo,proto3" json:"combo,omitempty"`
	// contains filtered or unexported fields
}

KeyCombo stores one key event plus modifiers.

func (*KeyCombo) CloneMessageVT added in v0.53.0

func (m *KeyCombo) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*KeyCombo) CloneVT added in v0.53.0

func (m *KeyCombo) CloneVT() *KeyCombo

func (*KeyCombo) EqualMessageVT added in v0.53.0

func (this *KeyCombo) EqualMessageVT(thatMsg any) bool

func (*KeyCombo) EqualVT added in v0.53.0

func (this *KeyCombo) EqualVT(that *KeyCombo) bool

func (*KeyCombo) GetCombo added in v0.53.0

func (x *KeyCombo) GetCombo() string

func (*KeyCombo) MarshalJSON added in v0.53.0

func (x *KeyCombo) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeyCombo to JSON.

func (*KeyCombo) MarshalProtoJSON added in v0.53.0

func (x *KeyCombo) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeyCombo message to JSON.

func (*KeyCombo) MarshalProtoText added in v0.53.0

func (x *KeyCombo) MarshalProtoText() string

func (*KeyCombo) MarshalToSizedBufferVT added in v0.53.0

func (m *KeyCombo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeyCombo) MarshalToVT added in v0.53.0

func (m *KeyCombo) MarshalToVT(dAtA []byte) (int, error)

func (*KeyCombo) MarshalVT added in v0.53.0

func (m *KeyCombo) MarshalVT() (dAtA []byte, err error)

func (*KeyCombo) ProtoMessage added in v0.53.0

func (*KeyCombo) ProtoMessage()

func (*KeyCombo) Reset added in v0.53.0

func (x *KeyCombo) Reset()

func (*KeyCombo) SizeVT added in v0.53.0

func (m *KeyCombo) SizeVT() (n int)

func (*KeyCombo) String added in v0.53.0

func (x *KeyCombo) String() string

func (*KeyCombo) UnmarshalJSON added in v0.53.0

func (x *KeyCombo) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeyCombo from JSON.

func (*KeyCombo) UnmarshalProtoJSON added in v0.53.0

func (x *KeyCombo) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeyCombo message from JSON.

func (*KeyCombo) UnmarshalVT added in v0.53.0

func (m *KeyCombo) UnmarshalVT(dAtA []byte) error

type KeySequence added in v0.53.0

type KeySequence struct {

	// Steps are canonical key step strings; "Leader" is the virtual leader step.
	Steps []string `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

KeySequence stores ordered key steps.

func (*KeySequence) CloneMessageVT added in v0.53.0

func (m *KeySequence) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*KeySequence) CloneVT added in v0.53.0

func (m *KeySequence) CloneVT() *KeySequence

func (*KeySequence) EqualMessageVT added in v0.53.0

func (this *KeySequence) EqualMessageVT(thatMsg any) bool

func (*KeySequence) EqualVT added in v0.53.0

func (this *KeySequence) EqualVT(that *KeySequence) bool

func (*KeySequence) GetSteps added in v0.53.0

func (x *KeySequence) GetSteps() []string

func (*KeySequence) MarshalJSON added in v0.53.0

func (x *KeySequence) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeySequence to JSON.

func (*KeySequence) MarshalProtoJSON added in v0.53.0

func (x *KeySequence) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeySequence message to JSON.

func (*KeySequence) MarshalProtoText added in v0.53.0

func (x *KeySequence) MarshalProtoText() string

func (*KeySequence) MarshalToSizedBufferVT added in v0.53.0

func (m *KeySequence) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeySequence) MarshalToVT added in v0.53.0

func (m *KeySequence) MarshalToVT(dAtA []byte) (int, error)

func (*KeySequence) MarshalVT added in v0.53.0

func (m *KeySequence) MarshalVT() (dAtA []byte, err error)

func (*KeySequence) ProtoMessage added in v0.53.0

func (*KeySequence) ProtoMessage()

func (*KeySequence) Reset added in v0.53.0

func (x *KeySequence) Reset()

func (*KeySequence) SizeVT added in v0.53.0

func (m *KeySequence) SizeVT() (n int)

func (*KeySequence) String added in v0.53.0

func (x *KeySequence) String() string

func (*KeySequence) UnmarshalJSON added in v0.53.0

func (x *KeySequence) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeySequence from JSON.

func (*KeySequence) UnmarshalProtoJSON added in v0.53.0

func (x *KeySequence) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeySequence message from JSON.

func (*KeySequence) UnmarshalVT added in v0.53.0

func (m *KeySequence) UnmarshalVT(dAtA []byte) error

type KeybindingCommandOverride added in v0.53.0

type KeybindingCommandOverride struct {

	// CommandId is the command identifier this override applies to.
	CommandId string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"commandId,omitempty"`
	// ReplaceBindings indicates bindings replace lower-layer bindings.
	ReplaceBindings bool `protobuf:"varint,2,opt,name=replace_bindings,json=replaceBindings,proto3" json:"replaceBindings,omitempty"`
	// Disabled indicates the command has no effective bindings in this layer.
	Disabled bool `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// ClearedBindingIds lists lower-layer binding IDs removed by this layer.
	ClearedBindingIds []string `protobuf:"bytes,4,rep,name=cleared_binding_ids,json=clearedBindingIds,proto3" json:"clearedBindingIds,omitempty"`
	// Bindings are bindings added by this layer.
	Bindings []*CommandBinding `protobuf:"bytes,5,rep,name=bindings,proto3" json:"bindings,omitempty"`
	// contains filtered or unexported fields
}

KeybindingCommandOverride stores one command's override in a keybinding layer.

func (*KeybindingCommandOverride) CloneMessageVT added in v0.53.0

func (*KeybindingCommandOverride) CloneVT added in v0.53.0

func (*KeybindingCommandOverride) EqualMessageVT added in v0.53.0

func (this *KeybindingCommandOverride) EqualMessageVT(thatMsg any) bool

func (*KeybindingCommandOverride) EqualVT added in v0.53.0

func (*KeybindingCommandOverride) GetBindings added in v0.53.0

func (x *KeybindingCommandOverride) GetBindings() []*CommandBinding

func (*KeybindingCommandOverride) GetClearedBindingIds added in v0.53.0

func (x *KeybindingCommandOverride) GetClearedBindingIds() []string

func (*KeybindingCommandOverride) GetCommandId added in v0.53.0

func (x *KeybindingCommandOverride) GetCommandId() string

func (*KeybindingCommandOverride) GetDisabled added in v0.53.0

func (x *KeybindingCommandOverride) GetDisabled() bool

func (*KeybindingCommandOverride) GetReplaceBindings added in v0.53.0

func (x *KeybindingCommandOverride) GetReplaceBindings() bool

func (*KeybindingCommandOverride) MarshalJSON added in v0.53.0

func (x *KeybindingCommandOverride) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeybindingCommandOverride to JSON.

func (*KeybindingCommandOverride) MarshalProtoJSON added in v0.53.0

func (x *KeybindingCommandOverride) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeybindingCommandOverride message to JSON.

func (*KeybindingCommandOverride) MarshalProtoText added in v0.53.0

func (x *KeybindingCommandOverride) MarshalProtoText() string

func (*KeybindingCommandOverride) MarshalToSizedBufferVT added in v0.53.0

func (m *KeybindingCommandOverride) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeybindingCommandOverride) MarshalToVT added in v0.53.0

func (m *KeybindingCommandOverride) MarshalToVT(dAtA []byte) (int, error)

func (*KeybindingCommandOverride) MarshalVT added in v0.53.0

func (m *KeybindingCommandOverride) MarshalVT() (dAtA []byte, err error)

func (*KeybindingCommandOverride) ProtoMessage added in v0.53.0

func (*KeybindingCommandOverride) ProtoMessage()

func (*KeybindingCommandOverride) Reset added in v0.53.0

func (x *KeybindingCommandOverride) Reset()

func (*KeybindingCommandOverride) SizeVT added in v0.53.0

func (m *KeybindingCommandOverride) SizeVT() (n int)

func (*KeybindingCommandOverride) String added in v0.53.0

func (x *KeybindingCommandOverride) String() string

func (*KeybindingCommandOverride) UnmarshalJSON added in v0.53.0

func (x *KeybindingCommandOverride) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeybindingCommandOverride from JSON.

func (*KeybindingCommandOverride) UnmarshalProtoJSON added in v0.53.0

func (x *KeybindingCommandOverride) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeybindingCommandOverride message from JSON.

func (*KeybindingCommandOverride) UnmarshalVT added in v0.53.0

func (m *KeybindingCommandOverride) UnmarshalVT(dAtA []byte) error

type KeybindingDisplayMode added in v0.53.0

type KeybindingDisplayMode int32

KeybindingDisplayMode identifies how bindings are displayed.

const (
	// KEYBINDING_DISPLAY_MODE_UNSPECIFIED uses the default display mode.
	KeybindingDisplayMode_KEYBINDING_DISPLAY_MODE_UNSPECIFIED KeybindingDisplayMode = 0
	// KEYBINDING_DISPLAY_MODE_SYMBOLS displays platform symbols.
	KeybindingDisplayMode_KEYBINDING_DISPLAY_MODE_SYMBOLS KeybindingDisplayMode = 1
	// KEYBINDING_DISPLAY_MODE_TEXT displays plain text modifier names.
	KeybindingDisplayMode_KEYBINDING_DISPLAY_MODE_TEXT KeybindingDisplayMode = 2
)

func (KeybindingDisplayMode) Enum added in v0.53.0

func (KeybindingDisplayMode) MarshalJSON added in v0.53.0

func (x KeybindingDisplayMode) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeybindingDisplayMode to JSON.

func (KeybindingDisplayMode) MarshalProtoJSON added in v0.53.0

func (x KeybindingDisplayMode) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeybindingDisplayMode to JSON.

func (KeybindingDisplayMode) MarshalProtoText added in v0.53.0

func (x KeybindingDisplayMode) MarshalProtoText() string

func (KeybindingDisplayMode) MarshalText added in v0.53.0

func (x KeybindingDisplayMode) MarshalText() ([]byte, error)

MarshalText marshals the KeybindingDisplayMode to text.

func (KeybindingDisplayMode) String added in v0.53.0

func (x KeybindingDisplayMode) String() string

func (*KeybindingDisplayMode) UnmarshalJSON added in v0.53.0

func (x *KeybindingDisplayMode) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeybindingDisplayMode from JSON.

func (*KeybindingDisplayMode) UnmarshalProtoJSON added in v0.53.0

func (x *KeybindingDisplayMode) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeybindingDisplayMode from JSON.

func (*KeybindingDisplayMode) UnmarshalText added in v0.53.0

func (x *KeybindingDisplayMode) UnmarshalText(b []byte) error

UnmarshalText unmarshals the KeybindingDisplayMode from text.

type KeybindingDisplaySettings added in v0.53.0

type KeybindingDisplaySettings struct {

	// Mode selects how bindings are displayed.
	Mode KeybindingDisplayMode `protobuf:"varint,1,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

KeybindingDisplaySettings stores display preferences for one override layer.

func (*KeybindingDisplaySettings) CloneMessageVT added in v0.53.0

func (*KeybindingDisplaySettings) CloneVT added in v0.53.0

func (*KeybindingDisplaySettings) EqualMessageVT added in v0.53.0

func (this *KeybindingDisplaySettings) EqualMessageVT(thatMsg any) bool

func (*KeybindingDisplaySettings) EqualVT added in v0.53.0

func (*KeybindingDisplaySettings) GetMode added in v0.53.0

func (*KeybindingDisplaySettings) MarshalJSON added in v0.53.0

func (x *KeybindingDisplaySettings) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeybindingDisplaySettings to JSON.

func (*KeybindingDisplaySettings) MarshalProtoJSON added in v0.53.0

func (x *KeybindingDisplaySettings) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeybindingDisplaySettings message to JSON.

func (*KeybindingDisplaySettings) MarshalProtoText added in v0.53.0

func (x *KeybindingDisplaySettings) MarshalProtoText() string

func (*KeybindingDisplaySettings) MarshalToSizedBufferVT added in v0.53.0

func (m *KeybindingDisplaySettings) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeybindingDisplaySettings) MarshalToVT added in v0.53.0

func (m *KeybindingDisplaySettings) MarshalToVT(dAtA []byte) (int, error)

func (*KeybindingDisplaySettings) MarshalVT added in v0.53.0

func (m *KeybindingDisplaySettings) MarshalVT() (dAtA []byte, err error)

func (*KeybindingDisplaySettings) ProtoMessage added in v0.53.0

func (*KeybindingDisplaySettings) ProtoMessage()

func (*KeybindingDisplaySettings) Reset added in v0.53.0

func (x *KeybindingDisplaySettings) Reset()

func (*KeybindingDisplaySettings) SizeVT added in v0.53.0

func (m *KeybindingDisplaySettings) SizeVT() (n int)

func (*KeybindingDisplaySettings) String added in v0.53.0

func (x *KeybindingDisplaySettings) String() string

func (*KeybindingDisplaySettings) UnmarshalJSON added in v0.53.0

func (x *KeybindingDisplaySettings) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeybindingDisplaySettings from JSON.

func (*KeybindingDisplaySettings) UnmarshalProtoJSON added in v0.53.0

func (x *KeybindingDisplaySettings) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeybindingDisplaySettings message from JSON.

func (*KeybindingDisplaySettings) UnmarshalVT added in v0.53.0

func (m *KeybindingDisplaySettings) UnmarshalVT(dAtA []byte) error

type KeybindingOverrideSet added in v0.53.0

type KeybindingOverrideSet struct {

	// Version is the override set schema version.
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Overrides are command-keyed overrides.
	Overrides []*KeybindingCommandOverride `protobuf:"bytes,2,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// Settings stores layer-wide keybinding preferences.
	Settings *KeybindingOverrideSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

KeybindingOverrideSet stores one persisted keybinding override layer.

func (*KeybindingOverrideSet) CloneMessageVT added in v0.53.0

func (*KeybindingOverrideSet) CloneVT added in v0.53.0

func (*KeybindingOverrideSet) EqualMessageVT added in v0.53.0

func (this *KeybindingOverrideSet) EqualMessageVT(thatMsg any) bool

func (*KeybindingOverrideSet) EqualVT added in v0.53.0

func (this *KeybindingOverrideSet) EqualVT(that *KeybindingOverrideSet) bool

func (*KeybindingOverrideSet) GetOverrides added in v0.53.0

func (x *KeybindingOverrideSet) GetOverrides() []*KeybindingCommandOverride

func (*KeybindingOverrideSet) GetSettings added in v0.53.0

func (*KeybindingOverrideSet) GetVersion added in v0.53.0

func (x *KeybindingOverrideSet) GetVersion() uint32

func (*KeybindingOverrideSet) MarshalJSON added in v0.53.0

func (x *KeybindingOverrideSet) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeybindingOverrideSet to JSON.

func (*KeybindingOverrideSet) MarshalProtoJSON added in v0.53.0

func (x *KeybindingOverrideSet) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeybindingOverrideSet message to JSON.

func (*KeybindingOverrideSet) MarshalProtoText added in v0.53.0

func (x *KeybindingOverrideSet) MarshalProtoText() string

func (*KeybindingOverrideSet) MarshalToSizedBufferVT added in v0.53.0

func (m *KeybindingOverrideSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeybindingOverrideSet) MarshalToVT added in v0.53.0

func (m *KeybindingOverrideSet) MarshalToVT(dAtA []byte) (int, error)

func (*KeybindingOverrideSet) MarshalVT added in v0.53.0

func (m *KeybindingOverrideSet) MarshalVT() (dAtA []byte, err error)

func (*KeybindingOverrideSet) ProtoMessage added in v0.53.0

func (*KeybindingOverrideSet) ProtoMessage()

func (*KeybindingOverrideSet) Reset added in v0.53.0

func (x *KeybindingOverrideSet) Reset()

func (*KeybindingOverrideSet) SizeVT added in v0.53.0

func (m *KeybindingOverrideSet) SizeVT() (n int)

func (*KeybindingOverrideSet) String added in v0.53.0

func (x *KeybindingOverrideSet) String() string

func (*KeybindingOverrideSet) UnmarshalJSON added in v0.53.0

func (x *KeybindingOverrideSet) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeybindingOverrideSet from JSON.

func (*KeybindingOverrideSet) UnmarshalProtoJSON added in v0.53.0

func (x *KeybindingOverrideSet) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeybindingOverrideSet message from JSON.

func (*KeybindingOverrideSet) UnmarshalVT added in v0.53.0

func (m *KeybindingOverrideSet) UnmarshalVT(dAtA []byte) error

type KeybindingOverrideSettings added in v0.53.0

type KeybindingOverrideSettings struct {

	// LeaderCombo is the layer's virtual Leader binding.
	LeaderCombo string `protobuf:"bytes,1,opt,name=leader_combo,json=leaderCombo,proto3" json:"leaderCombo,omitempty"`
	// WhichKeyDelayMs is the delay before showing which-key discovery.
	WhichKeyDelayMs uint32 `protobuf:"varint,2,opt,name=which_key_delay_ms,json=whichKeyDelayMs,proto3" json:"whichKeyDelayMs,omitempty"`
	// Display contains binding display preferences.
	Display *KeybindingDisplaySettings `protobuf:"bytes,3,opt,name=display,proto3" json:"display,omitempty"`
	// contains filtered or unexported fields
}

KeybindingOverrideSettings stores non-command-specific keybinding preferences.

func (*KeybindingOverrideSettings) CloneMessageVT added in v0.53.0

func (*KeybindingOverrideSettings) CloneVT added in v0.53.0

func (*KeybindingOverrideSettings) EqualMessageVT added in v0.53.0

func (this *KeybindingOverrideSettings) EqualMessageVT(thatMsg any) bool

func (*KeybindingOverrideSettings) EqualVT added in v0.53.0

func (*KeybindingOverrideSettings) GetDisplay added in v0.53.0

func (*KeybindingOverrideSettings) GetLeaderCombo added in v0.53.0

func (x *KeybindingOverrideSettings) GetLeaderCombo() string

func (*KeybindingOverrideSettings) GetWhichKeyDelayMs added in v0.53.0

func (x *KeybindingOverrideSettings) GetWhichKeyDelayMs() uint32

func (*KeybindingOverrideSettings) MarshalJSON added in v0.53.0

func (x *KeybindingOverrideSettings) MarshalJSON() ([]byte, error)

MarshalJSON marshals the KeybindingOverrideSettings to JSON.

func (*KeybindingOverrideSettings) MarshalProtoJSON added in v0.53.0

func (x *KeybindingOverrideSettings) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the KeybindingOverrideSettings message to JSON.

func (*KeybindingOverrideSettings) MarshalProtoText added in v0.53.0

func (x *KeybindingOverrideSettings) MarshalProtoText() string

func (*KeybindingOverrideSettings) MarshalToSizedBufferVT added in v0.53.0

func (m *KeybindingOverrideSettings) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KeybindingOverrideSettings) MarshalToVT added in v0.53.0

func (m *KeybindingOverrideSettings) MarshalToVT(dAtA []byte) (int, error)

func (*KeybindingOverrideSettings) MarshalVT added in v0.53.0

func (m *KeybindingOverrideSettings) MarshalVT() (dAtA []byte, err error)

func (*KeybindingOverrideSettings) ProtoMessage added in v0.53.0

func (*KeybindingOverrideSettings) ProtoMessage()

func (*KeybindingOverrideSettings) Reset added in v0.53.0

func (x *KeybindingOverrideSettings) Reset()

func (*KeybindingOverrideSettings) SizeVT added in v0.53.0

func (m *KeybindingOverrideSettings) SizeVT() (n int)

func (*KeybindingOverrideSettings) String added in v0.53.0

func (x *KeybindingOverrideSettings) String() string

func (*KeybindingOverrideSettings) UnmarshalJSON added in v0.53.0

func (x *KeybindingOverrideSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the KeybindingOverrideSettings from JSON.

func (*KeybindingOverrideSettings) UnmarshalProtoJSON added in v0.53.0

func (x *KeybindingOverrideSettings) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the KeybindingOverrideSettings message from JSON.

func (*KeybindingOverrideSettings) UnmarshalVT added in v0.53.0

func (m *KeybindingOverrideSettings) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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