Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" CommitSHA = "unknown" )
Functions ¶
func CopyFileObject ¶
CopyFileObject attempts to place a "file object" onto the clipboard. - On macOS, it calls AppleScript to set the clipboard to a POSIX file reference. - On non-macOS, it does nothing.
func EstimateTokens ¶
EstimateTokens provides a rough estimate of the number of tokens in the given text. This is based on the heuristic that one token is approximately four characters.
func IsHiddenPath ¶
IsHiddenPath checks if any component of the path starts with a dot.
func IsTextFile ¶
IsTextFile returns true if the file at filePath appears to be a text file. It checks the content type and also looks for null bytes.
func ParseSizeString ¶ added in v1.0.6
ParseSizeString converts a human-readable size string (e.g., "100kb", "2MB") into bytes (int64).
func VersionInfo ¶
func VersionInfo() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.