Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't show "copied to Clipboard" #4

Closed
nichtich opened this issue Jul 28, 2016 · 4 comments
Closed

Don't show "copied to Clipboard" #4

nichtich opened this issue Jul 28, 2016 · 4 comments

Comments

@nichtich
Copy link
Contributor

See https://github.com/nichtich/wikidata-cli/commit/925cf7e05a5138b6802502fdc0b398b3a35beaa8 for an additional option to suppress such output - a cleaner solution would be to not show it in the first place

@maxlath
Copy link
Owner

maxlath commented Aug 26, 2016

yep. The cleanest to do would probably be to rely on an opt-in option ( -cb, --clipboard?) to copy to the clipboard.
Then we might simply need a global config file to make it the default/preferred behavior for the clipboard addicts as myself ^^

A remarque on the current implementation: if the command is piped, the Copied to Clipboard will not come polluting as it is not written on stdout but directly on /dev/tty (see copy2cb's code). But it's hacky and quite counter-intuitive (just like those horrible progress stats when you pipe a curl command), so I wouldn't mind getting over it

@nichtich
Copy link
Contributor Author

The config file would be ~/.wdconfig, right? The --clipboard option seems to be a global option for all subcommands such as --language and --verbose.

@maxlath
Copy link
Owner

maxlath commented Jan 16, 2017

hello @nichtich, I have been cleaning out all those fancy clipboard behaviors, could you give it a look before I make it a major release? 1071551

@maxlath
Copy link
Owner

maxlath commented Feb 17, 2017

introduced a global config mechanism in 7c4a946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants