Jump to content

amoose136

Member
  • Posts

    28
  • Joined

  • Last visited

  • Days Won

    3

amoose136 last won the day on February 23 2017

amoose136 had the most liked content!

Contact Methods

  • Twitter
    @amoose136

Recent Profile Visitors

1,572 profile views

amoose136's Achievements

Member

Member (4/5)

7

Reputation

  1. from __future__ import print_function print('{:.2f}'.format(42.022345545456)) Will return 42.02 You could you pyperclip to write to the clipboard or pass the object along to the Alfred clipboard object. Dean Jackson's Alfred-Workflow library can handle the interface with Alfred if you need more complexity.
  2. I made something similar here using unicode: https://github.com/amoose136/Alfred-Unicode-Math-Snippets
  3. Regarding caching, perhaps you could create a hidden folder with a custom file type that contains the item json from a result from a workflow. This folder could be added to the Alfred scope and the file type (possibly .item or something similar) could also be added. Actioning the item could trigger the workflow it came from and figure out what to actually do on runtime. The only part not handled is expiration of items as the workflows wouldn't actually run to check if items need to be flushed until an item is called. Ideally you'd want the ability to have these files self delete after some time even if the workflow hasn't been recently called.
  4. As of the most recent update today (2.2), the number format checking has been removed. Adding it was based on some falsehoods. I also implemented a workaround for an Apple Event Handler failure that occasionally appears in recent macOS updates and causes FaceTime to open instead of contact calling to happen. A complete python rewrite is in the works to fix some of the bigger issues.
  5. So I was hopeful you might have found a better way of finding contacts but it looks like you're still using my script almost verbatim right now. My way works but it's necessarily slow (I even had to add that .5 s delay in there for stability) and doesn't handle multiple numbers on a single contact or allow you to set the results' icons to their corresponding contact pictures if they have one. Stay tuned though because I'm rewriting mine currently in python to handle these cases.
  6. Alfred is fairly consistently slow the first time I open it after not using it for a few hours. By "slow" I mean the window pops up but is frozen for about 2-4 seconds before anything you type appears in it during that window of time. After that 2 seconds, everything that was typed appears all at once. I don't know what is causing this. I have a bunch of workflows but none of them should be running until they are selected... Are there any startup diagnostics tool to figure out what the cause of this slowness is? Without some kind of tool to isolate what is causing the error I don't know how to tell other people how to make Alfred replicate the behavior.
  7. A snippet pack to make putting the true unicode equivalents of things like :sparkles:, :lipstick:, and other emojis used in git commits easier to type. It gives them names relevant to coding. Of course the official gitmoji has a CLI but suppose you want to use an IDE or don't want to install npm but already have Alfred Powerpack, or you just want a more inline way way of adding emoji, or you want the emoji to work with $git log (e.g. :sparkles: will not be interpreted by git log); if so, this is for you. Examples: :sparkles: -> :add: Because one uses ✨ when adding new features :penguin: -> :lin: Because one uses ? when making linux related changes :checkered_flag: -> :win: Because one uses ? for windows related changes :heavy_plus_sign: -> :+dep: Because one uses ➕ when adding dependencies etc.. Added benefit of making emojis appear with $git log because they are just unicode after using this. Inspired by: https://gitmoji.carloscuesta.me/ And also: https://github.com/atom/atom/blob/7929e261a0d6e78ff4ca5196c8b385946e64dbd9/CONTRIBUTING.md#git-commit-messages Full mapping details and download is available on the github
  8. Hmm perhaps someone will integrate this into the video downloader workflow.
  9. Excellent. I already have a few ideas on how to use this.
  10. I have a couple questions. How does Alfred know where "Alfred.alfredpreferences" is? Mine is synced via Dropbox but in principle my Dropbox folder could be anywhere. Within Alfred.alfredpreferences/preferences/local there are 5 folders with long (pseudorandom?) strings that I assume are uuids for something. Within each of these the structure is mostly the same but only one appears to contains the plists that actually control Alfred. How does Alfred know which folder this is? I assume that each folder corresponds to a different computer/Alfred install or something but I still need a way of finding what the right uuid is.
  11. Building on what Deanishe said in the previous thread, I found this. If you make it run an applescript to trigger an Alfred workflow you could have self calling workflows if you want. It's not accessible certainly but it's still possible.
  12. Lets you write things like ⌘⌥⇧␣⎋ with ease. Screenshot/List of Snippets Download Download latest from releases. Released under Unlicense / Public Domain. http://unlicense.org/
  13. So there's an autoexpand snippets toggle check box that I find myself opening the settings gui to toggle far too often. I use a number of snippets but it isn't the best to have the autoexpand feature on when coding for example. Two possible solutions: add blacklist of applications the text expansion service should ignore or make api so the this setting can be toggled from a workflow. I would have already made a workflow actually but I'm not sure where Alfred stores this setting.
  14. I concur with the above. Focus on the desktop app until Apple takes a better approach to keyboards. Even the top rated 3rd party keyboards have significantly slower startup times than the stock iOS keyboard so in my mind they're not worth it at the moment. A .5-1 delay at every keyboard open is just too much. Right now I manually added my most import text replacements to the iOS system text replacement service. It's supposed to sync with the laptop via iCloud but that part has been broken for the entire life of iOS 9 and most of 8. The other super painful part is each snippet must be added by hand. I might be able to make a stupid sideloaded app (because it would never have Apple's blessing in a million years) that would import snippets from a csv file but that's not terribly likely and very low on my priorities.
  15. Although I think it usually best if options are accessed through workflow feedback and keyboard controls, would it be possible to add support for notifications with response buttons to Notify.app? For some options you might want to deliberately slow down a choice if the script/workflow is about to do something that will take a lot of resources. In the apple developer documentation examples (see (void)showNotificationAlert) it doesn't look like it's that hard to create notifications with buttons.
×
×
  • Create New...