Merge branch 'release/5.0.1'
This commit is contained in:
commit
da2e4dcf0f
|
@ -1,5 +1,7 @@
|
|||
clipmenu is a simple clipboard manager using [dmenu][] (or [rofi][]) and
|
||||
[xsel][].
|
||||
[![Tests](https://img.shields.io/travis/cdown/clipmenu/develop.svg)](https://travis-ci.org/cdown/clipmenu)
|
||||
|
||||
clipmenu is a simple clipboard manager using [dmenu][] (or [rofi][] with
|
||||
`CM_LAUNCHER=rofi`) and [xsel][].
|
||||
|
||||
# Demo
|
||||
|
||||
|
|
4
clipmenu
4
clipmenu
|
@ -35,8 +35,8 @@ fi
|
|||
# argument to override an earlier one. That is, if the user passes in `-l`, our
|
||||
# one will be ignored.
|
||||
chosen_line=$(
|
||||
cat "$cache_file_prefix"_* /dev/null | sort -rnk 1 | cut -d' ' -f2- |
|
||||
awk '!seen[$0]++' | "$CM_LAUNCHER" -l 8 "$@"
|
||||
cat "$cache_file_prefix"_* /dev/null | LC_ALL=C sort -rnk 1 |
|
||||
cut -d' ' -f2- | awk '!seen[$0]++' | "$CM_LAUNCHER" -l 8 "$@"
|
||||
)
|
||||
|
||||
[[ $chosen_line ]] || exit 1
|
||||
|
|
|
@ -190,7 +190,7 @@ while true; do
|
|||
|
||||
# Without checking ${last_data[any]}, we often double write since both
|
||||
# selections get the same content
|
||||
cache_file_output="$(date +%s) $first_line"
|
||||
cache_file_output="$(date +%s%N) $first_line"
|
||||
if [[ ${last_data[any]} != "$data" ]]; then
|
||||
filename="$cache_dir/$(cksum <<< "$first_line")"
|
||||
debug "Writing $data to $filename"
|
||||
|
|
Loading…
Reference in a new issue