Jump to content


Community Hero
  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by vitor

  1. @Beto From the README: You can do whatever in your script. Since what you want to do is always the same, you can setup the script to do your actions. You can even save said script in TemplatesManager itself!
  2. If you regularly need to set the same files or directory structures somewhere, say a set of prebuilt scripts and template files for certain types of regular projects, this workflow is meant to make your life easier. It can take files, directory structures, and even URLs, and set them up as templates that’ll be copied over to your frontmost Finder window (if you’re using Path Finder, it will be used instead). Files and directory structures will be copied, and urls will be downloaded when requested (so you always get the latest version). Templates are kept in Alfred’s Workflow data directory by default, but can be saved anywhere else by setting the custom_templates_dir Workflow Environment Variable. Any path you set will be relative to your home directory. Use this method to easily set up syncing. If you have a template that consists of a directory, you can place inside it an executable script with the name starting as _templatesmanagerscript. (the extension will be your pick), to be executed automatically after copying. It has a lot of options and you’ll likely use most of them, so I’ll fire through them succinctly: Add to TemplatesManager [File Action] — Add a file or directory to your local templates. tml (TemplatesManagerList) [Script Filter] — Show a list of your local templates. Type to sort with your query. Press ↩ to copy the selected one to your frontmost Finder window. tml (with ⌘) — If the selected template is a directory, instead of copying the directory itself, copy what’s inside it. tml (with ⌥) — Delete your template. tme (TemplatesManagerEdit) [Keyword] — Open the templates directory so you can add, remove, and edit them manually. rtml (RemoteTemplatesManagerList) [Script Filter] — Show a list of your remote templates (download name and url). Type to sort with your query. Press ↩ on the selected one to download the file to your frontmost Finder window. rtml (with ⌘) — Paste contents of template file, instead of downloading it. rtml (with ⌥) — Remove the url from your remote templates list. rtme (RemoteTemplatesManagerEdit) [Keyword] — Open the remote templates urls file in a text editor so you can add, remove, and edit them manually. rtma (RemoteTemplatesManagerAdd) [Keyword] — takes the URL in your clipboard and adds it to your remote templates list. Download | Source
  3. Alfred 3 Lag on High Sierra

    They are. But there’s a good possibility it’s a High Sierra bug that cannot be fixed from Alfred’s side.
  4. Alfred 3 Lag on High Sierra

    Welcome. This is a known issue. Search these forums for “High Sierra lag” and you’ll find a bunch of topics. The problem most likely lies with your theme, if it uses a window blur.
  5. List the contents of your ~/Downloads directory and act on them. Call the workflow with rdn to sort from newest to oldest, or rdo to sort from oldest to most recent. To act on the selections, use the standard Alfred shortcuts. You can activate file actions, dive into directories, preview files, add them to the file buffer — whatever you want to do that is supported by Alfred. Download | Source
  6. Fixed that. Thank you. The solution itself is pretty hacky. Wasn’t thinking of officially adding it to the Workflow. Conceptually, Downloads should be a directory where other apps put files and then we only take them out. I also wouldn’t like the inconsistency: the current solution starts the search from anywhere on the string, including the middle of words. I find that somewhat important for downloaded stuff (where much/most of the time you don’t control the filename as it comes). Since that’s not something Alfred can currently do by itself, the two solutions would be inconsistent with each other. This Workflow should be pretty safe to edit, though. It’s unlikely it’ll need further updates apart from the just released fix (it even still uses the XML Script Filter and is largely unchanged from its origins).
  7. Heads-up that I’ve completely revamped WatchList, rebuilding it from the ground up. It adds new features, makes others better, and some are just different. I’ve been successfully using the new version for a few weeks now, with no hiccups. I haven’t released it yet because I still have to write a new README. I’ve once again changed the list format (hopefully for good). The last time I did so I also had a new feature in mind that would be added eventually. But while building it, I thought the previous changes weren’t enough to do all that I wanted and Alfred didn’t have certain features that we can take advantage of now. The reason I’m making this heads-up is that the new list format is incompatible with the old one and I don’t intend to make a converter. I could try to do so, but I’m not sure the amount of users I have for this Workflow is worth the trouble. So when the update comes, make sure you have watched everything in your list or are ready to readd your items. There’s no ETA for the new version; it’ll be when I finally get around to making the README.
  8. View and manage a list of files and video streams at your own pace. This workflow was built with video in mind but works with just about any file or directory. We often have series of videos and streams that we’d like to watch but not necessarily keep after, but keeping track of them all and which we’ve already seen (and are thus safe to delete), can be a chore. Select in the Finder the files (or directories) you wish to add to your list, and apply the file action Add to watchlist. Every time you do this, the new files will be prepended to the list. You then have some options you can pick from, all starting with wl. If you choose any of the options that let you pick from a list (wlp, wlu, and wls) and continue typing after it (don’t add a space, just type), you’ll start filtering — names, file sizes, durations, and a few more — so you can quickly find the ones you want. Items starting with a ≈ are streams. They also show no file size (since they aren’t taking up any space locally) and show the link they were taken from, as opposed to a location on disk. To be able to stream video, you need either mpv or VLC. Sharing is particularly useful when you want to send the original link of something you watched to someone else, or to save it somewhere. Those are extracter from downloaded files, if they have that metadata (DownVid, for example, adds it to downloaded videos). Use ⌘ to open the url in the default browser, as opposed to copying to the clipboard. swl will add the url in your clipboard as a stream. You can also control parts of the workflow with Alfred Remote. [img=https://i.imgur.com/vc2oPDB.png] If you use DownVid, it has an option to add the downloaded video files directly to your watchlist. Download | Source License All the code in the workflow’s root directory is licensed under The Unlicense (Public Domain, essentially). Applications and libraries inside the “_licensed” directory are not public domain, and are accompanied by their respective licenses. Works well with DownVid
  9. Probably the most niche Workflow I’ve ever built. Naturally, any user that usually helps out in the forum is welcome to use the Workflow, but it may be most useful to other moderators (ping @deanishe, @Vero, and @Andrew). In the Snippets section you’ll find common help snippets I use. They’re set as a List Filter, so they’re easy to edit/add/remove. I’d like to expand that section, but that’s likely the one that’ll be more different between users. Some may prefer to have the snippets as actual snippets or change the wording. Either way, at least the troubleshooting section may be useful to all. I thought about adding more sections of the documentation, but the others don’t lend themselves as well to being parsed and transformed automatically.
  10. A set of tools to help moderate the Alfred forums. Call mod to show a list of help categories. Each one will have items related to a particular subject, such as linking to specific documentation pages or posting common help snippets. :alfredmoderationforceupdate will force an update on the categories that rely on parsing the official documentation. Download | Source
  11. Unfortunately that has a fundamental difference, and I predict many people won’t like the alternative (me included). I never forget to Lock when I go away and never want my screen to lock when I’m close and it turns off (more often than not it’s because I stopped to talk and am still in front of my machine; I don’t want to reenter my password). It was suggested in another thread that even the macOS CLI command for locking ("/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession" -suspend) may be slow. Can you confirm that, @sid? If it is still slow, then this is a macOS issue (not an Alfred one) and you should instead open a bug report with Apple.
  12. Would have to look into it. But I’m not going to add it to the Workflow because seeing incomplete Downloads is useful (e.g. if you cancel a download and want to delete the incomplete file).
  13. Update. On the RTF conversion, have a 1rem bottom margin on paragraphs. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.
  14. Each Hotkey Trigger in the workflow corresponds to a different type of Markdown conversion: Markdown → BBCode Markdown → RTF Supported in conversion to RTF: Italic Bold Italic and Bold Strikethrough Links Unordered lists Ordered lists Supported in conversion to BBCode: Italic Bold Italic and Bold Horizontal rule Strikethrough Images Links Quotes Inline code Code blocks Headers Unordered lists Ordered lists Footnotes Depending on your installed Ruby version (in /usr/local/bin or /usr/bin), this Workflow may not work on your machine. In that case, you can: Install a more recent ruby version. Use the previous version of this Workflow, MarkdownBulletin. Download | Source
  15. Apologies, the mistake was mine. I had just answered a snippets-related question and my mind was still on that. What I meant to link you to was Why isn't my Clipboard History working?, specifically point 3:
  16. See Snippets and Text Expansion Troubleshooting. You might find the solution.
  17. See Snippets and Text Expansion Troubleshooting. Maybe there’s something there.
  18. Because it hasn’t been updated in four years, and things that started to break were never fixed. I also used that Workflow, until it got so broken I decided to make this alternative.
  19. Call top for an auto-updating list of processes, ordered by CPU usage. Type to filter by process name. On each process: ⌘↩ quits. ⌥↩ forcibly kills. ⌃↩ limits CPU usage. fn↩ lowers priority (increases niceness). ⇧↩ freezes. ↩ gives more granularity over the options. Download | Source
  20. Packal Updater

    Packal itself is no longer under active development as is no longer a recommended source for sharing and downloading Workflows. It’s unlikely tools that interact with it will get updates, and that’s for the better. At this point, we need less emphasis on Packal.
  21. Snippets

    See Snippets and Text Expansion Troubleshooting. You’ll want to start with slowing down key events.
  22. Run browser bookmarklets from Alfred, without needing to having them installed in the browser itself. Note that on Safari, Safari Tehcnology Preview, and Webkit, you need to Allow JavaScript from Apple Events under the Develop menu, which you can enable under the Advanced tab on the browser’s preferences. 1 For the first step, get this template workflow itself. Though this is not strictly necessary (you can build it yourself) it serves as a starting point with most of the work already done. Proceed to open the workflow in Alfred. Next, get a browser bookmarklet to convert by copying its link address. 2 Run :cleanbookmarkletcode to clean the code in your clipboard. It performs substitutions necessary to avoid problems when pasting the code in the next step. 3 Open the Arg and Vars node and paste the code. Extra If you’re not new to Alfred, you likely won’t need these steps as you’ll know what to do. 4 The template includes both a Keyword and a Hotkey nodes to run the code. You can delete either one by clicking on it and pressing ⌫. 5 If you choose to use the workflow via Keyword, do not forget to set it up. 6 Lastly, edit the workflow’s details and its icon. For completeness it’s pre-filled with my details. Feel free to edit them. Download | Source
  23. @deanishe The shortcut depends on the keyboard/language. I don’t remember the English shortcuts, but they’re different from the Portuguese ones: ⌥, → “ ⌥⇧, → ” ⌥l → ‘ ⌥⇧l → ’