nybbles / obsidian-pocket Goto Github PK
View Code? Open in Web Editor NEWPocket integration for Obsidian
License: MIT License
Pocket integration for Obsidian
License: MIT License
and the note list pop out in weird position which blocked my “file explorer”button,I have to restart the obsidian to fix it
Another potential feature: Have the option to automatically sync the Pocket list when opening it. Or failing that, add a hotkey to sync the list. As far as I can tell, at the moment the only way to sync the list is to navigate to the plugin options and do it there. This is a little awkward IMO.
Thanks!
My vault is stored on samba and for a unknown reason (bug opened), files starting by ._ can't be created or accessed from a smb client. It could be related to some protections because Mac OSX used to create a lot of temporary files starting by ._ so this file could be also deleted if users implemented some sort of cron jobs.
Would it be possible to avoid this pattern and rename the configuration file?
Currently, the plugin imports an excerpt of a Pocket article.
I would actually like it if it were possible to import a Pocket article in its entirety, at least the text (i.e. no images). This would be wonderful.
In Pocket the list shows images of the site saved.
Is it possible to add the images to the note template (Templater)?
Hello and thanks for this great plugin! I am super excited to use it. After installation I noticed that a note with the Pocket items isn't being created. I have tested with a few different vaults in different locations to see if it was a permission problem but it doesn't appear so. The plugin states that it fetches my items but no .md
file is created in the folder I specified.
If this is related to the community plugin install not working correctly is it possible to get some instructions on installing manually from source?
Thanks!
Hi, thanks for this plugin! I wanted to try it out, but it seems I only get a a blank page when opening the Pocket list via Command Palette:
However, the items of my Pocket list are clearly downloaded – the Obsidian notification displayed when syncing states that 26 items are downloaded, which is the number of items I currently have in my pocket list.
I tried deactivating all other plugins (and my theme) to ensure that this isn't caused by some other plugin or CSS interfering, but the Pocket list stays empty.
Obsidian v. 12.15
macOS 11.5.2
obsidian-pocket v. 0.5.0
Hi, very excited about this app. Looks like it will be great for my workflow. However, at the moment when I CRTL+click on an item in the Pocket list, the appropriate note is created, but the webpage doesn't load in Firefox and I get this error message: "You'll need a new app to open this app."
Any idea what might be going wrong?
Once done, this plugin will be installable from Obsidian itself.
This task is dependent on:
Feature Request
I would love to read the posts I've saved in Pocket directly in Obsidian, so I can go ahead and open up the actual post and the notes side by side.
When we delete the note in obsidian, sync deletion to pocket. The same for archive and favorite.
Hi there!
I've installed this lovely plugin, connected it to my Pocket account, synced my list, and it is displayed when I select the 'Open Pocket' command in Obsidian.
When I select one of the links, an MD file is created for that specific article, but here's my problem: the file contains nothing. The MD file is 0 bytes large.
Am I doing something wrong here? Sorry, I'm a noob.
Thank you very much for this plugin!
When I sync and have new items, they're not ordered by creation time, so I had to scroll and look for the ones that have a different title color. I thought they would appear on the top of the list.
Sync'd items get pulled into Pocket list as expected.
However, if you close and reopen the list, the page displays "No items synced!"
Re-running the Sync command and the dialogs show no new items added, but the list re-displays.
Another feature request :
Having the pocket list displayed in its own 'world' felt a bit unusual. Here are some ideas to discuss :
Just some ideas, maybe other users would find them useful. Again thank you very much for your work.
Unfinished piece from #43.
Hello. First thank you very much for making this plugin, it really helps me bring everything in my Obsidian knowledge system.
I was surprised to find that tags aren't imported so I'd like to request for this feature. I've checked Pocket's API and there's a lot that can be done for images, videos and such.
And sorry, I want to make this a feature request but don't know how to add the label :)
Thank you very much !
I saved this page to pocket
https://is.gd/XhJRE4
I can read the full article in pocket
When I import it I can see just an excerpt and the rest of the article is missing
Another potentially sweet feature would be to have the ability to import Pocket highlights when creating the relevant Pocket note. Possibly something similar to the new Readwise plugin.
According to obsidianmd/obsidian-releases#346 (comment), Obsidian will soon have a request API, which means that the CORS proxy will no longer be needed.
Bit of a silly request, but what would you think if the plugin's name was shorter ? Right now the plugin is called "Pocket Reading List Integration" which is long and takes 2 lines on the plugin list in Obsidian's settings. Maybe "Pocket Integration" would be ok.
I guess you indicated "reading list" since Pocket is a generic name. Anyway it's up to discussion.
I've set up a template and a folder for Pocket notes.
But clicking the Pocket item title does not create a new note.
I used this extension without template until now but I want to get the highlights from my pocket articles. Does anyone know if a variable exists for this? Thanks
Could we have an option to import all the articles in MD format when retrieving it from Pocket?
Tags in Pocket can have whitespace in them, whereas tags in Obsidian cannot. "#energy models" is valid on Pocket, but not in Obsidian.
The behavior has to make sense in both the Pocket item list and in the Pocket item note created from a template.
Allow the user to pick how they want to handle tags, i.e.:
You can replicate this by making a clean test vault. Install Pandoc Reference List. If pandoc is on the PATH, it should find it. Supply a .bib file and create a file with a citation. It works as expected. Install and enable Pocket integration. Restart vault. The reference list will say "No citations found in the active document", validation in the settings will fail with the error "pandocMarkdownToHTML not found: pandoc".
See this issue for details. mgmeyers/obsidian-pandoc-reference-list#38 (comment)
Currently, obsidian-pocket looks first in the pocket item notes folder, and then elsewhere, and matches the note based on title only.
This works okay, except that it breaks down when a Pocket item has a title that is the same as another Pocket item, or an existing Obsidian note, e.g. if you save a tweet to Pocke�t, then the title used by Pocket is simply the author's name. If I saved two tweets from the Twitter user "Bob", then there will be two Pocket items titled "Bob". If I create an item note for one of these Pocket items, it will be called "Bob". The other Pocket item will now link to that item note for "Bob".
Also, there's no way to rename a Pocket item note without breaking the link with the corresponding Pocket item, e.g. if there's some weird formatting in the URL title.
PocketId
that states exactly which Pocket item it corresponds to. This will be auto-populated when one creates the Pocket item note from the Pocket item list.URL
preamble field, then that URL field will be used to match that Obsidian note to a Pocket item.This solution will mean that the Pocket item note will keep being associated with the Pocket item, even if it is renamed or moved, or even if a new note is created with the same title (as can happen with bookmarked tweets, for example).
When using the {{tags}} placeholder in the meta section, tags get put in the #-sign prefixed; This causes obsidian to render the meta data invalid an e.g. the graph view not to catch on to the tag.
---
title: ...
url: ...
tags: [{{tags}}, pocket-note]
excerpt: >
---
results in
---
title: ...
url: ...
tags: [#tag1, #tag2, pocket-note]
excerpt: >
---
Nevertheless, I understand that {{tags}} used in the notes body need the #-sign to be captured by obsidian as such.
Change the {{tags}} behavior to return the comma-separated list without #-sign, add a {{tags#}} placeholder to put in the tags with leading #-sign.
Caveats: this will break templates, using the {{tags}} placeholder in the note body.
Add a {{tags-no-hash}} (or similarly named) placeholder that returns the comma-separated list without #-sign
When using {{date}} in the Pocket note template, it doesn't behave in the same way an Obsidian template does. It just prints {{date}}.
I'd like to be able to auto-populate the date I'm retrieving the article (i.e. today).
Hi, thanks so much for this! Is it possible to direct the plugin to only pull items from Pocket that have a specific tag (e.g., "#obsidian")?
It looks like this plugin raises the following exception for me when installed through the Community Plugin browser in Obsidian:
Uncaught (in promise) DOMException: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
at Proxy.eval (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:30479:26)
at URLToPocketItemNoteIndex.eval (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:30877:26)
at Generator.next (<anonymous>)
at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:28:71)
at new Promise (<anonymous>)
at __awaiter (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:24:12)
at URLToPocketItemNoteIndex.indexURLsForAllFilePaths (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:30868:43)
at PocketSync.eval (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:32839:39)
at Generator.next (<anonymous>)
at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1362602), <anonymous>:28:71)
eval @ wrap-idb-value.js:150
eval @ URLToPocketItemNoteIndex.ts:138
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
URLToPocketItemNoteIndex.indexURLsForAllFilePaths @ URLToPocketItemNoteIndex.ts:124
eval @ main.ts:169
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
eval @ main.ts:168
Promise.then (async)
step @ tslib.es6.js:75
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
eval @ main.ts:168
setTimeout (async)
eval @ main.ts:168
fulfilled @ tslib.es6.js:73
Promise.then (async)
step @ tslib.es6.js:75
fulfilled @ tslib.es6.js:73
Promise.then (async)
step @ tslib.es6.js:75
fulfilled @ tslib.es6.js:73
Promise.then (async)
step @ tslib.es6.js:75
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
onload @ main.ts:73
t.load @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
D @ app.js:1
t.loadPlugin @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
D @ app.js:1
t.enablePlugin @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
D @ app.js:1
t.enablePluginAndSave @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
D @ app.js:1
(anonymous) @ app.js:1
e.setValue @ app.js:1
e.onClick @ app.js:1
Cloned the the repo to take a look, code, and I'm thinking maybe the local cache for Pocket data is never created in the Obsidian database? I'm using Obsidian v0.13.23 on MacOS. Let me know how I can help debug this further, would love to get this integration working!
It would really be useful if this could be mobile compatible. Currently, this plugin isn’t available for ObsidianMobile.
Just installed the plugin and it looks great. However, I have a problem. It seems that the plugin can only import the reading list and not the archive, however, it is really the latter I need.
Is there any way to import the pocket archive as well or is it just the reading list? If yes, how do i do this? And if no, are there any plans to include such a feature.
Sorry if this is a stupid question.
All the best
Lars
Hi there,
Some items will consistently not match based on the "URL" parameter. Here is an example of a pocket note frontmatter, which contains the relevant url and pocket url:
---
title: "The Trimodal Nature of Software Engineering Salaries in the Netherlands and Europe"
URL: https://blog.pragmaticengineer.com/software-engineering-salaries-in-the-netherlands-and-europe/
pocket-url: https://getpocket.com/read/3275416886
tags: [saved-link]
excerpt: Update: dozens of hiring managers confirmed this trimodal model applies to all global markets: from the US, through Asia to Latin America as well. Also see TechPays.com for data recorded for a growing number of countries in the three tiers.
---
As you can see from the screenshot below, the item is created multiple times, and refuses to match.
A couple of sites I've noticed this happens on are Hacker News (news.ycombinator.com) and ThreadReader (https://threadreaderapp.com/), though neither site fails consistently.
I have just installed this plugin and I am fairly new to obsidian.
I have installed and enabled the plugin, connected my account and set up my folders:
When I selected sync pocket items it states it is running and syncs 2 items which is the correct number. However, in the folder where they should be there is nothing (and it has not gone into any other folder either) so I am unsure what to try next.
I am on an M1 Mac version 12.1, Obsidian v.0.13.23 Pocket v.0.5.5
In Obsidian numbers are allowed in the tag, as long as the tag is not purely numeric. For example, #1984 does not form a valid tag, but #y1984 is valid.
Perhaps you could provide a setting to prepend a configurable alphabetical string to purely numeric Pocket tags
When I click on Authorize
, trying to connect obsidian with pocket, from the browser, it opens the obsidian app (open xdg-open), but then nothing happens.
Sysment: Ubuntu 20.04
Obsidian version: v0.13.33
This is a promising extension and I can't wait for it to go public
Hi and thank you for this plugin :).
I use nested tags to differentiate between tags from different integrations. I wanted to prepend every tag from pocket with 'pocket/'.
I did it for example in the obsidian-citations with {{#each entry.data.fields.keywords}}{{#if @last}}zotero/{{this}}{{else}}zotero/{{this}}, {{/if}}{{/each}}
for zotero integration.
I wanted to use templater here but can't figure it out (probably can be done with executing JavaScript I think). It also would solve #82
Have the possibility to bulk create note from the Pocket sync by CTL+click or check box with.
If it's not totally out of scope: Please consider adding support for Instapaper. In theory only the API-Calls have to be looked at. API-Documentation can be found here: https://www.instapaper.com/api/full
P. S.: I was unable to add the enhancement label to my issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.