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

Export from command line in Windows #559

Closed
PEG71 opened this issue Oct 22, 2016 · 3 comments
Closed

Export from command line in Windows #559

PEG71 opened this issue Oct 22, 2016 · 3 comments

Comments

@PEG71
Copy link

PEG71 commented Oct 22, 2016

Hi,

I would like to backup using the command line but the copyq exporttab does not work on the Windows version. It works well on Linux, though. I also found that the command copyq help does not return anything. Is this a bug?

Thanks for your help.

@hluk
Copy link
Owner

hluk commented Oct 22, 2016

Not having console output on Windows is a bug (#349), unfortunately there is no simple way to fix it.

You can show output in PowerShell with following command.

copyq help 2>&1 | Write-Output

Always pass file path as argument after -- (otherwise \n, \t and similar sequences are parsed as special characters). E.g.

copyq tab clipboard exporttab -- c:\backup\copyq\clipboard.cpq 2>&1 | Write-Output

@PEG71
Copy link
Author

PEG71 commented Oct 22, 2016

Great! It works fine now! Weird bug indeed. While we are on the subject of exporting, is there a way to export all tabs at once?

Thanks

@hluk
Copy link
Owner

hluk commented Oct 24, 2016

It's easier just to backup configuration folder. Otherwise you would need to iterate through lines returned by copyq tab.

There is old feature request to import/export all tabs and configuration (#42).

@hluk hluk closed this as completed Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants