services

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountClear added in v0.3.0

func CountClear(text string, start int, end int) int

func CursorShift

func CursorShift(line []rune) int

func CursorShiftAt

func CursorShiftAt(line []rune, index int) int

func CursorShiftCalculateAt added in v0.2.1

func CursorShiftCalculateAt(line []rune, index int) int

func GetDirIcon added in v0.3.0

func GetDirIcon(s string) string

func GetFileIcon added in v0.3.0

func GetFileIcon(s string) string

func GetHash

func GetHash(s string) uint32

func IsLetter

func IsLetter(ch rune) bool

func IsLetterOrNumber

func IsLetterOrNumber(ch rune) bool

func IsNumber

func IsNumber(ch rune) bool

func ReadTabAt

func ReadTabAt(line []rune, index int) []rune

func ReplaceTabs added in v0.2.1

func ReplaceTabs(line []rune) []rune

func SearchIcon added in v0.3.0

func SearchIcon() string

func VisibleSubString added in v0.3.0

func VisibleSubString(text string, start int, end int) string

So here is where I build the actual line, including the ASCII escape sequences If I just use line.data[start:end], I'll get something like this: ``` 033[0m and some text ``` Here I just ignore the escape sequences and don't count them, so I can use them

Types

This section is empty.

Jump to

Keyboard shortcuts

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