Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/19/2020 in Posts

  1. Hi, I sometimes forget the keyword for a snippet, but when I search for it with the snippet keyword (default is "snippet" I think), it only shows the snippet in a one-liner, not the keyword, so I never learn the keyword unless I look it up in Alfred Preferences or invoke the Snippet Viewer Hotkey. I'd love to be able to see the snippet keyword if I held in e.g. ⌘ key. PS: This is largely resolved by using the "Snippet Viewer Hotkey" instead of "Snippet Keyword", but I'd be nice to have both places.
    1 point
  2. hey @deanishe, thank you for your suggestion! i ended up already in my own implementation using a shellscript which uses mdfind internally. in the end i did not check if there are no results, but append a "create" item all the time. in case somebody wants to do something similar, my code is attached below. cheers #!/bin/bash QUERY=${1} DIRECTORY="/some/directory" RESULTS=$(mdfind -onlyin "${DIRECTORY}" "kMDItemContentType == 'net.daringfireball.markdown' && (kMDItemDisplayName == '${QUERY}*'c || kMDItemTextContent == '${QUERY}*'c)") SAVEIFS=${
    1 point
  3. Ok, if I understand correctly, you want to be able to find a phrase like "wet weather" but not a file that happens to contain "wet" and "weather" as separate words. To do this, create a simple workflow with a "file filter" input attached to an "open file" action. Double-click your file filter and give it a name and keyword, then go to the Advanced tab. Click the + and add the kMDItemTextContent and uncheck the "split" box. Remove the other fields from the list. This will be a file filter that exclusively searches content of your files (not the file names) and specifically searches for
    1 point
×
×
  • Create New...