Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set at build time via ldflags
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the CLI application
type PreviewManager ¶ added in v1.1.0
type PreviewManager struct {
// contains filtered or unexported fields
}
PreviewManager handles image previews in terminal
func NewPreviewManager ¶ added in v1.1.0
func NewPreviewManager() *PreviewManager
NewPreviewManager creates a new preview manager
func (*PreviewManager) CanPreview ¶ added in v1.1.0
func (pm *PreviewManager) CanPreview() bool
CanPreview returns true if image preview is available
func (*PreviewManager) DisplayImageInfo ¶ added in v1.1.0
func (pm *PreviewManager) DisplayImageInfo(imagePath string)
DisplayImageInfo shows basic information about an image file
func (*PreviewManager) GetAvailableToolName ¶ added in v1.1.0
func (pm *PreviewManager) GetAvailableToolName() string
GetAvailableToolName returns the name of the available preview tool
func (*PreviewManager) InstallInstructions ¶ added in v1.1.0
func (pm *PreviewManager) InstallInstructions() string
InstallInstructions provides installation instructions for preview tools
func (*PreviewManager) PreviewImage ¶ added in v1.1.0
func (pm *PreviewManager) PreviewImage(imagePath string) error
PreviewImage displays an image preview in the terminal
type PreviewTool ¶ added in v1.1.0
type PreviewTool int
PreviewTool represents available preview tools
const ( PreviewToolKitty PreviewTool = iota // Kitty graphics protocol (highest quality) PreviewToolSixel // Sixel graphics (high quality) PreviewToolChafa // Chafa (good quality, widely supported) PreviewToolViu // Viu (basic quality) PreviewToolNone // No preview available )
Click to show internal directories.
Click to hide internal directories.