render

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 6 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(theme, infoTheme theme.Theme) *Renderer

func (*Renderer) ByExt

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

func (*Renderer) ByExtIcon

func (r *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) Dir

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

func (*Renderer) DirIcon

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

func (*Renderer) Executable

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

func (*Renderer) FileMode

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

func (*Renderer) GitAdded added in v0.4.0

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

func (*Renderer) GitAddedSym added in v0.4.0

func (r *Renderer) GitAddedSym(name string) string

func (*Renderer) GitCopied added in v0.4.0

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

func (*Renderer) GitCopiedSym added in v0.4.0

func (r *Renderer) GitCopiedSym(name string) string

func (*Renderer) GitDeleted added in v0.4.0

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

func (*Renderer) GitDeletedSym added in v0.4.0

func (r *Renderer) GitDeletedSym(name string) string

func (*Renderer) GitIgnored added in v0.4.0

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

func (*Renderer) GitIgnoredSym added in v0.4.0

func (r *Renderer) GitIgnoredSym(name string) string

func (*Renderer) GitModified added in v0.4.0

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

func (*Renderer) GitModifiedSym added in v0.4.0

func (r *Renderer) GitModifiedSym(name string) string

func (*Renderer) GitRenamed added in v0.4.0

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

func (*Renderer) GitRenamedSym added in v0.4.0

func (r *Renderer) GitRenamedSym(name string) string

func (*Renderer) GitUntracked added in v0.4.0

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

func (*Renderer) GitUntrackedSym added in v0.4.0

func (r *Renderer) GitUntrackedSym(name string) string

func (*Renderer) Group

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

func (*Renderer) Icon

func (r *Renderer) Icon(name string) string

func (*Renderer) Inode added in v0.5.1

func (r *Renderer) Inode(inode string) string

func (*Renderer) Name

func (r *Renderer) Name(toRender string) string

func (*Renderer) Owner

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

func (*Renderer) Pipe added in v0.3.0

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

func (*Renderer) PipeIcon added in v0.3.0

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

func (*Renderer) RegularFile

func (r *Renderer) RegularFile(toRender string) string

func (*Renderer) SetInfoTheme

func (r *Renderer) SetInfoTheme(theme theme.Theme) *Renderer

func (*Renderer) SetTheme

func (r *Renderer) SetTheme(theme theme.Theme) *Renderer

func (*Renderer) Size

func (r *Renderer) Size(toRender string) string

func (*Renderer) Socket added in v0.3.0

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

func (*Renderer) SocketIcon added in v0.3.0

func (r *Renderer) SocketIcon(toRender string) string
func (r *Renderer) Symlink(toRender string, path string) string

func (*Renderer) SymlinkIcon

func (r *Renderer) SymlinkIcon(toRender string, path string) string

func (*Renderer) SymlinkIconPlus added in v0.3.0

func (r *Renderer) SymlinkIconPlus(toRender string, path string, plus string) string

SymlinkIconPlus returns the icon and the name of the file ! refactor this: dereference symlink outside method and make it as parameter or render it in a different method

func (*Renderer) SymlinkPlus added in v0.3.0

func (r *Renderer) SymlinkPlus(toRender string, path string, plus string) string

SymlinkPlus returns the icon and the name of the file ! refactor this: dereference symlink outside method and make it as parameter or render it in a different method

func (*Renderer) Time

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

Jump to

Keyboard shortcuts

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