I really appreciate the section on alternatives¹, and I wish more people would add these to their projects. Not only does it show the author is aware of the current landscape, it may even help users to find tools that better fit their needs. Imagine a tip of my virtual hat, @Carpetsmoker!
From the README's notes on emoj "not a fan of npm (has 1862 dependencies)", I'm actually tempted to try that just to find out if it is true ;)
And yet, among the alternatives, there is no mention of `unicode`, a standard-ish command line tool that does more or less the same thing and is available in common Linux distros since ~2005.
Example output (the CLI's output is colored):
$ unicode €
U+20AC EURO SIGN
UTF-8: e2 82 ac UTF-16BE: 20ac Decimal: € Octal: \020254
€
Category: Sc (Symbol, Currency)
Bidi: ET (European Number Terminator)
$ unicode
U+1F30D EARTH GLOBE EUROPE-AFRICA
UTF-8: f0 9f 8c 8d UTF-16BE: d83cdf0d Decimal: 🌍 Octal: \0371415
Category: So (Symbol, Other)
Bidi: ON (Other Neutrals)
U+1F3E4 EUROPEAN POST OFFICE
UTF-8: f0 9f 8f a4 UTF-16BE: d83cdfe4 Decimal: 🏤 Octal: \0371744
Category: So (Symbol, Other)
Bidi: ON (Other Neutrals)
I am not being sarcastic here. I am just noticing that the software landscape is vast, and that it is often hard to know what exists out there. Even old glories are forgotten.
There should be an interdisciplinary stackoverflow where you can ask: "does this already exist?"
I can't find that one in Void or Arch, but did find it in Debian[1]. I think this is the homepage[2] (Debian packages don't seem to have a clear field for this?) I'll add it to the list.
I mainly searched for "emoji" tools, as that's the real reason I wanted this, so I probably missed a zillion scripts. That list is by no means intended to be comprehensive.
> There should be an interdisciplinary stackoverflow where you can ask: "does this already exist?"
https://alternativeto.net is not too bad, although it takes a while for new projects to appear and also sometimes when a tool does x and y and you're looking for an alternative for x, only alternatives for y are shown.
It's just shell and rofi, and from an IDE can easily be hooked to a key combination. As it's shell, it's also easy to tweak if needed.
For those using X11, I found that xdotool used by charpicker has some limitation. From the xdotool man page: "Typing unusual symbols under non-us keybindings is known to occasionally send the wrong character.", and I've seen it happens with unicode characters. Instead, one can paste to the X11 clipboard:
echo -n "$selected_symbol" | xclip -i
And then fake a middle click to insert in the current application:
xdotool click 2
It's still using xdotool but just to send a click not process the inserted character. That's never failed for me so far.
There's also a Perl script with the same name since 2009, written by Audrey Tang (of pugs fame) and then rewritten by Ricardo Signes (of Dist::Zilla fame). I've used this script for years, not realizing there were other implementations of it. Nice to know.
I mostly use it for trivial stuff like proper Unicode arrows → instead of ASCII ->, but I think it's pretty cool to have the option to type any Unicode character I want.
What are you meaning by “hover”? All I know of is ga (a.k.a. the misnamed :ascii), which tells you the decimal, hex and octal for the Unicode scalar values, but doesn’t give you a name.
Yeah, you can do a lot with it. One of the (unstated) ideas behind uni is that it can work as a backend for a lot of different integrations: dmenu, Vim, fzf, Emacs, a more domain-specific emoji picker GUI, etc.
Other than this, the feature set is roughly similar. The biggest difference is that uni knows how to deal with emoji sequences.
fzf-vim's :BLines¹ can enable a live search for most basic needs. For example, something like unicode.vim's :UnicodeTable, followed by :BLines, then yl to grab the char.
Note: I'm only pointing this out in the general case of wanting a live search on some data, because uni and the provided uni.vim seem to be a far better solution anyway.
From the README's notes on emoj "not a fan of npm (has 1862 dependencies)", I'm actually tempted to try that just to find out if it is true ;)
1. https://github.com/arp242/uni/blob/master/README.markdown#al...