greenclip icon indicating copy to clipboard operation
greenclip copied to clipboard

[Feature Request / Question] delete last clipboard ( e.g. password)

Open LoneExile opened this issue 2 years ago • 1 comments

I write a script to remove my recent clipboard but it seems broken the greenclip.history file. Is there any work around?

#!/usr/bin/env bash

# grep only first line
RECENTLY=$(greenclip print | grep -m1 .)

echo "$RECENTLY"

# remove what i grep
sed -e s/"$RECENTLY"//g -i "$HOME/.cache/greenclip.history"

LoneExile avatar Aug 19 '22 16:08 LoneExile

It would be nice to be able to remove any entry, something like:

greenclip clear 15

This would remove the 15th entry in the history file. This way we could manage the history file.

heldergg avatar Sep 18 '22 22:09 heldergg