sindresorhus / emoj

Find relevant emoji from text on the command-line :open_mouth: :sparkles: :raised_hands: :horse: :boom: :see_no_evil:
MIT License
2.36k stars 57 forks source link

Request: Auto combine multiple positional arguments #52

Open AndydeCleyre opened 2 years ago

AndydeCleyre commented 2 years ago

Since the only positional argument is the search text, why not accept multiple arguments and internally join them with spaces into a single search, so that the user doesn't need to quote the text?

In other words, make it so that running these commands have the same result:

$ emoj horse unicorn
🐴  🐎  🏇  🎠
$ emoj 'horse unicorn'
🐴  🦄  🐎  🏇  🎠  🌈

And these:

$ emoj i love unicorns

$ emoj 'i love unicorns'
😍  🥰  😘  😗  😚  😻  🤟

EDIT: Hmm, I'm noticing how different the result for that last search are from the same search in the README.

varenc commented 6 months ago

Just came here to report a similar issue.

The example:

$ emoj 'i love unicorns'
🥰  😍  😘  😗  😚  😻  💌

Does not work like described. It doesn't return any unicorns. Even emoji unicorns doesn't return a unicorn. Only emoji unicorn does.