Re: pass password thru a filter on way to clipboard?
Andrew, > xsel has a timeout option, and xclip has a (more useful for this case, > IMHO) loops option which only allows the data to be pasted N times. nice! thanks! ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store
Re: pass password thru a filter on way to clipboard?
xsel has a timeout option, and xclip has a (more useful for this case, IMHO) loops option which only allows the data to be pasted N times. On Nov 26, 2017 14:25, "Greg Minshall"wrote: > hi, Till, > > yes, i could do the pipeline outside of pass. however, "pass -c" does > this nice thing of clearing the selection after N seconds, and i'd like > to retain that (without implementing it myself). > > cheers, Greg > ___ > Password-Store mailing list > Password-Store@lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/password-store > ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store
Re: pass password thru a filter on way to clipboard?
hi, Till, yes, i could do the pipeline outside of pass. however, "pass -c" does this nice thing of clearing the selection after N seconds, and i'd like to retain that (without implementing it myself). cheers, Greg ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store
Re: pass password thru a filter on way to clipboard?
My apologies -- this message was sent in error. On 25/11/17 17:56, Alec Clews wrote: Thanks for the suggestion. However it had no affect. /usr/local/bin/pandoc --number-sections -s -smart -f markdown+startnum BlogPost.pmd -o BlogPost.docx [WARNING] Deprecated: --latexmathml Could this be a bug? I am happy to supply input markdown file. On 24/11/17 21:49, Till Schäfer wrote: Hi, you can also just use the show command and pipe it through the standard tool chain of your shell. If you are using X, you can then pipe it to the X clipboard via xclip. pass show XYZ | head -n 1 | tr -d '\n' | sed 's/ //g' | xclip -selection clipboard A little bit formatting noise, but it works. It would be nice to directly specify the line, which should be shown by pass show. Regards, Till Am Donnerstag, 23. November 2017, 23:42:26 CET schrieb Greg Minshall: hi. pass make me very happy -- thanks very much! my basic, silly, use case, is credit card numbers. i like to store them with spaces separating groups of 4 digits ("1234 5678 9012 3456"), but web sites typically want them space-free. so, in *this* case, i'd like to pass them through "sed 's/ //g'" on the way to the clipboard. in general, it might be nice to allow some arbitrary filter to be inserted, maybe where "pass" is set in cmd_show? (where it would apply with or without -c.) (though some more specific thing, like an option to exclude spaces, would likely be more secure, so...) i don't think that can be done as an add-on (without duplicating all of cmd_show, i'd guess). cheers, and again thanks, Greg Minshall ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store -- Alec Clews PersonalMelbourne, Australia. Jabber: aleccl...@jabber.org.au PGPKey ID: 0x9BBBFC7C blog:http://alecthegeek.github.io/ ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store
Re: pass password thru a filter on way to clipboard?
Thanks for the suggestion. However it had no affect. /usr/local/bin/pandoc --number-sections -s -smart -f markdown+startnum BlogPost.pmd -o BlogPost.docx [WARNING] Deprecated: --latexmathml Could this be a bug? I am happy to supply input markdown file. On 24/11/17 21:49, Till Schäfer wrote: Hi, you can also just use the show command and pipe it through the standard tool chain of your shell. If you are using X, you can then pipe it to the X clipboard via xclip. pass show XYZ | head -n 1 | tr -d '\n' | sed 's/ //g' | xclip -selection clipboard A little bit formatting noise, but it works. It would be nice to directly specify the line, which should be shown by pass show. Regards, Till Am Donnerstag, 23. November 2017, 23:42:26 CET schrieb Greg Minshall: hi. pass make me very happy -- thanks very much! my basic, silly, use case, is credit card numbers. i like to store them with spaces separating groups of 4 digits ("1234 5678 9012 3456"), but web sites typically want them space-free. so, in *this* case, i'd like to pass them through "sed 's/ //g'" on the way to the clipboard. in general, it might be nice to allow some arbitrary filter to be inserted, maybe where "pass" is set in cmd_show? (where it would apply with or without -c.) (though some more specific thing, like an option to exclude spaces, would likely be more secure, so...) i don't think that can be done as an add-on (without duplicating all of cmd_show, i'd guess). cheers, and again thanks, Greg Minshall ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store -- Alec Clews PersonalMelbourne, Australia. Jabber: aleccl...@jabber.org.au PGPKey ID: 0x9BBBFC7C blog:http://alecthegeek.github.io/ ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store
Re: pass password thru a filter on way to clipboard?
Hi, you can also just use the show command and pipe it through the standard tool chain of your shell. If you are using X, you can then pipe it to the X clipboard via xclip. pass show XYZ | head -n 1 | tr -d '\n' | sed 's/ //g' | xclip -selection clipboard A little bit formatting noise, but it works. It would be nice to directly specify the line, which should be shown by pass show. Regards, Till Am Donnerstag, 23. November 2017, 23:42:26 CET schrieb Greg Minshall: > hi. pass make me very happy -- thanks very much! > > my basic, silly, use case, is credit card numbers. i like to store them > with spaces separating groups of 4 digits ("1234 5678 9012 3456"), but > web sites typically want them space-free. so, in *this* case, i'd like > to pass them through "sed 's/ //g'" on the way to the clipboard. > > in general, it might be nice to allow some arbitrary filter to be > inserted, maybe where "pass" is set in cmd_show? (where it would apply > with or without -c.) (though some more specific thing, like an option > to exclude spaces, would likely be more secure, so...) > > i don't think that can be done as an add-on (without duplicating all of > cmd_show, i'd guess). > > cheers, and again thanks, Greg Minshall > ___ > Password-Store mailing list > Password-Store@lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/password-store > -- Dipl.-Inf. Till Schäfer TU Dortmund University Chair 11 - Algorithm Engineering Otto-Hahn-Str. 14 / Room 237 44227 Dortmund, Germany e-mail: till.schae...@cs.tu-dortmund.de phone: +49(231)755-7706 fax: +49(231)755-7740 web: http://ls11-www.cs.uni-dortmund.de/staff/schaefer pgp: https://keyserver2.pgp.com/vkd/SubmitSearch.event?&=0xD84DED79 ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store
pass password thru a filter on way to clipboard?
hi. pass make me very happy -- thanks very much! my basic, silly, use case, is credit card numbers. i like to store them with spaces separating groups of 4 digits ("1234 5678 9012 3456"), but web sites typically want them space-free. so, in *this* case, i'd like to pass them through "sed 's/ //g'" on the way to the clipboard. in general, it might be nice to allow some arbitrary filter to be inserted, maybe where "pass" is set in cmd_show? (where it would apply with or without -c.) (though some more specific thing, like an option to exclude spaces, would likely be more secure, so...) i don't think that can be done as an add-on (without duplicating all of cmd_show, i'd guess). cheers, and again thanks, Greg Minshall ___ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store