DFM-SEARCHER(1)

๐Ÿ“ฆ version 1.4.4, in ubuntu stonking

๐Ÿ’– DFM-SEARCHER ๐Ÿ’–

okay bestie, gather round, because we're talking about dfm-searcher, the file search tool for DDE. yes, that one. the one that finds your stuff when your folder organization is giving chaos demon energy. she's got range, she's got flags, and she's about to be your new main character. ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

dfm-searcher [options] <keyword> [search_path]

that's it. keyword in, files out. literally that simple. ๐Ÿ’…


๐ŸŒธ DESCRIPTION ๐ŸŒธ

  • --semantic, -s โ€” turns on semantic natural language search, so you can just talk to it like a person instead of thinking in keywords. iconic behaviour honestly.
dfm-searcher -s "recent 3 days images" /home/user

๐ŸŽ€ Search Types

  • --type=<filename|content|ocr> โ€” picks the search type. default is filename, no cap.
    • filename โ€” search by file name
    • content โ€” search by file content
    • ocr โ€” search by OCR text in images (yes, it reads the words inside your pictures, obsessed)

๐ŸŒˆ Search Options

  • --method=<indexed|realtime> โ€” search method. default is indexed.
  • --query=<simple|boolean|wildcard> โ€” query type. default is simple. for boolean, you separate keywords with | for OR, and & or , for AND.
  • --wildcard โ€” enable wildcard search using * and ? patterns. living that throwback regex-adjacent life.
  • --case-sensitive โ€” enable case sensitivity, for when you're feeling โœจparticularโœจ.
  • --include-hidden โ€” include hidden files. peek behind the curtain, bestie.
  • --pinyin โ€” enable pinyin search (for filename search).
  • --pinyin-acronym โ€” enable pinyin acronym search (for filename search).
  • --file-types=<types> โ€” filter by file types, comma separated.
  • --file-extensions=<exts> โ€” filter by file extensions, comma separated.
  • --exclude=<paths> โ€” exclude directories from the search, comma separated. ghost them.
  • --max-results=<number> โ€” maximum number of results (0 for unlimited).
  • --max-preview=<length> โ€” max content preview length (for content/ocr search).
  • --offset=<n> โ€” content offset: start reading from the n-th character (preview only, default 0).
  • --filename=<keyword> โ€” search by filename in the content/ocr index.

โฐ Time Range Filter Options

  • --time-field=<birth|modify> โ€” which time field to filter on (birth=creation, modify=modification).
  • --time-last=<N><unit> โ€” rolling time window: N units ago up to now. the units are: m=minutes, h=hours, d=days, w=weeks, M=months, y=years. examples: --time-last=3d (last 3 days), --time-last=2h (last 2 hours).
  • --time-today โ€” filter files from today.
  • --time-yesterday โ€” filter files from yesterday.
  • --time-this-week โ€” filter files from this week.
  • --time-last-week โ€” filter files from last week.
  • --time-this-month โ€” filter files from this month.
  • --time-last-month โ€” filter files from last month.
  • --time-this-year โ€” filter files from this year.
  • --time-last-year โ€” filter files from last year.
  • --time-range=<start>,<end> โ€” custom time range, formatted as YYYY-MM-DD or "YYYY-MM-DD HH:MM". example: --time-range="2025-01-01,2025-12-31".

๐Ÿ“ File Size Range Filter Options

  • --size-min=<size> โ€” minimum file size (e.g., 1K, 10M, 1G, 512). units: K=KB, M=MB, G=GB, T=TB (default: bytes).
  • --size-max=<size> โ€” maximum file size (e.g., 1K, 10M, 1G, 512). units: K=KB, M=MB, G=GB, T=TB (default: bytes). example: --size-min=1M --size-max=100M.

๐Ÿ‘‘ Output Options

  • --json, -j โ€” output results in JSON format. machine-readable slay.
  • --verbose, -v โ€” enable verbose output with detailed result information.
  • --features โ€” list supported features and exit.
  • --help โ€” display this help.
  • --version โ€” show version information and exit.

๐Ÿงš EXAMPLES ๐Ÿงš

# Basic filename search
dfm-searcher "document" /home/user

# Content search
dfm-searcher --type=content "hello world" /home/user/Documents

# OCR search in images
dfm-searcher --type=ocr "screenshot" /home/user/Pictures

# Realtime search with time filter
dfm-searcher --method=realtime --time-last=7d "report" /home/user

# Semantic search: find recent images
dfm-searcher --semantic "recent 3 days images" /home/user

# Semantic search with JSON output
dfm-searcher -s -j "content contains meeting notes" /home/user

# Filename search with file size filter (1MB to 100MB)
dfm-searcher --size-min=1M --size-max=100M "video" /home/user

๐Ÿซถ Content Preview (on-demand)

dfm-searcher preview [<keyword>] <path1> [path2 ...] [--type=<content|ocr>] [--offset=<n>] [--max-preview=<length>] [-j]

this one fetches content snippets for specific files without running a full search. so efficient of her.

  • with a keyword: it returns a snippet from the keyword match position (and the search starts at --offset).
  • without a keyword: it returns the exact content starting from --offset (that's the full content if --max-preview is omitted).
  • the search type is auto-detected by file extension; use --type to force a specific index.
# Fetch highlighted snippet for a single file
dfm-searcher preview "hello" /home/user/doc.txt

# Fetch full content (no keyword)
dfm-searcher preview /home/user/doc.txt

# Read content from offset 100, 50 chars max
dfm-searcher preview /home/user/doc.txt --offset=100 --max-preview=50 -j

# Search keyword from offset 150
dfm-searcher preview "keyword" /home/user/doc.txt --offset=150 -j

# Batch fetch highlighted snippets with JSON output
dfm-searcher preview "screenshot" img1.png img2.png -j

# Force a specific search type
dfm-searcher preview --type=ocr "screenshot" photo.png

๐Ÿ’€ reminder bestie: this is a search tool, so it's gonna go read your files when you ask it to search content. read the flags, love the flags. ๐Ÿ’–

and that's the whole page, periodt. this gorgeous thing is dfm-searcher 1.4.4, dated September 2026 โ€” go forth and find your files, my love. ๐ŸŒŸ๐Ÿ’œ๐ŸŽ€

๐Ÿ“ฆ where this page comes from