render

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(a *theme.All) *Renderer

func (*Renderer) BlockSize added in v0.9.0

func (rd *Renderer) BlockSize(toRender string) string

func (*Renderer) ByExt

func (rd *Renderer) ByExt(toRender string) string

ByExt returns the colorized string by the file extension if the file has no extension it returns an empty string

func (*Renderer) ByExtIcon

func (rd *Renderer) ByExtIcon(toRender string) string

ByExtIcon returns the icon and the name of the file if the file has no icon it returns an empty string

func (*Renderer) ByName added in v0.11.0

func (rd *Renderer) ByName(toRender string) string

func (*Renderer) ByNameIcon added in v0.11.0

func (rd *Renderer) ByNameIcon(toRender string) string

func (*Renderer) Dir

func (rd *Renderer) Dir(toRender string) string

func (*Renderer) DirIcon

func (rd *Renderer) DirIcon(toRender string) string

func (*Renderer) Executable

func (rd *Renderer) Executable(toRender string) string

func (*Renderer) ExecutableIcon added in v0.9.0

func (rd *Renderer) ExecutableIcon(toRender string) string

func (*Renderer) File added in v0.11.0

func (rd *Renderer) File(toRender string) string

func (*Renderer) FileIcon added in v0.11.0

func (rd *Renderer) FileIcon(toRender string) string

func (*Renderer) FileMode

func (rd *Renderer) FileMode(toRender string) string

func (*Renderer) GitAdded added in v0.4.0

func (rd *Renderer) GitAdded(name string) string

func (*Renderer) GitCopied added in v0.4.0

func (rd *Renderer) GitCopied(name string) string

func (*Renderer) GitDeleted added in v0.4.0

func (rd *Renderer) GitDeleted(name string) string

func (*Renderer) GitIgnored added in v0.4.0

func (rd *Renderer) GitIgnored(name string) string

func (*Renderer) GitModified added in v0.4.0

func (rd *Renderer) GitModified(name string) string

func (*Renderer) GitRenamed added in v0.4.0

func (rd *Renderer) GitRenamed(name string) string

func (*Renderer) GitTypeChanged added in v0.9.0

func (rd *Renderer) GitTypeChanged(s string) string

func (*Renderer) GitUnmodified added in v0.9.0

func (rd *Renderer) GitUnmodified(name string) string

func (*Renderer) GitUntracked added in v0.4.0

func (rd *Renderer) GitUntracked(name string) string

func (*Renderer) GitUpdatedButUnmerged added in v0.9.0

func (rd *Renderer) GitUpdatedButUnmerged(s string) string

func (*Renderer) Group

func (rd *Renderer) Group(toRender string) string

func (*Renderer) Inode added in v0.5.1

func (rd *Renderer) Inode(inode string) string
func (rd *Renderer) Link(toRender string) string

func (*Renderer) OctalPerm added in v0.9.0

func (rd *Renderer) OctalPerm(octal string) string

func (*Renderer) Owner

func (rd *Renderer) Owner(toRender string) string

func (*Renderer) Pipe added in v0.3.0

func (rd *Renderer) Pipe(toRender string) string

func (*Renderer) PipeIcon added in v0.3.0

func (rd *Renderer) PipeIcon(toRender string) string

func (*Renderer) RTime added in v0.9.0

func (rd *Renderer) RTime(now, modTime time.Time) string

func (*Renderer) SetTheme

func (rd *Renderer) SetTheme(theme *theme.All) *Renderer

func (*Renderer) Size

func (rd *Renderer) Size(toRender, unit string) string

func (*Renderer) Socket added in v0.3.0

func (rd *Renderer) Socket(toRender string) string

func (*Renderer) SocketIcon added in v0.3.0

func (rd *Renderer) SocketIcon(toRender string) string
func (rd *Renderer) Symlink(toRender string, path string, rel bool) string

func (*Renderer) SymlinkIcon

func (rd *Renderer) SymlinkIcon(toRender string, path string, rel bool) string

func (*Renderer) SymlinkIconNoDereference added in v0.9.0

func (rd *Renderer) SymlinkIconNoDereference(toRender string) string

func (*Renderer) SymlinkIconNoDereferencePlus added in v0.9.0

func (rd *Renderer) SymlinkIconNoDereferencePlus(toRender string, plus string) string

SymlinkIconNoDereferencePlus returns the icon and the name of the file, but does not dereference the symlink

func (*Renderer) SymlinkIconPlus added in v0.3.0

func (rd *Renderer) SymlinkIconPlus(toRender string, path string, plus string, rel bool) string

SymlinkIconPlus returns the icon and the name of the file, and dereferences the symlink

func (*Renderer) SymlinkNoDereference added in v0.9.0

func (rd *Renderer) SymlinkNoDereference(str string) string

func (*Renderer) SymlinkNoDereferencePlus added in v0.9.0

func (rd *Renderer) SymlinkNoDereferencePlus(toRender string, plus string) string

func (*Renderer) SymlinkPlus added in v0.3.0

func (rd *Renderer) SymlinkPlus(toRender string, path string, plus string, rel bool) string

SymlinkPlus returns the icon and the name of the file

func (*Renderer) Time

func (rd *Renderer) Time(toRender string) string

Jump to

Keyboard shortcuts

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