Documentation ¶
Overview ¶
nodes.go
Index ¶
- Variables
- func Activate(value string) bool
- func ActiveBufferAppend(gc *GlobalConfig, txt string)
- func AddActiveBuffer(gc *GlobalConfig, text string, fileName string)
- func AppendNode(menu, item *Node)
- func Apps() [][]string
- func BuffAppend(gc *GlobalConfig, buffId int, txt string)
- func DeleteLeft(t string, p int) string
- func Dispatch(command string, gc *GlobalConfig)
- func DoPageDown(gc *GlobalConfig, buf *Buffer)
- func DumpBuffer(gc *GlobalConfig, b *Buffer)
- func ExciseSelection(buf *Buffer)
- func GetSummaries(maxItems int, username, password []byte) [][]string
- func IncreaseFont(buf *Buffer)
- func Is_space(l string) bool
- func LoadFileIfNotLoaded(gc *GlobalConfig, fileName string)
- func Log2Buff(gc *GlobalConfig, s string)
- func NextBuffer(gc *GlobalConfig)
- func NodesToStringArray(ns []*Node) []string
- func PageDown(buf *Buffer)
- func PageUp(buf *Buffer, w, h int)
- func PasteFromClipBoard(gc *GlobalConfig, buf *Buffer)
- func Predict(newString []byte) ([]string, []string)
- func PreviousBuffer(gc *GlobalConfig)
- func PreviousCharacter(buf *Buffer)
- func ProcessPort(gc *GlobalConfig, r io.Reader)
- func Recall() [][]string
- func RecallFilePath() string
- func ReduceFont(buf *Buffer)
- func SOL(txt string, c int) int
- func SOT(txt string, c int) int
- func SSHAgent() ssh.AuthMethod
- func SaveFile(gc *GlobalConfig, fname string, txt string)
- func ScanToEndOfLine(txt string, c int) int
- func ScanToNextLine(txt string, c int) int
- func ScanToNextPara(txt string, c int) int
- func ScanToPrevLine(txt string, c int) int
- func ScanToPrevPara(txt string, c int) int
- func ScrollToCursor(buf *Buffer)
- func SearchBackPage(txtBuf string, orig_f *glim.FormatParams, screenWidth, screenHeight int) int
- func SetFont(buf *Buffer, size float64)
- func ToggleVerticalMode(gc *GlobalConfig)
- type Buffer
- type BufferData
- type GlobalConfig
- type Node
- func AddTextNodesFromCommands(startNode *Node, lines []string) *Node
- func AddTextNodesFromStrStr(startNode *Node, lines [][]string) *Node
- func AddTextNodesFromStrStrStr(startNode *Node, lines [][]string) *Node
- func AddTextNodesFromString(startNode *Node, src string) *Node
- func AddTextNodesFromStringList(startNode *Node, lines []string) *Node
- func AppsMenu() *Node
- func ControlMenu() *Node
- func Dir2Menu(parent *Node) *Node
- func FindNode(n *Node, name string) *Node
- func HistoryMenu() *Node
- func MakeNodeLong(name string, subNodes []*Node, command, data string) *Node
- func MakeNodeShort(name string, subNodes []*Node) *Node
- func MakeStartNode() *Node
- func TieredAppsMenu() *Node
Constants ¶
This section is empty.
Variables ¶
View Source
var RecallCache [][]string
Functions ¶
func ActiveBufferAppend ¶
func ActiveBufferAppend(gc *GlobalConfig, txt string)
func AddActiveBuffer ¶
func AddActiveBuffer(gc *GlobalConfig, text string, fileName string)
Create a new buffer, make it active and set its contents. file name is required for a unique key to index it If a buffer called fileName already exists, its data will be replaced with the new data
func AppendNode ¶
func AppendNode(menu, item *Node)
func BuffAppend ¶
func BuffAppend(gc *GlobalConfig, buffId int, txt string)
func DeleteLeft ¶
func Dispatch ¶
func Dispatch(command string, gc *GlobalConfig)
This function carries out commands. It is the interface between your scripting, and the actual engine operation
func DoPageDown ¶
func DoPageDown(gc *GlobalConfig, buf *Buffer)
func DumpBuffer ¶
func DumpBuffer(gc *GlobalConfig, b *Buffer)
func ExciseSelection ¶
func ExciseSelection(buf *Buffer)
func GetSummaries ¶
username := goof.CatFile("username") password := goof.CatFile("password")
func IncreaseFont ¶
func IncreaseFont(buf *Buffer)
func LoadFileIfNotLoaded ¶
func LoadFileIfNotLoaded(gc *GlobalConfig, fileName string)
func Log2Buff ¶
func Log2Buff(gc *GlobalConfig, s string)
func NextBuffer ¶
func NextBuffer(gc *GlobalConfig)
func NodesToStringArray ¶
func PasteFromClipBoard ¶
func PasteFromClipBoard(gc *GlobalConfig, buf *Buffer)
func PreviousBuffer ¶
func PreviousBuffer(gc *GlobalConfig)
func PreviousCharacter ¶
func PreviousCharacter(buf *Buffer)
func ProcessPort ¶
func ProcessPort(gc *GlobalConfig, r io.Reader)
func RecallFilePath ¶
func RecallFilePath() string
func ReduceFont ¶
func ReduceFont(buf *Buffer)
func SSHAgent ¶
func SSHAgent() ssh.AuthMethod
func SaveFile ¶
func SaveFile(gc *GlobalConfig, fname string, txt string)
func ScanToEndOfLine ¶
func ScanToNextLine ¶
func ScanToNextPara ¶
func ScanToPrevLine ¶
func ScanToPrevPara ¶
func ScrollToCursor ¶
func ScrollToCursor(buf *Buffer)
func SearchBackPage ¶
func SearchBackPage(txtBuf string, orig_f *glim.FormatParams, screenWidth, screenHeight int) int
Does a page up, by searching backwards util the old top line is off the bottom of the screen
func ToggleVerticalMode ¶
func ToggleVerticalMode(gc *GlobalConfig)
Types ¶
type Buffer ¶
type Buffer struct { Data *BufferData InputMode bool Formatter *glim.FormatParams }
func FindByFileName ¶
func FindByFileName(gc *GlobalConfig, fileName string) (int, *Buffer)
type BufferData ¶
type GlobalConfig ¶
type GlobalConfig struct { ActiveBuffer *Buffer ActiveBufferId int BufferList []*Buffer LogBuffer *Buffer StatusBuffer *Buffer CommandBuffer *Buffer }
func NewEditor ¶
func NewEditor() *GlobalConfig
type Node ¶
type Node struct { Name string SubNodes []*Node Command string Data string Function func() `json:"-"` }
func AddTextNodesFromStrStr ¶
func AddTextNodesFromString ¶
func ControlMenu ¶
func ControlMenu() *Node
func HistoryMenu ¶
func HistoryMenu() *Node
func MakeNodeShort ¶
func MakeStartNode ¶
func MakeStartNode() *Node
func TieredAppsMenu ¶
func TieredAppsMenu() *Node
Click to show internal directories.
Click to hide internal directories.