jump

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPathExist   = errors.New("path is exist")
	ErrConfigIsDir = errors.New("config is dir")
)
View Source
var File_pb_jump_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Jump

type Jump struct {
	Update uint32            `protobuf:"varint,1,opt,name=update,proto3" json:"update,omitempty"`
	Config string            `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Home   string            `protobuf:"bytes,3,opt,name=home,proto3" json:"home,omitempty"`
	Paths  map[string]uint64 `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func NewJump

func NewJump(path string) *Jump

func (*Jump) Add

func (p *Jump) Add(path string, num ...uint64) string

func (*Jump) Autojump

func (p *Jump) Autojump()

func (*Jump) Descriptor deprecated

func (*Jump) Descriptor() ([]byte, []int)

Deprecated: Use Jump.ProtoReflect.Descriptor instead.

func (*Jump) GetConfig

func (x *Jump) GetConfig() string

func (*Jump) GetHome

func (x *Jump) GetHome() string

func (*Jump) GetPaths

func (x *Jump) GetPaths() map[string]uint64

func (*Jump) GetUpdate

func (x *Jump) GetUpdate() uint32

func (*Jump) History

func (p *Jump) History()

func (*Jump) Init

func (p *Jump) Init()

func (*Jump) Jump

func (p *Jump) Jump(path string) string

func (*Jump) ProtoMessage

func (*Jump) ProtoMessage()

func (*Jump) ProtoReflect

func (x *Jump) ProtoReflect() protoreflect.Message

func (*Jump) Reset

func (x *Jump) Reset()

func (*Jump) Save

func (p *Jump) Save()

func (*Jump) String

func (x *Jump) String() string

type Path

type Path struct {
	Path  string
	Count uint64
	Level int
}

Jump to

Keyboard shortcuts

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