pockyt icon indicating copy to clipboard operation
pockyt copied to clipboard

Add/remove/set tags via the mod sub-command

Open kergoth opened this issue 10 years ago • 4 comments

kergoth avatar Apr 18 '15 19:04 kergoth

Sounds like a useful addition. I'm a bit busy with other projects right now, but I'll try to add it in soon.

For anyone who wants to work on this - it is supported by the modify endpoint - https://getpocket.com/developer/docs/v3/modify.

achembarpu avatar Apr 20 '15 11:04 achembarpu

I am trying to find a way to "manage my tags" in the pocket collection. That is for example:

  • retrieve all articles tagged XXX and retag them YYY
  • retrieve all articles about TRUMP, eg: -q 'TRUMP' and retag them say "politics"

Is this the same thing this issue is about ? If so this would be a great functionality to pockyt.

I am trying combinations like: pockyt get -.... | pockyt mod ... but I cant' get what I want.I'm also not quite sure I understand the option -i to mod

 -i <option>, --input <option>
                        obtain input : <option> : {console, [redirect, filename]}

could you clarify it a little bit these "console, [redirect, filename]}" with more examples in the readme ?

Thanks in advance. Pockyt keeps serving me well and is my favourite and cleanest cli pocket script for a long time.

m040601 avatar Jan 17 '20 05:01 m040601

Hey @m040601, Thanks for the friendly feedback 😄! Unfortunately, like the other issue you've opened, this has also stagnated. I do not have much time to invest into pockyt myself, but thanks to their stable API, this has enabled it to work indefinitely without my intervention. If anyone else is willing to contribute, I'm happy to merge. Cheers!

achembarpu avatar Jan 17 '20 10:01 achembarpu

For my own use I've hacked together some very basic support for adding tags: https://github.com/arvindch/pockyt/compare/master...ciiqr:master this will need to be cleaned up and expanded upon (only supports tags_replace) before any PRs can be submitted, though I encourage others to hack away at this, the code is pretty simple to extend.

ciiqr avatar Jan 20 '20 00:01 ciiqr