Documentation
¶
Overview ¶
Package handler handles parsing and processing of bookmark data operations.
Index ¶
- Variables
- func CheckStatus(a *app.Context, bs []*bookmark.Bookmark) error
- func Copy(bs []*bookmark.Bookmark) error
- func Data(a *app.Context, m *menu.Menu[bookmark.Bookmark], args []string) ([]*bookmark.Bookmark, error)
- func DroppingDB(a *app.Context) error
- func Edit(a *app.Context, bs []*bookmark.Bookmark) error
- func Export(bs []*bookmark.Bookmark) error
- func FindDB(p string) (string, error)
- func LockRepo(a *app.Context, rToLock string) error
- func MenuMainForRecords[T comparable](cfg *config.Config) *menu.Menu[T]
- func MenuSimple[T comparable](cfg *config.Config, opts ...menu.Option) *menu.Menu[T]
- func NewBookmark(a *app.Context, b *bookmark.Bookmark, args []string) error
- func Open(a *app.Context, bs []*bookmark.Bookmark) error
- func ParamHighlight(raw string, color ansi.SGR, styles ...ansi.SGR) string
- func ParamsFilter(bs []*bookmark.Bookmark) []*bookmark.Bookmark
- func ParamsURL(a *app.Context, bs []*bookmark.Bookmark) error
- func QR(a *app.Context, bs []*bookmark.Bookmark, open bool, appName string) error
- func Remove(a *app.Context, bs []*bookmark.Bookmark) error
- func RemoveBackups(a *app.Context) error
- func RemoveRepo(a *app.Context) error
- func SaveNewBookmark(a *app.Context, b *bookmark.Bookmark) error
- func SelectBackupMany(a *app.Context, root, header string) ([]string, error)
- func SelectBackupOne(a *app.Context, bks []string) (string, error)
- func SelectDatabase(a *app.Context, ignoreDBPath string) (string, error)
- func SelectFileLocked(a *app.Context, root, header string) ([]string, error)
- func Snapshot(a *app.Context, bs []*bookmark.Bookmark) error
- func UnlockRepo(a *app.Context, rToUnlock string) error
- func Update(a *app.Context, bs []*bookmark.Bookmark) error
- func WaybackLatestSnapshot(a *app.Context, bs []*bookmark.Bookmark) error
- func WaybackSnapshots(a *app.Context, bs []*bookmark.Bookmark) error
- type ParamsProcessor
- type SnapshotResult
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidOption = errors.New("invalid option") ErrNoItems = errors.New("no items") )
var ErrURLParamsNotFound = errors.New("params not found")
Functions ¶
func CheckStatus ¶
CheckStatus prints the status code of the bookmark URL.
func Data ¶
func Data(a *app.Context, m *menu.Menu[bookmark.Bookmark], args []string) ([]*bookmark.Bookmark, error)
Data retrieves and filters bookmarks based on configuration and arguments.
func MenuMainForRecords ¶ added in v0.1.30
func MenuMainForRecords[T comparable](cfg *config.Config) *menu.Menu[T]
MenuMainForRecords builds the interactive FZF menu for selecting records.
func MenuSimple ¶ added in v0.1.30
MenuSimple builds a simpler menu without all keybindings.
func NewBookmark ¶ added in v0.1.15
NewBookmark fetch metadata and parses the new bookmark.
func ParamHighlight ¶ added in v0.1.31
ParamHighlight returns the URL with its query parameters highlighted with the given ansi code.
func ParamsFilter ¶ added in v0.1.31
ParamsFilter returns bookmarks that contain URL query parameters.
func ParamsURL ¶ added in v0.1.31
ParamsURL processes and optionally cleans query params for each bookmark.
func SaveNewBookmark ¶ added in v0.1.15
SaveNewBookmark asks the user if they want to save the bookmark.
func SelectBackupMany ¶ added in v0.1.16
func SelectBackupOne ¶ added in v0.1.16
SelectBackupOne lets the user choose a backup and handles decryption if needed.
func SelectDatabase ¶ added in v0.1.15
func SelectFileLocked ¶
SelectFileLocked lets the user choose a repo from a list of locked repos found in the given root directory.
func UnlockRepo ¶
UnlockRepo unlocks the database.
func Update ¶ added in v0.1.16
Update updates the bookmarks.
It uses the scraper to update the title, description and favicon.
func WaybackLatestSnapshot ¶ added in v0.1.30
Types ¶
type ParamsProcessor ¶ added in v0.1.31
type ParamsProcessor struct {
// contains filtered or unexported fields
}