Listary Pro调用everything 实现当前路径快速搜索

     在Listary中增加Custom keywords,如下图:

     需注意:

  1. %path%要加双引号,因为路径中可能会带有空格,前边要加修饰符开关 -p 或-path来指明%path%是path,否则默认是file list文件。
  2. {query}前要加修饰符开关 -s 或-search,来指明{query}是搜索关键字。
  3. 其他修饰符开关会更改程序的设置,比如排序(-sort-ascending)、大小写敏感、匹配全字符等。如下图:

       Everything命令行可用命令如下:

Everything.exe [filename] [-options]

filename	Open the specified file list.

-?	Show this help.
-admin	Run "Everything" as Administrator.
-admin-server-share-links	Use \\Server\C$ links for ETP connections.
-app-data	Store data in application data.
-bookmark <name>	Open a bookmark.
-case	Enable case matching.
-choose-language	Show the language selection page.
-choose-volumes	Do not automatically index volumes.
-close	Close the current search window.
-config <filename>	The filename of the ini file.
-connect <user:pass@host:port>	Connect to an ETP server.
-console	Show the debugging console.
-copyto <filename1> <...>	Show the multi-file renamer with the specified filenames.
-create-file-list <filename> <path>	Create a file list of a path.
-create-file-list-exclude-files <list>	exclude the semicolon delimited wildcard filter for files.
-create-file-list-exclude-folders <list>	exclude the semicolon delimited wildcard filter for folders.
-create-file-list-include-only-files <list>	include only the semicolon delimited wildcard filter for files.
-create-usn-journal <volume> <max-size-bytes> <allocation-delta-bytes>
-db <filename>	The filename of the database.
-debug	Show the debugging console.
-debug-log	Log debugging information to disk
-delete-usn-journal <volume>	Delete a USN Journal.
-details	Show results in detail view.
-diacritics	Enable diacritics matching.
-disable-run-as-admin	Disable run as administrator.
-disable-update-notification	Disable update notification on startup.
-drive-links	Use C: links for ETP connections.
-edit <filename>	Open a file list with the file list editor.
-enable-run-as-admin	Enable run as administrator.
-enable-update-notification	Enable update notification on startup.
-exit	Exit "Everything".
-first-instance	Only run if this is the first instance of "Everything".
-filelist <filename>	Open a file list.
-filename <filename>	Search for a file or folder by filename.
-filter <name>	Select a search filter.
-focus-bottom-result	Focus the bottom result.
-focus-last-run-result	Focus the last run result.
-focus-most-run-result	Focus the most run result.
-focus-results	Focus the result list.
-focus-top-result	Focus the top result.
-ftp-links	Use ftp://host/C: links for ETP connections.
-fullscreen	Show the search window fullscreen.
-h	Show this help.
-help	Show this help.
-home	Open the home search.
-install <location>	Install "Everything" to a new location.
-install-client-service	Install the "Everything" client as a service.
-install-config <filename>	Install the specified ini file.
-install-desktop-shortcut	Install desktop shortcut.
-install-efu-association	Install EFU file association.
-install-folder-context-menu	Install folder context menus.
-install-quick-launch-shortcut	Install Quick Launch shortcut.
-install-run-on-system-startup	Install "Everything" from the system startup.
-install-service	Install and start the "Everything" service.
-install-service-pipe-name <name>	Use the specified name for the "Everything" service pipe name.
-install-service-security-descriptor	Specify the pipe security descriptor.
-install-start-menu-shortcuts	Install "Everything" shortcuts from the Start menu.
-install-url-protocol	Install URL Protocol.
-instance <name>	The name of the "Everything" instance.
-l	Load the local database.
-language <langID>	Set the language to the specified language ID.
-load-delay <milliseconds>	The delay in milliseconds before loading the database.
-local	Load the local database.
-matchpath	Enable full path matching.
-maximized	Maximize the search window.
-minimized	Minimize the search window.
-moveto <filename1> <...>	Show the multi-file renamer with the specified filenames.
-name-part <filename>	Search for the name part of a filename.
-newwindow	Create a new search window.
-noapp-data	Store data in executable location.
-nocase	Disable case matching.
-nodb	Do not save to or load from the "Everything" database file.
-nodiacritics	Disable diacritics matching.
-nofullscreen	Show the search window in a window.
-nomatchpath	Disable full path matching.
-nomaximized	Unmaximize the search window.
-nominimized	Unminimize the search window.
-nonewwindow	Show an existing search window.
-noontop	Disable always ontop.
-noregex	Disable Regex.
-noverbose	Display only basic debug messages.
-nowholeword	Disable match whole word.
-noww	Disable match whole word.
-ontop	Enable always ontop.
-p <path>	Search for a path.
-parent <path>	Search for files and folders in the specified folder.
-parentpath <path>	Search for the parent of a path.
-path <path>	Search for a path.
-quit	Exit "Everything".
-read-only	Loads the database in read-only mode.
-regex	Enable Regex.
-reindex	Force database rebuild.
-rename <filename1> <...>	Show the multi-file renamer with the specified filenames.
-s <text>	Set the search.
-search <text>	Set the search.
-search-file-list <filename>	Search the specified text file for a list of file names.
-select <filename>	Focus and select the specified result.
-server-share-links	Use \\Server\C: links for ETP connections.
-service-pipe-name <name>	connect to the service pipe with the specified name.
-sort <name>	Set the sort to the specified name.
-sort-ascending	Sort ascending.
-sort-descending	Sort descending.
-start-client-service	Start the "Everything" client service.
-start-service	Start the "Everything" service.
-startup	Run "Everything" in the background.
-stop-client-service	Stop the "Everything" client service.
-stop-service	Stop the "Everything" service.
-svc	Run "Everything" as a service.
-svc-pipe-name <name>	Host the pipe server with the specified name.
-svc-security-descriptor <sd>	Host the pipe server with the security descriptor.
-thumbnail-size <size>	Specify the size of thumbnails in pixels.
-thumbnails	Show results in thumbnail view.
-toggle-window	Hides the current foreground search window or shows the search window.
-uninstall [path]	Uninstall "Everything" from the specified path.
-uninstall-client-service	Uninstall the "Everything" client service.
-uninstall-desktop-shortcut	Uninstall desktop shortcut.
-uninstall-efu-association	Uninstall EFU file association.
-uninstall-folder-context-menu	Uninstall folder context menus.
-uninstall-quick-launch-shortcut	Uninstall Quick Launch shortcut.
-uninstall-run-on-system-startup	Remove "Everything" from the system startup.
-uninstall-service	Uninstall the "Everything" service.
-uninstall-start-menu-shortcuts	Uninstall "Everything" shortcuts from the Start menu.
-uninstall-url-protocol	Uninstall URL Protocol.
-uninstall-user	Uninstall user files.
-update	Save the database to disk.
-url <[es:]search>	Set the search from an ES: URL.
-verbose	Display all debug messages.
-wholeword	Enable match whole word.
-ww	Enable match whole word.
 
     实际使用技巧,可以使用程序主体的搜索语法,比如可以通过修饰符regex:来启用正则表达式,这就未搜索方法开启了一扇大门,远远超越通配符*和?。

       搜索结果如下图:

       Everything应用程序的搜索语法如下:


