Jump to content

ProHaller

Member
  • Posts

    3
  • Joined

  • Last visited

Reputation Activity

  1. Like
    ProHaller reacted to vitor in LuckyPaste   
    Welcome @Hare,
     
    You don’t need the #!/usr/bin/env python3 line. Because you’ve already set the language to /usr/bin/python3, that line isn’t doing anything. But it isn’t harmful either.
     
    Another thing which doesn’t stop inclusion but would be an improvement would be adding a background to the icon. As it is it will be hard to see on dark themes. https://font2png.com is a nice source for icons, I recommend adding rounded corners to the background.

    However, several other things stop this from being added as is:
    sys.path.append('/opt/homebrew/lib/python3.10/site-packages'). That assumes an installation on Apple Silicon (not Intel) and only Python 3.10, which isn’t even the latest on Homebrew. The whole script has to work with /usr/bin/python3 alone. You’re requiring people to set their own cx and api_key  in the code. That’s a no-go. In addition to not being documented, many users will have no idea how to do that. Any information a user needs to fill has to be done as Workflow Configuration. This only works with a Hotkey on selected text. It should work with a Universal Action and Keyword Input as well. I’ll need the key details to properly test the workflow. These can—naturally—be temporary ones made for the purpose and provided via DM. They’re only necessary for long enough to ensure everything is working.
    Do let me know if you need any clarification. The idea is fun. 
×
×
  • Create New...