On 31 May 2020, at 3:50, Oliver Ford wrote:
rather than every user figuring out the correct command independently
It does indeed seem wrong that `pass` should support every clipboard manager out there.
On macOS the convention is to mark the clipboard item with `org.nspasteboard.ConcealedType` so that clipboard managers know that they should not add the item to the history, details at http://nspasteboard.org/ - Although `pass` doesn’t actually follow this convention on macOS, as the shell command to store items on the clipboard does not allow adding auxiliary types.
Furthermore, some clipboard managers have heuristics to identify password items.
I am not familiar with Linux clipboard and its clipboard managers, but is there any way to tag the data?
Alternatively, is there any way to setup a regular expression to identify passwords?
I see from your commit that the `clipdel` command already support deleting by regular expression, so it seems like worst-case one could setup a cronjob to regularly prune passwords from its history.
