Jump to content

alfred_user

Member
  • Content Count

    14
  • Joined

  • Last visited

About alfred_user

  • Rank
    Newbie

Recent Profile Visitors

197 profile views
  1. When I bring up the Clipboard History Viewer it shows 15 rows of results. I can scroll down to see more, but is there a way to increase the height of the window so more rows are visible when bringing up the window? I don't see anything in Preferences > Features > Clipboard History or Appearance/themes.
  2. Wow, I never realized that you could drag files and apps from Alfred results. That's great, thanks!
  3. It would be helpful to have + and - buttons on the dialogue for the "Workflow Launch Apps / Files" workflow which open a file picker dialogue. This would allow you to quickly navigate through the filesystem to find the files you want to add, rather than having to find them in a separate finder window and drag them in. Clicking + on the picker could default to showing the /Applications folder, the user's home folder, or the most recent folder that the user had selected files from (if applicable). The dialogue referenced: An example of the buttons from the U
  4. Adding that icon key worked, thanks! I also realized I need the arg key in the object in order to pass the selected path on to the output. Completed script here: find ~/projects ~/internal -maxdepth 1 -name "*$1*" -type d | \ while read line; \ do /usr/local/bin/jq -n \ --arg uid "$(echo \"$line\" | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')" \ --arg title "$(basename "$line")" \ --arg subtitle "${line/\/Users\/username/~}" \ --arg arg "$line" \ '{uid: $uid, title: $title, subtitle: $subtitle, arg: $arg, icon: { type: "filetype", path: "public.folder" } }'; \
  5. @deanishe Thank you! I definitely wanted folders only so I went with the second suggestion. I replaced the File Filter with a Script Filter and this script: find ~/projects ~/internal -maxdepth 1 -name "*$1*" -type d | \ while read line; \ do /usr/local/bin/jq -n \ --arg uid "$(echo \"$line\" | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')" \ --arg title "$(basename "$line")" \ --arg subtitle "${line/\/Users\/username/~}" \ '{uid: $uid, title: $title, subtitle: $subtitle}'; \ done | \ /usr/local/bin/jq -n '.items |= [inputs]' It uses jq to build the JSON output that Alfre
  6. I've created a workflow with a File Filter, and set it to only show folder results: Then in the Scope tab I've added one folder: This works, but it produces results from all subfolders of the specified folder. Is there a way to restrict it to only show results from the root folder provided (and not subfolders of that folder)? I found this question from 2015 asking a similar question about the script filter, but there were no good viable solutions.
  7. Also, just found that copied image files are stored in the clipboard.alfdb.data folder in the same location. If I clear out the clipboard table using the command above, it still leaves the image files in that folder, so I've modified my script to be: setopt rmstarsilent # to override the rm * verification prompt in zsh (http://zsh.sourceforge.net/Doc/Release/Options.html#index-RMSTARSILENT) rm -f ~/Library/Application\ Support/Alfred/Databases/clipboard.alfdb.data/* sqlite3 ~/Library/Application\ Support/Alfred/Databases/clipboard.alfdb "DELETE FROM clipboard ;" I delete all fi
  8. @deanishe Thank you! I was able to accomplish what I was trying to do by adding this to my script, which deletes all rows from the clipboard table of that SQLite database using the sqlite3 command line tool: sqlite3 ~/Library/Application\ Support/Alfred/Databases/clipboard.alfdb "DELETE FROM clipboard ;" Works perfectly for my needs, but if I find that I want to preserve older clipboard history I will work on reading the Core Data timestamps in each row. Thanks again for pointing me in the right direction.
  9. Sometimes I need to perform tasks on my work computer which are related to personal matters or other companies. These tasks could potentially involve the copying/pasting of sensitive/confidential/proprietary information like hostnames, passwords, SSH keys, etc. So I wanted to have a way to "clean up" after so no artifacts or history of these operations remain on the system. So far my script successfully clears shell/terminal history, ssh known_hosts, system logs, network connection logs, temp/cached files, etc. The last thing I want to be able to do is also clear Alfred's clipboar
  10. I have a workflow that has one "Terminal Command" action which invokes a bash script (I tried using the "Run Script" action but couldn't get that working, but that's a separate issue). After the bash script runs I want both my Alfred clipboard history and macOS pasteboard to be cleared (the Alfred "Clear Clipboard History" function does both in one step). Perhaps clearing them could be accomplished in another way? Do you know where the Alfred clipboard history is stored?
  11. At a specific part in a workflow I want to be able to invoke the "Clear Clipboard History" function of Alfred automatically. Can this be accomplished?
  12. It is possible to set the number of result items rows for the main window: But there doesn't seem to be a way to set the number of rows for search result rows in the Clipboard History window. It seems to be set to show a fixed 15 rows:
×
×
  • Create New...