This workflow could help you:
- open the given path/file in Finder
- (cmd) reveal the given path/file in Finder
- (ctrl) open the given path/file in iTerm
It can remember at most MAX_LENGTH history records that you searched before and you can access them again conveniently.
MAX_LENGTH is a variable that limits the maximum number of records to remember, and you could modify it as you like in
Workflow Configuration (Environment Variables)
.
Go here and download it directly.
NOTE: As of MacOS Monterey 12.3, the builtin Python2 has been removed. You may need to manually install it and change the language interpreter in the Script Filter to an installed Python path.
-
cd
+ nothing : It will list all the history records. -
cd
+path/file name
: It will open thepath
in Finder or open thefile
directly.
cd
+any string
: It will list all history records that are possibly relevant to the input.
-
cd
+path/file name
& presscommand
while selecting an item in the list :It will reveal the
path
/file
in Finder. -
cd
+path/file name
& pressctrl
while selecting an item in the list :It will open the
path
/path of file
in iTerm.Note : Please make sure you have installed
iTerm
before you try this !