views

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTitleForView

func GetTitleForView(viewFlag string, sortField int, sortOrder int) string

Types

type View

type View struct {
	ExcludeDirs  []string
	ExcludeFiles []string
	OrphanOnly   bool
}

View represents a configuration for a specific view.

type ViewManager

type ViewManager struct {
	Views   map[string]View
	Handler *handler.FileHandler
}

ViewManager manages available views and their configurations.

func NewViewManager

func NewViewManager(h *handler.FileHandler, vaultDir string) *ViewManager

NewViewManager creates a new ViewManager instance with default views.

func (*ViewManager) GetAvailableViews

func (vm *ViewManager) GetAvailableViews() string

GetAvailableViews returns a comma-separated list of available view names.

func (*ViewManager) GetFilesByView

func (vm *ViewManager) GetFilesByView(
	viewFlag string,
	vaultDir string,
) ([]string, error)

func (*ViewManager) GetView

func (vm *ViewManager) GetView(viewName string) (View, error)

Jump to

Keyboard shortcuts

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