Documentation
¶
Overview ¶
Package types provides some implementation-agnostic types to use throughout treefiddy.
Index ¶
- type Actions
- type Bind
- type Binds
- type Config
- type EdictContext
- func (ctx *EdictContext) AbsPathFromRel(path string) (string, error)
- func (ctx *EdictContext) Error(err error) EdictContext
- func (ctx *EdictContext) FromToAbsPath() (string, string, error)
- func (ctx *EdictContext) Last(msg string, err error) EdictContext
- func (ctx *EdictContext) Ok(msg string) EdictContext
- func (ctx *EdictContext) RelPathFromAbs(path string) (string, error)
- func (ctx *EdictContext) TargetAbsPath() (string, error)
- func (ctx *EdictContext) Wrap(c EdictContext)
- type FileReference
- type Mode
- type Modes
- type NodeMangling
- type Shortcut
- type Shortcuts
- type Systems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Actions Actions
Binds Binds
Modes Modes
Shortcuts Shortcuts
UseMouse bool `yaml:"use_mouse"`
Systems Systems `yaml:"systems"`
WatchDirs []string `yaml:"watch_dirs"`
}
func EnsureConfig ¶
func EnsureConfig() (cfg Config)
type EdictContext ¶
type EdictContext struct {
Root string
Selected string
Arguments []string
// Results from last edict chain.
Err error
Msg string
Previous *EdictContext
}
func (*EdictContext) AbsPathFromRel ¶
func (ctx *EdictContext) AbsPathFromRel(path string) (string, error)
func (*EdictContext) Error ¶
func (ctx *EdictContext) Error(err error) EdictContext
func (*EdictContext) FromToAbsPath ¶
func (ctx *EdictContext) FromToAbsPath() (string, string, error)
func (*EdictContext) Last ¶
func (ctx *EdictContext) Last(msg string, err error) EdictContext
func (*EdictContext) Ok ¶
func (ctx *EdictContext) Ok(msg string) EdictContext
func (*EdictContext) RelPathFromAbs ¶
func (ctx *EdictContext) RelPathFromAbs(path string) (string, error)
func (*EdictContext) TargetAbsPath ¶
func (ctx *EdictContext) TargetAbsPath() (string, error)
func (*EdictContext) Wrap ¶
func (ctx *EdictContext) Wrap(c EdictContext)
type FileReference ¶
FileReference stores information about a file for use in tree node generation.
Click to show internal directories.
Click to hide internal directories.