state_v1

package
v0.0.0-...-ff3e1a5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditorState

type EditorState struct {
	ID           string `json:"ID" toml:"ID" yaml:"ID"`
	Text         string `json:"Text" toml:"Text" yaml:"Text"`
	CursorRow    int    `json:"CursorRow" toml:"CursorRow" yaml:"CursorRow"`
	CursorColumn int    `json:"CursorColumn" toml:"CursorColumn" yaml:"CursorColumn"`
}

type State

type State struct {
	Version      string         `json:"Version" toml:"Version" yaml:"Version"`
	ActiveEditor string         `json:"ActiveEditor" toml:"ActiveEditor" yaml:"ActiveEditor"`
	Editors      []*EditorState `json:"Editors" toml:"Editors" yaml:"Editors"`
}

func (*State) ActiveEditorIndex

func (s *State) ActiveEditorIndex() int

func (*State) Clone

func (s *State) Clone() *State

func (*State) EditorByID

func (s *State) EditorByID(editor string) *EditorState

func (*State) EditorIndexByID

func (s *State) EditorIndexByID(editor string) int

Jump to

Keyboard shortcuts

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