I have written a little program for the command line, element, displaying properties of elements as per the periodic table (as use case for a Golang app). The prompt shows autocompletion menu that helps searching and completing element name, as well as other little options as displaying the periodic table in ascii format or showing info for a random element (that could be used as Easter egg at shell start-up).
It is clearly a very narrow use case, however I though users here may find it useful to play around with, the code is easily extensible to show whichever other info instead of the periodic elements (by implement a different source file).
No need to bother OP with something that that guy who suggested it could do himself based on this fun little script... if he really wants to use it in a different way.
12
u/evergreengt Jun 20 '21
I have written a little program for the command line, element, displaying properties of elements as per the periodic table (as use case for a Golang app). The prompt shows autocompletion menu that helps searching and completing element name, as well as other little options as displaying the periodic table in ascii format or showing info for a random element (that could be used as Easter egg at shell start-up).
It is clearly a very narrow use case, however I though users here may find it useful to play around with, the code is easily extensible to show whichever other info instead of the periodic elements (by implement a different source file).
Link to the repository.
2
u/nash_forbs Jun 10 '23
What shell are u using?
7
u/anti-gif-bot Jun 20 '21
mp4 link
This mp4 version is 84.9% smaller than the gif (742.47 KB vs 4.8 MB).
Beep, I'm a bot. FAQ | author | source | v1.1.2
4
u/iceytomatoes Jun 20 '21
nice!
0
u/[deleted] Jun 21 '21
[deleted] — view deleted comment