DFM-SEARCHER(1)
๐ 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 Search
--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 isfilename, no cap.filenameโ search by file namecontentโ search by file contentocrโ search by OCR text in images (yes, it reads the words inside your pictures, obsessed)
๐ Search Options
--method=<indexed|realtime>โ search method. default isindexed.--query=<simple|boolean|wildcard>โ query type. default issimple. forboolean, 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 (0for 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, default0).--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 asYYYY-MM-DDor"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-previewis omitted). - the search type is auto-detected by file extension; use
--typeto 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
- ubuntu stonking: deepin-util-dfm-tools 1.4.4-1 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms