clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 3e50f9460ab6a019e160142a51d09b6b7bb74b73
parent 6e6c4ed4309847bfcbbc0f086af3e1bb39c5faee
Author: Chris Down <chris@chrisdown.name>
Date:   Thu,  3 Nov 2016 20:36:58 -0600

Uniquify adjacent identical selection items

This is a potential solution for #30.

Diffstat:
Mclipmenu | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clipmenu b/clipmenu @@ -39,7 +39,7 @@ done # whether `-l` is also in "$@", because the way that dmenu works allows a later # argument to override an earlier one. That is, if the user passes in `-l`, our # one will be ignored. -chosen_line=$(printf '%s\n' "${ordered_selections[@]}" | dmenu -l 8 "$@") +chosen_line=$(printf '%s\n' "${ordered_selections[@]}" | uniq | dmenu -l 8 "$@") [[ $chosen_line ]] || exit 1