Jump to content

Mr Pennyworth

Member
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Mr Pennyworth

  1. If you could upload the logs somewhere / paste here, I can take a look :)

     

    8 hours ago, Steven Hsieh said:

    And also I'm not sure which key words to use to simply find a word in all dictionaries.

    The way the workflow is structured, it's not possible to do this :(

  2. This is how the workflow and the connections inside should look:

    image.thumb.png.80ddbbcc4821ab94058265fdcfb85879.png

     

    This is how the one you exported looks like:

    image.thumb.png.f96b76b11f47db5a5a06714ab0fd8f32.png

     

    The original workflow doesn't support arbitrary modifications.
    The only supported modification is:

    1. copy a pair of yellow nodes

    2. edit the keyword in the copied big yellow node and the "searchdir" variable in small yellow node

    3. just like the other yellow nodes are connected, (big yellow -> small yellow -> (white and orange)) establish exactly the same connections in your copied nodes too

     

    Right now it looks like you have customized/modified the workflow beyond the intended way of modification.

    Do tell me if you have any questions or need further clarification or explanation :)

  3. 2 hours ago, 40-02 said:

    It seems like what I was looking for many times! 

    Glad you find it useful! :)

     

    2 hours ago, 40-02 said:

    I'm not sure if it is worth point here, but help with installation notes looks like this now. Probably that was expected, as everything is readable there. But still. 

    That's a good point! I should change it when I get around to it :)

     

    2 hours ago, 40-02 said:

    Is it possible to search in several folders in one search?

    Nope, that's not possible right now, and unlikely to be implemented. That's because I haven't yet found the need where I frequently search inside multiple folders. Especially given that it is fuzzy search, most of the time, just searching the parent folder should do.

  4. 12 minutes ago, deanishe said:

    Fuzzy Folders is also really slow.

    Oh interesting!
    Is it because of python or mdfind?

    I couldn't really use Fuzzy Folders because most of the files I keep searching for reside in symlinked folders which spotlight does not index.

     

    14 minutes ago, deanishe said:

    I'd imagine your workflow is much faster.

    Haven't done a comparison, but it does give a satisfying "instantly update search results as you type each letter" (instantly meaning less than 90 milliseconds on my 2013 mbp to search through 15k files)

  5. Instant Fuzzy File Search: Download

     

    List all the files inside a folder using fd, and instantly fuzzy-search through all of them using fzf, all from inside Alfred with a single keyword: fzf.


    Screenshots

    Invoke with fzf
    invocation.png

    Search through tens of thousands of files
    filecount.png

    Fuzzy search shows most relevant results
    search-results.png

    There's a folder action too!
    folder-actions.png

    Search even inside apps
    app-bundle-search.png

    Manually create folder-specific keywords
    examples.png

     

    Alternative and comparison
    Fuzzy Folders is another fuzzy search workflow that is more configurable and customizable. Instant Fuzzy File Search doesn’t have any plans to match all the features supported by Fuzzy Folders. Neither does it aim to be as easy to customize. Take a look at the table below for a quick comparison between the two.

     

    image.thumb.png.06619facb658e8524e52671e0060d4fd.png

     

  6. 4 hours ago, luckman212 said:

    inside my Python script

    Oh you are already using a python script!!

    That changes things!

    The biggest performance problem I have with python scripts for workflow is the interpreter startup time.

    For a script that has already started, the additional cost of calling the AppKit API seems to be negligible.

     

    Take a look at this ipython session:

    In under 70 milliseconds, the code has queried bundle ID 10,000 times.

    Not that's consistent with the next one where it took 8 milliseconds to query the bundle ID 1000 times.

    In [1]: import timeit
    
    In [2]: imports = 'from AppKit import NSWorkspace'
    
    In [3]: code = 'NSWorkspace.sharedWorkspace().frontmostApplication().bundleIdentifier()'
    
    In [4]: timeit.timeit(setup=imports, stmt=code, number=10000)
    Out[4]: 0.068
    
    In [5]: timeit.timeit(setup=imports, stmt=code, number=1000)
    Out[5]: 0.008

     

  7. 2 hours ago, deanishe said:

    If using a hotkey is out (Alfred can give you the bundle ID), you should use AppleScript or JXA instead: it's a lot faster than importing PyObjC libraries.

    Or even faster, you could use swift.
    The applescript one takes ~800 milliseconds on my machine

    Swift one takes ~80 milliseconds

     

    import AppKit
    print(NSWorkspace.shared.frontmostApplication?.bundleIdentifier ?? "Unknown")

     

    Disclaimer: hardly any rigorous testing / benchmarking:

    image.thumb.png.c907c5e17aacec9f8d369de3dc9f9921.png

  8. 2 hours ago, Chris Messina said:

    I have a Workflow that will extract Asset Catalogs with a hotkey. I use it constantly! Let me know if I should release it.

    Yes, please! 😊

     

    2 hours ago, Chris Messina said:

    BTW, I'm in touch w/ the Cleanshot developer. If there are features or improvements you'd like to suggest, let me know! 

    Could you ask them where they store the shortcuts?

    It would be nice to list those shortcuts as subtitles for the workflow! 😇

  9. 2 hours ago, vitor said:

    But I think you’ll like this more: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump URLSchemeBinding. It shows every available URL scheme (on your machine).

    This is amazing!!! 🎉

     

    2 hours ago, vitor said:

    As to how to use them, that’s the job of the developer’s documentation.

    Unfortunately CleanShot X doesn't have any :(

    I had to go digging into the package bundle and had to resort to strings and got lucky at some places

    strings /Applications/CleanShot\ X.app/Contents/PlugIns/AnnotateShareExtension.appex/Contents/MacOS/AnnotateShareExtension | grep cleanshot
    
    # printed: cleanshot://share-extension-annotate?filepath=
    
    strings /Applications/CleanShot\ X.app/Contents/PlugIns/PinShareExtension.appex/Contents/MacOS/PinShareExtension | grep cleanshot
    
    # printed: cleanshot://share-extension-pin?filepath=
    
    

     

  10. 3 hours ago, Chris Messina said:

    Ha! I made a much more basic version of this but never released it... nice job! 

    Thanks @Chris Messina! :)

    Damn, you should've released it!!

     

    I have a couple of questions:

    1. Did you also find out about the cleanshot:// urls from Raycast? If not, please do tell how you went about it, it might come handy for other apps!
    2. Did you extract those icons from CleanShot's assets.car? If not, again, please do tell! (I have zero design chops or any related abilities, so it might come handy to me later on)

     

  11. On 5/27/2021 at 5:57 PM, deanishe said:

    Right. Somehow I managed to completely miss the "context menu" part despite it being in your post and the thread title… Sorry.

    Hey @deanishe I see your "I missed 'context menu'" and I raise you to "I missed the whole paragraph about not wanting to use another app" 🤣

     

    @vitor has a nice and gentle way of asking "have you even read the post fully?"
    Thanks! 😇

×
×
  • Create New...