Jump to content

therockmandolinist

Member
  • Posts

    43
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    therockmandolinist got a reaction from bk161124 in File browser sorting   
    There should be a way to implement some sort of choice of sorting other than alphabetical, such as by create date. Don't know if it's possible, but it would be nice to have the option somehow.
  2. Like
    therockmandolinist got a reaction from theplaypig in Dictionary definition as large text?   
    When defining a word with Alfred, it might be useful to have the word and definition show up as large text when pressing command-L. 
  3. Like
    therockmandolinist reacted to deanishe in What is your workflow for developing these workflows?   
    I symlink my own workflows. Your code belongs in version control, not in an .alfredpreferences bundle in your Dropbox.
    So that this works cleanly, for Python, I keep the actual workflow in a src subdirectory of the repo. That way, I can symlink the subdirectory to Alfred without the .git directory ending up in Dropbox, which isn't great. Also, building the workflow is as simple as zipping up the contents of the src directory. Keeps it nice and simple. When the repo root is the same as the workflow root, you have to be careful to exclude files during building. I've seen a few workflows that contained copies of themselves that contained copies of themselves that contained copies of themselves… because the author kept the built workflow alongside the source in his repo.
    With Go, because it needs compiling anyway, I write a build script that puts the completed workflow in a build subdirectory, which can then be symlinked to Alfred or (its contents) zipped into a workflow.
    I also keep all the code in external files and use Alfred's Script boxes like a shell to call the scripts. Alfred is a terrible programmer's editor, and you lose a lot of the benefits of git etc. if all your code is embedded in info.plist.
    This has the overhead of an extra bash process, but that's about 0.01s when it isn't loading your dotfiles.
    With regard to libraries like Alfred-Workflow, I don't think they're as necessary in Alfred 3 thanks to the ease of generating JSON compared to XML (at least in scripting languages). There's a lot more to AW than just generating XML/JSON, but with Alfred 2 you basically needed a library for the XML generation alone.
    Finally, I generally write my workflows as command-line programs. If you have environment variables mapped to command-line flags, you can do some really neat stuff with workflow variables.
  4. Like
    therockmandolinist reacted to deanishe in What is your workflow for developing these workflows?   
    Create a new directory for your project with a "src" subdirectory. Create a new, empty workflow in Alfred. Configure the workflow's name, bundle ID, icon etc. in Alfred's UI. Reveal the workflow in Finder. Move everything to the "src" subdirectory of your new project. Delete the workflow from Alfred. Symlink your workflow from the project directory: workflow-install -s src workflow-install script.
  5. Like
    therockmandolinist reacted to Vero in Send Snippet Directly to Terminal   
    If all you're looking to do is expand your snippets in Alfred, go to the Snippets preferences, click the cog and remove Alfred from the default ignore list.
     
    Keep in mind that this could have adverse effects, e.g. expanding when you're searching in the Snippets Viewer using the snippet's keyword.
     
    Cheers,
    Vero
  6. Like
    therockmandolinist reacted to ctwise in Search menu-items of active app   
    http://www.packal.org/workflow/menu-bar-search
  7. Like
    therockmandolinist reacted to deanishe in Lock alfred?   
    Re-open Alfred and hit the up arrow. That will bring back your previous query.
     
    Too many keypresses? Assign a hotkey to the following AppleScript (with Alfred or Fast Scripts or whatever):
    -- Open Alfred tell application "Alfred 2" to search "" -- Wait for Alfred window to appear delay 0.2 -- Simulate Up-Arrow keypress tell application "System Events" to key code 126 You may need to increase the delay 0.2 (or you may be able to reduce it).
  8. Like
    therockmandolinist reacted to FroZen_X in Lock alfred?   
    If its just about having the previous query back, then you can also change your settings. Under Advanced -> History -> Activate "Show latest history if within 5 minutes"
    I got the tip from Vero a little while ago: https://twitter.com/alfredapp/status/711159248017858562
  9. Like
    therockmandolinist reacted to deanishe in Lock alfred?   
    Good point. I always forget about that.
  10. Like
  11. Like
    therockmandolinist got a reaction from AnyFlow in Python 3 Support?   
    Alfred-Workflow installs with pip for python3, but on usage it calls modules that don't exist in python3. Is there a way around this, or do scripts need to be run with python 2? Will this change in the future? 
     
    Very new to this, trying to setup my own simple workflow.
  12. Like
    therockmandolinist reacted to deanishe in Packal: Workflow and Theme Repository   
    We've been through this in detail before. And by that, I mean you asked exactly the same question and got a detailed answer.
     

    Water is wet, the sky is blue. Pointing out the obvious doesn't make it any easier to actually do it.
     

    Does that mean you won't post this exact same thing a third time?
  13. Like
    therockmandolinist reacted to cands in Packal: Workflow and Theme Repository   
    Thanks for a great service that really makes it much easier to maintain Alfred. I'm also experiencing this problem. It would not really be an issue if it's just the metadata. However, for me when Packal has updated all workflows (currently 5 of mine have this problem) they are still listed as requiring to be updated, with the same version information as before the update. So these workflows are always listed as "Updates available. There are 5 updates pending", and I do not know whether an update is necessary or not. Would be great if this could be fixed.
×
×
  • Create New...