Same as the other symbol download options, this one takes a list of all
nerdfont icons and wrangles them into shape to be usable with the emoji
picker. Can be used by invoking `bemoji -D nerd` or `bemoji -D all`.
Fixes #10.
Instead of `-P` being a flag for showing history it has become an option
whose argument is the number of history entries to show, `-P 4`.
To mimic the old behavior use `-P 0`.
Added some test coverage for history functionality.
Fixes #1.
Previously, stdin contents were consumed and then not passed through to
the typing tool. With this commit, they are correctly passed to any
custom tool's stdin.
Fixes #19.
When making no selection, i.e. cancelling during the selection process
the program will return status code 1, whereas before it would carry the
same return code as when making an emoji selection.
Fixes #20.
Switched the history from using the XDG_CACHE_HOME directory by default
to use XDG_STATE_HOME by default.
This makes sense since cache can (and should be prepared to) be wiped at
any moment and the program functionality should not be hindered by this.
Since we need to retain history through such wipes the newly introduced
state directory is the perfect match for keeping the history file in.
This does constitute a breaking change for existing histories which need
to be moved to the new directory if they made use of the old cache
directory.
Concurrent with this we are renaming `XDG_CACHE_LOCATION` environment
variable to `XDG_HISTORY_LOCATION` so this is a second breaking change
for those using a custom location for their histories.
This change attempts to make the naming scheme coherent and remove some
left-over naming cruft from the old location being the cache directory.
This provides one of the larger changes to the program so far.
Fixes #5.
Changed `-D` option to always download the lists supplied, regardless of
the database directory being empty or not.
This means you can download additional lists after the first program
run, or re-download lists later on. It *will* overwrite your custom
changes however if your files are called the same as the default list
names.
Additionally removed dependency on GNU version of cut and added some
simple tests for the download functionality.
Fixes #16.
Adds another commandline option `-n` to the application which prevents
newlines from being added at the end of each output.
Disabled by default.
Co-authored-by: Marty Oehme <marty.oehme@gmail.com>