Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name

Matches files by filename using glob patterns or regular expressions.

Syntax

# Glob pattern (shorthand)
- name: "*.txt"

# Glob pattern (explicit)
- name:
    glob: "report_*.pdf"

# Regular expression
- name:
    regex: "^file_\d{4}\.txt$"

Options

optiontypedescription
globstringGlob pattern to match
regexstringRegular expression pattern

Only one of glob or regex can be specified.

Glob patterns

The glob pattern is matched against the base filename only (not the full path).

patternmatches
*Any sequence of characters
?Any single character
[abc]Any character in the set
[a-z]Any character in the range
**Any path (in glob context)

Examples

Match all text files

- name: "*.txt"

Match files starting with “report”

- name: "report*"

Match files with numbers in name

- name:
    regex: ".*\d+.*"

Match screenshot files

- name: "Screenshot*"

Exclude hidden files (macOS)

filters:
  - not:
      - any:
          - name: ".*"
          - name: .DS_Store