kak

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EchoErrPrefix = "__kak_error__"

EchoErrPrefix is a prefix added when Kakoune's evaluation catches an error

View Source
const EchoPrefix = "__kak_echo__"

EchoPrefix is a prefix added to Kakoune's echo output

Variables

This section is empty.

Functions

func Connect

func Connect(kctx *Context, fp *Filepath) error

func Get

func Get(kctx *Context, query string) (string, error)

func ReadTmp

func ReadTmp(tmp *os.File, c chan string)

func Run

func Run(kctx *Context, kakArgs []string, fp *Filepath) error

func Send

func Send(kctx *Context, kakCommand string, errOutFile *os.File) error

func Start added in v0.3.1

func Start(name string) (sessionName string, err error)

Types

type Buffer added in v0.3.1

type Buffer struct{ Name string }

type Client added in v0.3.1

type Client struct{ Name string }

type Context added in v0.3.1

type Context struct {
	Session Session
	Client  Client
	Buffer  Buffer
}

type Filepath added in v0.3.1

type Filepath struct {
	Name   string
	Line   int
	Column int
	Raw    []string
}

func NewFilepath added in v0.3.1

func NewFilepath(args []string) *Filepath

func (*Filepath) Dir added in v0.3.3

func (fp *Filepath) Dir() (dir string, err error)

func (*Filepath) ParseGitDir added in v0.3.3

func (fp *Filepath) ParseGitDir() string

type Session added in v0.3.1

type Session struct{ Name string }

func Sessions added in v0.3.1

func Sessions() (sessions []Session, err error)

func (*Session) Clients added in v0.3.1

func (s *Session) Clients() (clients []Client, err error)

func (*Session) Dir added in v0.3.1

func (s *Session) Dir() (dir string, err error)

func (*Session) Exists added in v0.3.1

func (s *Session) Exists() (exists bool, err error)

Jump to

Keyboard shortcuts

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