Jump to content

xilopaint

Member
  • Posts

    896
  • Joined

  • Last visited

  • Days Won

    24

Reputation Activity

  1. Like
    xilopaint got a reaction from JGC in Cheatsheet - shortcuts for your tools   
    +1 for Pixelmator and Evernote.
  2. Like
    xilopaint reacted to mutasem in Cheatsheet - shortcuts for your tools   
    Cheatsheet
    Alfred workflow that gets shortcuts for applications, websites, tools and others. Use the keyboard more.
    Github repo
    workflow file
    Supported right now
    Alfred AutoMute Chrome extension Evernote Finder Firefox Google Chrome IntelliJ Idea (default Mac OS X) Mac OSX Microsoft Word Outlook Reddit Enhancement Suite Safari Slack Sublime Text Terminal Video Speed Controller chrome extension Vim Vintage Sublime github.com iTerm2 inbox.google.com trello.com youtube.com

    I focused on the stuff I use everyday to start with. Let me know what tools you would like this to support. Or better make a pull request with it.
  3. Thanks
    xilopaint reacted to vitor in OneUpdater — Update workflows with a single node   
    @xilopaint Yes. Mind giving some help with testing? Since it’s not the method I use, I need someone else for feedback.
     
    Replace the code in your OneUpdater node with this one:
    # YOU MUST SET THESE VARIABLES. SEE THE README FOR AN EXPLANATION OF EACH. readonly remote_info_plist='https://someserver.tld/myworkflow/info.plist' readonly workflow_url='xilopaint/alfred-things' readonly download_type='github_release' readonly frequency_check='0' # FROM HERE ON, CODE SHOULD BE LEFT UNTOUCHED UNLESS YOU KNOW WHAT YOU ARE DOING! function abort { echo "${1}" >&2 exit 1 } function url_exists { curl --silent --location --output /dev/null --fail --range 0-0 "${1}" } function notification { readonly local notificator="$(find . -type d -name 'Notificator.app')" if [[ -n "${notificator}" ]]; then "${notificator}/Contents/Resources/Scripts/notificator" --message "${1}" --title "${alfred_workflow_name}" --subtitle 'A new version is available' return fi readonly local terminal_notifier="$(find . -type f -name 'terminal-notifier')" if [[ -n "${terminal_notifier}" ]]; then "${terminal_notifier}" -title "${alfred_workflow_name}" -subtitle 'A new version is available' -message "${1}" return fi osascript -e "display notification \"${1}\" with title \"${alfred_workflow_name}\" subtitle \"A new version is available\"" } # Local sanity checks readonly local_info_plist='info.plist' readonly local_version="$(/usr/libexec/PlistBuddy -c 'print version' "${local_info_plist}")" [[ -n "${local_version}" ]] || abort 'You need to set a workflow version in the configuration sheet.' [[ "${download_type}" =~ ^(direct|page|github_release)$ ]] || abort "'download_type' (${download_type}) needs to be one of 'direct', 'page', or 'github_release'." [[ "${frequency_check}" =~ ^[0-9]+$ ]] || abort "'frequency_check' (${frequency_check}) needs to be a number." # Check for updates if [[ $(find "${local_info_plist}" -mtime +"${frequency_check}"d) ]]; then if ! url_exists "${remote_info_plist}"; then abort "'remote_info_plist' (${remote_info_plist}) appears to not be reachable."; fi # Remote sanity check readonly tmp_file="$(mktemp)" curl --silent --location --output "${tmp_file}" "${remote_info_plist}" readonly remote_version="$(/usr/libexec/PlistBuddy -c 'print version' "${tmp_file}")" if [[ "${local_version}" == "${remote_version}" ]]; then touch "${local_info_plist}" # Reset timer by touching local file exit 0 fi if [[ "${download_type}" == 'page' ]]; then notification 'Opening download page…' open "${workflow_url}" exit 0 fi download_url="$([[ "${download_type}" == 'github_release' ]] && curl --silent "https://api.github.com/repos/${workflow_url}/releases/latest" | grep 'browser_download_url' | head -1 | sed -E 's/.*browser_download_url": "(.*)"/\1/' || echo "${workflow_url}")" if url_exists "${download_url}"; then notification 'Downloading and installing…' curl --silent --location --output "${HOME}/Downloads/${alfred_workflow_name}.alfredworkflow" "${download_url}" open "${HOME}/Downloads/${alfred_workflow_name}.alfredworkflow" else abort "'workflow_url' (${download_url}) appears to not be reachable." fi fi As you can see (you need only care about the top variables, as before), I’ve already set it up to work with your Things workflow, and to check on every run. It should be clear how to change (and to what) to make it work on another Workflow.
  4. Like
    xilopaint reacted to vitor in MarkdownTransform — Convert Markdown to other formats   
    If you already have Homebrew, simply brew install ruby and you’re good to go.
  5. Like
    xilopaint got a reaction from deanishe in Request: Fangraphs (MLB) workflow   
    True. Are you English, right? One of the greatest Ronaldo's performances I remember was against ManU in UCL when he was applauded in Old Trafford:
     
     
    Unfortunately, that was not enough and Real Madrid ended up losing the match. I don't know why but I think the games of nowadays don't have those epic feelings.
     
    Btw, what happens with the English team in World Cups? You guys seem to never display all your perceived potential.
  6. Like
    xilopaint reacted to funkymonkey in Things for Alfred – Interact with Things 3 using Alfred   
    Very nice thanks! Looks good too!
  7. Like
    xilopaint got a reaction from Grug in Things for Alfred – Interact with Things 3 using Alfred   
    Things for Alfred

    Interact with Things 3 using Alfred.

    Download and Installation
    Download the workflow file from GitHub releases and install it by double-clicking on Things.alfredworklow.

    Usage
    Use the keyword todo to show Things lists and action any of them for displaying the corresponding to-dos. Action a to-do to display it in the Things UI. Try the modifier keys either in lists or in to-dos to know other actions. Contribute
    To report a bug or request a feature, please create an issue or submit a pull request on GitHub.

    Credits
    This workflow relies on qWorkflow library by Ursan Razvan and OneUpdater by Vítor Galvão. The to-do icon is created by Jason Zigrino and released under the Creative Commons BY-NC-ND 3.0 license.

    License
    Things workflow code is released under the MIT License.
  8. Like
    xilopaint got a reaction from nikivi in Alfred Commit Folders   
    You can edit the title by yourself .
  9. Like
    xilopaint reacted to Andrew in Simple workflow to go to subreddit you specify   
    @xilopaint if you have a hotkey directly to a workflow input, you get the workflow input's icon on the right instead of Alfred's icon.
  10. Like
    xilopaint got a reaction from deanishe in Alfred Time - See time passed from your Birthday   
    Pretty fast
  11. Like
    xilopaint got a reaction from nikivi in Alfred Time - See time passed from your Birthday   
    Pretty fast
  12. Thanks
    xilopaint reacted to vitor in WebScreenshots — Take screenshots directly to the web   
    Done. Update to the latest version to get it (⌥↩).
  13. Like
    xilopaint reacted to deanishe in Workflow Library for Python   
    There are two add_item() methods. Workflow.add_item() and Workflow3.add_item().
     
    You're looking at the wrong one.
     
  14. Like
    xilopaint got a reaction from vitor in Updating TextExpander PopUp with Alfred   
    The best way to distribute your workflows is GitHub releases.  Doing it you can use OneUpdater which is a simple and convenient utility for keeping your workflow updated in users' machines.
     
     
  15. Thanks
    xilopaint reacted to deanishe in Browse Reddit   
    Well, that was easier than expected. v1.6 supports multireddits properly (i.e. it remembers them) and user multis.
     
    User multis work like this: r/u/<username>/m/<multi>/[<query>]
  16. Like
    xilopaint reacted to nikivi in Browse Reddit   
    Oo. It even expands to search for threads inside the subreddit. That's so awesome. Much speed.
  17. Thanks
    xilopaint reacted to deanishe in Simple workflow to go to subreddit you specify   
    Done. Should now be much faster for filtering subreddits (though not fetching posts).
  18. Like
    xilopaint reacted to deanishe in Workflow Library for Python   
    Right, I see what you mean.
     
    Yes, if AW is told to install an update, it sets update_available to False. However, it will be reset to True the next time it checks for an update (24h by default).
     
    IIRC, this was a deliberate choice. The reasoning was that if the user rejected the update, they probably don't want an "An update is available!" notification in their face every time they use the workflow. So they will be left alone for a day. (It also prevents AW from immediately checking for an update again.)
     
    The problem is that as generally used, showing a notification as the first result requires switching off item UIDs, otherwise Alfred will apply its knowledge and move other results to the top. And you will no longer see what you're looking for as the first result in any case, which makes using the workflow harder. (The "proper" way to do it, imo, is to only show the "update available" notification if the query is empty, so it doesn't interfere with the results. But some workflows require a query.)
     
    Essentially, the default behaviour is designed to avoid annoying users if workflow developers aren't careful about how they use the library because AW is aimed at inexperienced developers. AwGo (my Go library) doesn't do this, as Go developers tend to be more experienced. (Though some can't code for shit; they're just obsessed with speed.)
     
    If you want to force update_available to be True even if the user didn't install the update, comment out or remove L393 and L394 of update.py. That will ensure update_available is always True if the remote version is newer.
     
  19. Haha
    xilopaint reacted to nikivi in Workflow Library for Python   
    ?
  20. Like
    xilopaint reacted to deanishe in Workflow Library for Python   
    Yes. The list of available releases is fetched asynchronously in the background, so the cached list may be weeks or months out of date when you see an "Update available!" message if you haven't used the workflow in a while.
     
    So when you trigger an update, it first fetches the list of available releases to ensure it downloads the latest version.
  21. Like
    xilopaint reacted to dakush in Swift Windows Switcher [Safari/Chrome tabs support]   
    Would it take a lot of work to include other chromium-based browsers (I'm a happy Vivaldi user)? Thanks for this excellent workflow anyway.
  22. Like
    xilopaint reacted to deanishe in AwGo — Workflow library for Go   
    AwGo — A Go library for Alfred workflows

    Full-featured library to build lightning-fast workflows in a jiffy.
     
    https://github.com/deanishe/awgo

    Features
     
    Easy access to Alfred configuration, including populating a struct from workflow variables and persisting settings back to info.plist. Straightforward generation of Alfred JSON feedback. Support for all applicable Alfred features up to v3.5. Fuzzy sorting/filtering. Simple API for caching/saving workflow data. Catches panics, logs stack trace and shows user an error message. Workflow updates API with built-in support for GitHub releases. Built-in logging for easier debugging. "Magic" queries/actions for simplified development and user support. macOS system icons.  
    Installation & usage

    Install AwGo with:
    go get -u github.com/deanishe/awgo/...
    Typically, you'd call your program's main entry point via Run(). This way, the library will rescue any panic, log the stack trace and show an error message to the user in Alfred.

    program.go:
    package main // Package is called aw import "github.com/deanishe/awgo" // Workflow is the main API var wf *aw.Workflow func init() { // Create a new Workflow using default settings. // Critical settings are provided by Alfred via environment variables, // so this *will* die in flames if not run in an Alfred-like environment. wf = aw.New() } // Your workflow starts here func run() { // Add a "Script Filter" result wf.NewItem("First result!") // Send results to Alfred wf.SendFeedback() } func main() { // Wrap your entry point with Run() to catch and log panics and // show an error in Alfred instead of silently dying wf.Run(run) }
    In the Script Filter's Script box (Language = /bin/bash with input as argv):
    ./program "$1" Documentation
     
    Read the docs on GoDoc.
    Check out the example workflows (docs), which show how to use AwGo. Use one as a template to get your own workflow up and running quickly.
     
    Running/testing
     
    The library, and therefore the unit tests, rely on being run in an Alfred-like environment, as they pull configuration options from environment variables (which are set by Alfred).
    As such, you must source the env.sh script in the project root or run unit tests via the run-tests.sh script (which also sets up an appropriate environment then calls go test).
     
    Licensing & thanks
     
    This library is released under the MIT licence.
    The icon is based on the Go Gopher by Renee French.
     
  23. Like
    xilopaint reacted to deanishe in Searchio! Auto-suggestion from search engines in different languages   
    Haha!
     
    The Germans do that a lot, too. Almost none of them realise Mission: Impossible is based on a TV show, 'cos it was called "Take over, Cobra" here. And, there are about ten shows called "<name of main character> für alle Fälle". What a creative bunch they are.
     
  24. Like
    xilopaint got a reaction from deanishe in Searchio! Auto-suggestion from search engines in different languages   
    Yes it does. Btw, it's a case in which the translation was made literally. In most cases the "translation" for the Brazilian market gives some really stupid titles to the movies.
     
    "The Hangover", for example, was translated as "If you drink, don't get marry".
     
    "Lost in Translation" was translated as something like "Matches and Mismatches" (the idiot was literally lost in translation).
     
    They have to "translate" even a title that is a character's name like "Annie Hall", "translated" in Brazil as "Neurotic fiance, nervous bride".
     
    A ~tech related~ case is "Fear Dot Com", translated to Brazil as "Fear Dot Com Br" (yes, as it were not enough ridiculous adding the "Br", the genius forgot to include one more "Dot" to make "Dot Com Dot Br").
     
    So I think you don't have much to complain about the English movie titles. lol
  25. Like
    xilopaint got a reaction from deanishe in Searchio! Auto-suggestion from search engines in different languages   
    Can it be a word? If you try canalizador you will have mostly plumber related videos in pt-PT results and mostly random results in pt-BR.
     
    If you type the letter v, PT-pt results will display a hip hop Portuguese singer in the first result:
     

     
    But not in pt-BR in which a trending Brazilian song (a terrible one) is displayed in first place:
     

×
×
  • Create New...