Operators:
	space	AND
	|	OR
	!	NOT
	< >	Grouping
	" "	Search for an exact phrase.

Wildcards:
	*	Matches zero or more characters.
	?	Matches one character.

Macros:
	quot:	Literal double quote (")
	apos:	Literal apostrophe (')
	amp:	Literal ampersand (&)
	lt:	Literal less than (<)
	gt:	Literal greater than (>)
	#<n>:	Literal unicode character <n> in decimal.
	#x<n>:	Literal unicode character <n> in hexadecimal.
	audio:	Search for audio files.
	zip:	Search for compressed files.
	doc:	Search for document files.
	exe:	Search for executable files.
	pic:	Search for picture files.
	video:	Search for video files.

Modifiers:
	ascii:	Enable fast ASCII case comparisons.
	case:	Match case.
	diacritics:	Match diacritical marks.
	endwith:	Filenames (including extension) ending with text.
	file:	Match files only.
	folder:	Match folders only.
	path:	Match path and file name.
	regex:	Enable regex.
	startwith:	Search for filenames starting with text.
	utf8:	Disable fast ASCII case comparisons.
	wfn:	Match the whole filename.
	wholefilename:	Match the whole filename.
	wholeword:	Match whole words only.
	wildcards:	Enable wildcards.
	ww:	Match whole words only.
	Disable a modifier with the no prefix.

Functions:
	album:<text>	Search media for album meta data.
	ansicontent:<text>	Search ANSI file content for text.
	artist:<text>	Search media for artist meta data.
	attrib:<attributes>	Search for files and folders with the specified file attributes.
	attribdupe:	Find files and folders with the same attributes.
	attributes:<attributes>	Search for files and folders with the specified file attributes.
	bitdepth:<bitdepth>	Find images with the specified bits per pixel.
	child:<filename>	Search for folders that contain a child with a matching filename.
	childcount:<count>	Search for folders that contain the specified number of subfolders and files.
	childfilecount:<count>	Search for folders that contain the specified number of files.
	childfoldercount:<n>	Search for folders that contain the specified number of subfolders.
	comment:<text>	Search media for comment meta data.
	content:<text>	Search file content for text.
	count:<max>	Limit the number of results to max.
	dateaccessed:<date>	Search for files and folders with the specified date accessed.
	datecreated:<date>	Search for files and folders with the specified date created.
	datemodified:<date>	Search for files and folders with the specified date modified.
	daterun:<date>	Search for files and folders with the specified date run.
	da:<date>	Search for files and folders with the specified date accessed.
	dadupe:	Find files and folders with the same date accessed.
	dc:<date>	Search for files and folders with the specified date created.
	dcdupe:	Find files and folders with the same date created.
	dimensions:<w>X<h>	Find images with the specified width and height.
	dm:<date>	Search for files and folders with the specified date modified.
	dmdupe:	Find files and folders with the same date modified.
	dr:<date>	Search for files and folders with the specified date run.
	dupe:	Search for duplicated filenames.
	empty:	Search for empty folders.
	ext:<ext1;ext2;...>	Search for files with a matching extension in the specified semicolon delimited extension list.
	filelist:<fn1|fn2|...>	Search for a list of file names in the specified pipe (|) delimited file list.
	filelistfilename:<name>	Search for files and folders belonging to the file list filename.
	frn:<frn>	Search for files and folders with the specified File Reference Number.
	fsi:<index>	Search for files and folders in the specified zero based internal file system index.
	genre:<text>	Search media for genre meta data.
	height:<height>	Find images with the specified height in pixels.
	infolder:<path>	Search for files and folders in the specified path, excluding subfolders.
	len:<length>	Search for files and folders that match the specified filename length.
	namepartdupe:	Search for files and folders with the same name part.
	orientation:<type>	Search for images with the specified orientation (landscape or portrait).
	parent:<path>	Search for files and folders in the specified path, excluding subfolders.
	parents:<count>	Search for files and folders with the specified number of parent folders.
	rc:<date>	Search for files and folders with the specified recently changed date.
	recentchange:<date>	Search for files and folders with the specified recently changed date.
	root:	Search for files and folders with no parent folders.
	runcount:<count>	Search for files and folders with the specified run count.
	shell:<name>	Search for a known shell folder name, including subfolders and files.
	size:<size>	Search for files with the specified size in bytes.
	sizedupe:	Search for duplicated sizes.
	title:<text>	Search media for title meta data.
	track:<number>	Find media files with the specified track number.
	type:<type>	Search for files and folders with the specified type.
	utf16content:<text>	Search UTF-16 file content for text.
	utf16becontent:<text>	Search UTF-16 Big Endian file content for text.
	utf8content:<text>	Search UTF-8 file content for text.
	width:<width>	Find images with the specified width in pixels.

Function Syntax:
	function:value	Equal to value.
	function:<=value	Less than or equal to value.
	function:<value	Less than value.
	function:=value	Equal to value.
	function:>value	Greater than value.
	function:>=value	Greater than or equal to value.
	function:start..end	Is in the range of values from start to end.
	function:start-end	Is in the range of values from start to end.

Size Syntax:
	size[kb|mb|gb]

Size Constants:
	empty
	tiny	0 KB < size <= 10 KB
	small	10 KB < size <= 100 KB
	medium	100 KB < size <= 1 MB
	large	1 MB < size <= 16 MB
	huge	16 MB < size <= 128 MB
	gigantic	size > 128 MB
	unknown

Date Syntax:
	year
	month/year or year/month depending on locale settings
	day/month/year, month/day/year or year/month/day depending on locale settings
	YYYY[-MM[-DD[Thh[:mm[:ss[.sss]]]]]]
	YYYYMM[DD[Thh[mm[ss[.sss]]]]]

Date Constants:
	today
	yesterday
	tomorrow
	<last|past|prev|current|this|coming|next><year|month|week>
	<last|past|prev|coming|next><x><years|months|weeks|days|hours|minutes|mins|seconds|secs>
	january|february|march|april|may|june|july|august|september|october|november|december
	jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec
	sunday|monday|tuesday|wednesday|thursday|friday|saturday
	sun|mon|tue|wed|thu|fri|sat
	unknown

Attribute Constants:
	A	Archive
	C	Compressed
	D	Directory
	E	Encrypted
	H	Hidden
	I	Not content indexed
	L	Reparse point
	N	Normal
	O	Offline
	P	Sparse file
	R	Read only
	S	System
	T	Temporary
	V	Device
 

猜你喜欢

转载自blog.csdn.net/xinlan3618/article/details/117983685#comments_24226352