Giter VIP home page Giter VIP logo

alfred-gitmoji's Issues

Use a unique icon for each item

Hi there, thanks for the awesome workflow!

I thought a cool UI change would be to use the emoji itself as the icon of each workflow item.

Alfred doesn’t support using emoji for icons, but we can programmatically grab pngs from Emoji One to use instead.

I've had this going over in my fork for a while; let me know if you'd like a PR!

Working example

emoji = ["🎨","⚡️","✨","🏷️"]
esc_seqs = ['\\U000', '\\u']
for i in emoji:
    unicode_char = i.decode('utf-8')
    ascii_char = unicode_char.encode('unicode-escape')
    codes = ascii_char
    for x in esc_seqs:
        codes = codes.replace(x, " ").split()[0]
    filename = codes.split()[0] + ".png"
    print unicode_char + " -> " + ascii_char + " -> " + filename

returns:

🎨 -> \U0001f3a8 -> 1f3a8.png
⚡️ -> \u26a1\ufe0f -> 26a1.png
✨ -> \u2728 -> 2728.png
🏷️ -> \U0001f3f7\ufe0f -> 1f3f7.png

Script location or permission issue on macOS 12.5

I just (finally) upgraded to macOS Monterey and whatever new filesystem crap they introduced seems to have broken a few Alfred workflows, including this one. I'm trying to get to the bottom of it myself, but this is what I'm seeing:

posix_spawn

...permissions are already a+x so I'm thinking it can't find the script?

permissions

Let me know if you have any ideas here. I already uninstalled and reinstalled the workflow, but I'll try to poke at a bit more when I have time.

Thanks for the workflow!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.