Comments (7)
I don't really agree with changing the default, for consistency of interface reasons.
But sure, short options makes a lot of sense, just pushed that.
from lastpass-cli.
@bcopeland Can you please explain "consistency of interface reasons."
My reasoning is from experience using LastPass browser plugins and pass. In LastPass the username/password are the main values for autofill and have shortcuts in the UI to copy them. In pass
-c copies the first line of the gpg encrypted file (which could be anything) but defaults to the password for the entry.
Having -c copy the entire entry is useless to paste into a form/app/webpage because there is extra metadata and possible notes that will get mangled when pasting and need to be deleted. Thus to make -c useful you have to specify at least one extra option.
Maybe a compromise would be a setting to allow setting the default copy field/flag.
On a side note, entries are not cleared from the clipboard after a set amount of time. I'll open a new issue for that though.
from lastpass-cli.
Consistency meaning adding "-c" doesn't change the set of data that is selected. I agree that the user probably never wants to copy all when they do -c, but if we default to all at least the data is the same with and without '-c'. Also some items like secure notes won't have a password.
With the suggested short character change, it's the difference of one character so I don't think it's that onerous (also you could of course define a shell alias like alias lp="lpass show -cp"
if that's your most common usage).
from lastpass-cli.
RE clearing the clipboard... lpass isn't running any longer after it is copied, so I'm not sure how we might technically achieve that.
from lastpass-cli.
Not sure about all platforms but for Linux you could run something like at now + 1 minute <<< "echo clear | xclip -selection c"
after copy. exact syntax is probably wrong.
You could also see the function pass makes in bash to clear the clipboard after 45 seconds using exec, sleep, and disown. Again, not super useful cross platform, but doable.
from lastpass-cli.
Yes, I suppose we can fork a new process that just does sleep(x); exec(xclip)... Please do open an issue for that.
from lastpass-cli.
Will do. Thanks for the feedback. I'll go the alias route for defaulting -c to --password
from lastpass-cli.
Related Issues (20)
- Question: what is the "id" for the `-i` flag in the lpass-att-export.sh script? HOT 2
- can't login "Error: Stream error in the HTTP/2 framing layer." HOT 4
- Fix folder separators
- Random lpass Error: Could not find decryption key
- Support login with SSO HOT 8
- Unable to login with lpass cli HOT 61
- certificate pinning is an outdated security measure
- Forgot to update version 1.3.5 in LASTPASS-VERSION-GEN
- lastpass-cli: Do not interpose reallocarray in /usr/bin/lpass HOT 1
- cygwin make fails due to CRLF in LASTPASS-VERSION-GEN
- Error: Peer certificate cannot be authenticated with given CA certificates. HOT 1
- lastpass-cli sync does not complete on Mac OS 14 HOT 2
- Feature request: lpass copy HOT 1
- Building image from the source does not work HOT 2
- Feature request: Return the error code when there's an HTTP error
- Cannot change master password with "lpass passwd"
- Ubunutu 22.04 libssl dependency
- UUID of 0 for new entry when scripting
- Possible to create Sub-folders?
- Parameter note-type not reflected, always got secure note despite `--note-type=Database` was specified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lastpass-cli.