mrichar1 / clipster

clipster - python clipboard manager
GNU Affero General Public License v3.0
242 stars 26 forks source link

Clear clipboard after a configurable period of time #88

Open rayx opened 5 years ago

rayx commented 5 years ago

If there is no X clients owning primary selection, Clipster acquires the ownership and updates it with the latest entry in history. This is how clipboard manager typically does and it's convenient. However, it also has a side effect that makes stale text selection persistent.

For example, suppose I selected a piece of text in some application twenty minutes ago, now I want to check if I have just selected some text (e.g., by using command line tool like xsel). This is impossible if Clipster is running, because it always returns something.

I have a lot of commands in bash and emacs that depends on the check. For example, if I have just selected some text, search command will use that text directly rather than prompt me to input the text to search for. I don't know if there are popular tools depending on this behavior, but I think it might be useful to add a configuration option (e.g. a timeout value, which defaults to 0 and disables the features), and Clipster clears clipboard after the specified time pass.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.