pathmatch

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package pathmatch parses gitignore-style sidecar files under .remindb/.

Index

Constants

View Source
const (
	IgnoreFileName = "ignore"
	IgnorePath     = config.DirName + "/" + IgnoreFileName
)
View Source
const (
	PinnedFileName = "pinned"
	PinnedPath     = config.DirName + "/" + PinnedFileName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func LoadIgnore

func LoadIgnore(dir string) (*Matcher, error)

Read <dir>/.remindb/ignore; (nil, nil) if absent.

func LoadPinned

func LoadPinned(dir string) (*Matcher, error)

Read <dir>/.remindb/pinned; (nil, nil) if absent.

func (*Matcher) Match

func (m *Matcher) Match(relPath string, isDir bool) bool

Report whether relPath matches the pattern set; last-match-wins gitignore semantics.

Jump to

Keyboard shortcuts

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