Copyq: Shared repository for useful snippets?

Created on 22 Mar 2017  Â·  11Comments  Â·  Source: hluk/CopyQ

Dear all,

I would like to hear your opinion on a public repository to share useful snippets and templates.

For instance, this could be useful to access snippets such as dash (—) and other symbols that are not easy to write on a keyboard but sometimes required to be pasted into text.

For these types of symbols, I currently maintain my own collection but I would love to share and collaborate with others on a collection.

What do you think?

Yours,

Robert

image

Most helpful comment

New repository for command with three main categories: https://github.com/hluk/copyq-commands

All 11 comments

@orschiro
There is an old thread in the Google Groups: https://groups.google.com/forum/m/#!topic/copyq/3a3q813J_RA

Btw I'm also using the snippet command for emdash, endash, ellipsis, … :+1:

Thanks!

So, as a starting point we could provide our snippets as gist files?

@orschiro
It was only a suggestion. The wiki would be a good spot: https://github.com/hluk/CopyQ/wiki/Command-Examples but it is not possible to make pull requests for wiki pages.

@hluk Maybe a new section on the gh-pages branch for commands, so users could make PRs?

From a user perspective, I think it would be great if the user only had to import a single URL to integrate all available snippets into this system.

Just a thought on usability. :-)

(See also #125.)

@hluk Maybe a new section on the gh-pages branch for commands, so users could make PRs?

New repository (instead of gh-pages branch) for commands and snippets (and other data for commands) sounds like a really good idea.

In addition to PRs and issues, it would be possible to do full-text search through all the code, e.g. filter automatic commands with query Automatic=true.

Categories/directories for commands with README.md files would help a lot too.

From a user perspective, I think it would be great if the user only had to import a single URL to integrate all available snippets into this system.

I think it could be possible to pull a command or snippets to CopyQ with a special command (using networkGet()).

Snippets should be saved in non-binary format in the new repo (not exported as data from CopyQ). Perhaps another special command to export items/tabs to XML would do the job.

I can start setting up the new repo. What do you think?

New repository for command with three main categories: https://github.com/hluk/copyq-commands

Dear @hluk,

This is great, thank you!

Just a question:

Where inside this repository do I now publish and share my useful text snippets such as templates shown below that users could easily paste into their composing window using one of the other commands?

@orschiro Working on it. I'm not sure how to share snippets (or item and data for commands in general).

I'll get back to you after I come up with something.

Thank you so much!

@orschiro You can share items/snippets in readable form with these commands (but you need CopyQ from master branch or copyq-beta Ubuntu package).

One command selected copies items in JSON format and second can paste them back to current tab. All data from the items is copied and pasted back so nothing should be lost -- works even for binary data like images though the JSON can get quite big.

I think the snippets can go in the new repo as "Global/Snippets/*.json". But I'll leave this to you and we can discuss it in PR. I'll probably make a command that lets you create new items just from an URL from that repo (similar to this for commands).

Closing this. If you have any further ideas on this, please share.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

reagle picture reagle  Â·  4Comments

gatopeich picture gatopeich  Â·  3Comments

orschiro picture orschiro  Â·  7Comments

SmileyStiles picture SmileyStiles  Â·  3Comments

hluk picture hluk  Â·  9Comments