Commit Graph

18 Commits

Author SHA1 Message Date
Marty Oehme 7f5c3772e2
🦊 Change download option to work multiple times (#16)
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.
2022-11-10 16:05:23 +01:00
Yann Büchau d03068dba7
Add -n option to prevent newline after emoji (#12)
ci/woodpecker/push/woodpecker Pipeline was successful Details
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>
2022-09-27 21:01:44 +02:00
Yann Büchau ec9020150c
🐛 Let rofi match case insensitively as well (#14)
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-09-09 15:50:17 +02:00
Marty Oehme 05f0e71b9f
📖 Update CHANGELOG and add explanation to usage help
Added quick note that commands can be used in combination and separated
commands from other options to better highlight them.
2022-08-06 11:48:58 +02:00
Marty Oehme a776c63748
🦊 Refactor command functions and variable names
Removed redundant 'redirection' functions which did nothing to change
code and only extended the pipe with an additional `cat` call.

Renamed bm_default_cmd to bm_cmds to reflect its nature as an array.
Since there is not just one command contained in the variable anymore,
it makes much more sense to now call it bm_cmds, note the plural.
2022-08-06 11:48:48 +02:00
Marty Oehme 7e8fc0c51a
Add ability to execute multiple command options
Can combine command options (-c, -t, -e) in any way to simultaneously
clip, type and/or echo the picked results.
Still defaults to clipping, as before.

If a custom default command is given with `BEMOJI_DEFAULT_CMD` env var,
then invoking bemoji without any command option will invoke this
command. Otherwise, the other commands are added to the default given
command.

Additionally, refactor echo command to mirror other commands
Both typing and clipping simply invoke the corresponding program
function while echo had an extra role so far. This adjusts the echo
command to also work the same way.
2022-08-06 11:46:06 +02:00
Marty Oehme 7cec73e2db
📖 Bump version, add to changelog 2022-06-29 12:44:42 +02:00
Marty Oehme 31550448f0
🦊 Add display for directory config to -v option
Added a quick way to see if directories have been set up correctly. This
also eases testing for future ways of setting directories through
environment variables or options.
2022-06-29 12:44:42 +02:00
Marty Oehme 0b255413d0
🦊 Simplify grep string for POSIX compatibility 2022-06-29 12:44:41 +02:00
Marty Oehme 75395d2bbd
🐛 Fix custom command invocation quoting 2022-06-29 12:44:41 +02:00
Marty Oehme 936f19bca6
🧪 Set up default emoji list for tests
Inject a tiny sample emoji list into each test so no download function
is engaged by default.
Add tests for version display.
2022-06-29 12:37:13 +02:00
Marty Oehme f791bf093c
📖 Document version and help options in cli help 2022-06-29 08:20:22 +02:00
Arkadiusz Wieczorek 3c2a8b9894
 Fix parameter order for xdotool
* Change parameter's order for xdotool
* Fix order parameters

Thanks to @arkadiusz-wieczorek for spotting and fixing the bug.
Fixes #3
2022-01-07 12:10:39 +01:00
Marty Oehme 8a31a36280
Add version option
You can now ask the program for its version with `bemoji -v`.
2021-12-01 22:31:27 +01:00
Marty Oehme afdfc53bfe
🦊 Remove useless cat 2021-12-01 22:16:46 +01:00
Marty Oehme 52bf358187
📃 Improve usage screen
Improved usage message to display all currently available default
download options.
2021-12-01 22:15:30 +01:00
Marty Oehme 08947772aa
🦊 Switch from sh to bash
Switched to bash to ensure compatibility with the arrays the code uses.
2021-12-01 22:12:31 +01:00
Marty Oehme b1361617e7
initial commit 2021-12-01 15:51:48 +01:00