Hey
I really like the unicode support in Julia. But sometime it’s hard to differentiate different latex character. Wouldn’t it be nice if there were a way to look them up and maybe get the latex source code (\alpha for α)
Hey
I really like the unicode support in Julia. But sometime it’s hard to differentiate different latex character. Wouldn’t it be nice if there were a way to look them up and maybe get the latex source code (\alpha for α)
help?> α
"α" can be typed by \alpha<tab>
Oh thanks. That’s great!
help?> 👍
search:
Couldn't find 👍
Perhaps you meant ❌, 👍, !, %, &, *, +, -, /, :, <, >, \, ^, |, ~, ÷, π, ℯ, ∈, ∉, ∋, ∌, ∘, √, ∛, ∩, ∪, ≈, ≉, ≠, ≡, ≢, ≤, ≥, ⊆, ⊇, ⊈, ⊉, ⊊, ⊋, ⊻, !=, //, <:, <<, <=, ==, =>, >:, >=, >>, GC, cd, cp, fd, im, in, mv, pi, rm, |> or IO
No documentation found.
Binding 👍 does not exist.
julia>
You can also get more info by just quoting a single character in single quotes:
julia> '👍'
'👍': Unicode U+01f44d (category So: Symbol, other)
julia> '\U01f44d'
'👍': Unicode U+01f44d (category So: Symbol, other)
which will work for characters that don’t have a LaTeX shortcut built in to the REPL.
But \:+1:
gives
I don’t know any easy way of finding out except Unicode Input · The Julia Language
This seems to be a bug in the help … typing ?👍
should show this (or any other) tab-completion shortcut. The required patch seems to be trivial if anyone wants to put together a PR: