acmeutil

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package acmeutil implements acme utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Win

type Win struct {
	*acme.Win
}

func Hijack

func Hijack(name string) (*Win, error)

Hijack returns the first window named name found in the set of existing acme windows.

func NewWin

func NewWin() (*Win, error)

func OpenCurrentWin

func OpenCurrentWin() (*Win, error)

func OpenWin

func OpenWin(id int) (*Win, error)

func (*Win) CurrentAddr

func (w *Win) CurrentAddr() (q0, q1 int, err error)

CurrentAddr returns the address of current selection.

func (*Win) DisableMark

func (w *Win) DisableMark() error

DisableMark implements text.File.

func (*Win) FileReadWriter

func (w *Win) FileReadWriter(filename string) io.ReadWriter

func (*Win) Filename

func (w *Win) Filename() (string, error)

func (*Win) Mark

func (w *Win) Mark() error

Mark implements text.File.

func (*Win) Reader

func (w *Win) Reader() (io.Reader, error)

Reader implements text.File.

func (*Win) WriteAt

func (w *Win) WriteAt(q0, q1 int, b []byte) (int, error)

WriteAt implements text.File.

Jump to

Keyboard shortcuts

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