Compare commits
No commits in common. "1b5e9c1284ede59d771bfd43780cc8f6f7446f38" and "b9c4ea7c77efd81584bac2d4c5c2b99dd22a469f" have entirely different histories.
1b5e9c1284
...
b9c4ea7c77
2 changed files with 6 additions and 9 deletions
|
|
@ -137,7 +137,7 @@ Put both together to completely ignore the recent emoji feature of the program
|
||||||
bemoji -p -P0
|
bemoji -p -P0
|
||||||
```
|
```
|
||||||
|
|
||||||
Like this, you'll be hiding any recent personal emoji and keep any new ones you use out of your history.
|
Like this, you'll be hiding any recent personal emoji and no one will know that you always type 👄🍆💦.
|
||||||
|
|
||||||
To limit the number of your recently used emoji that are shown without hiding them completely simply increase the number to however many you wish to display.
|
To limit the number of your recently used emoji that are shown without hiding them completely simply increase the number to however many you wish to display.
|
||||||
For example, to display only the top 4 recently used emoji:
|
For example, to display only the top 4 recently used emoji:
|
||||||
|
|
|
||||||
13
bemoji
13
bemoji
|
|
@ -180,7 +180,6 @@ dl_nerd_symbols() {
|
||||||
}
|
}
|
||||||
|
|
||||||
gather_emojis() {
|
gather_emojis() {
|
||||||
local result
|
|
||||||
if [ -n "$BEMOJI_CUSTOM_LIST" ] && [ -f "$BEMOJI_CUSTOM_LIST" ]; then
|
if [ -n "$BEMOJI_CUSTOM_LIST" ] && [ -f "$BEMOJI_CUSTOM_LIST" ]; then
|
||||||
result=$(cat "$BEMOJI_CUSTOM_LIST")
|
result=$(cat "$BEMOJI_CUSTOM_LIST")
|
||||||
elif [ -n "$BEMOJI_CUSTOM_LIST" ] && curl -fsSI "$BEMOJI_CUSTOM_LIST" >/dev/null 2>&1; then
|
elif [ -n "$BEMOJI_CUSTOM_LIST" ] && curl -fsSI "$BEMOJI_CUSTOM_LIST" >/dev/null 2>&1; then
|
||||||
|
|
@ -198,12 +197,12 @@ gather_emojis() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_most_recent() {
|
get_most_recent() {
|
||||||
local limit=${1}
|
limit=${1}
|
||||||
local recent_file="$bm_history_file"
|
recent_file="$bm_history_file"
|
||||||
if [ ! -f "$recent_file" ]; then
|
if [ ! -f "$recent_file" ]; then
|
||||||
touch "$recent_file"
|
touch "$recent_file"
|
||||||
fi
|
fi
|
||||||
# TODO: improve this messy line
|
# TODO improve this messy line
|
||||||
local result
|
local result
|
||||||
result=$(sed -e '/^$/d' "$recent_file" |
|
result=$(sed -e '/^$/d' "$recent_file" |
|
||||||
sort |
|
sort |
|
||||||
|
|
@ -245,15 +244,13 @@ _clipper() {
|
||||||
|
|
||||||
# Set default typing util
|
# Set default typing util
|
||||||
_typer() {
|
_typer() {
|
||||||
local totype
|
|
||||||
totype=$(cat -)
|
|
||||||
|
|
||||||
if [ -n "$BEMOJI_TYPE_CMD" ]; then
|
if [ -n "$BEMOJI_TYPE_CMD" ]; then
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
${BEMOJI_TYPE_CMD[@]} "$totype"
|
${BEMOJI_TYPE_CMD[@]}
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
totype=$(cat -)
|
||||||
if [ -n "$WAYLAND_DISPLAY" ] && command -v wtype >/dev/null 2>&1; then
|
if [ -n "$WAYLAND_DISPLAY" ] && command -v wtype >/dev/null 2>&1; then
|
||||||
wtype -s 30 "$totype"
|
wtype -s 30 "$totype"
|
||||||
elif [ -n "$DISPLAY" ] && command -v xdotool >/dev/null 2>&1; then
|
elif [ -n "$DISPLAY" ] && command -v xdotool >/dev/null 2>&1; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue