Giter Site home page Giter Site logo

obsidian-pocket's People

Contributors

ashlyn avatar gollyticker avatar nybbles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

obsidian-pocket's Issues

Allow easier Pocket list sync

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!

Pocket won't sync after resit

I can install the plugin, authorize Obsidian on Pocket, no errors. But when I choose to sync, it says I am not logged in.
Obsidian version 0.14.5
image

configuration file ._* issue on samba

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?

Plugin isn't creating a file

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!

Bug: Pocket items downloaded, but list stays empty

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:

Screenshot 2021-09-11 19 56 05

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.

Screenshot 2021-09-11 19 58 02

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

Pocket items not opening in browser

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?

feat: read posts in obsidian

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.

Pocket connected, sync works, MD file is created, but contains nothing

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!

List pocket items in order of Recency

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.

Synced List Does not Persist after Closing

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.

Provide the option to open the item directly in Pocket or the original

Current behavior:
Alt + Click opens the original

Proposed behavior

  • Two further links are added (possibly righ-aligned): "Open in Pocket", "Open Original"
  • One link opens the note in pocket
  • The other link opens the original (possibly replaces Alt + Click after a grace period)

Example item
image

Pocket list bulk import

Another feature request :

Having the pocket list displayed in its own 'world' felt a bit unusual. Here are some ideas to discuss :

  1. have a bulk action for importing
  2. how would the plugin know there's already an imported item as a note ?
  3. it would be great to have options for selecting what we want to import in a note, like images, tags, highlights and so on.

Just some ideas, maybe other users would find them useful. Again thank you very much for your work.

Error in logs

Not sure what's causing the error. Thought someone here would want to take a look at it.

Screenshot 2023-01-19 at 6 29 44 PM

Display tags in Pocket item list

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 !

Import pocket highlights

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.

Shorten the name of the plugin

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.

Get hightlights in template

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

Handle multi-word tags

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.:

  1. Transform to snake_case (default?).
  2. Transform to camelCase.
  3. Do nothing (this will break multi-word tags).

[BUG] Pocket integration interferes with pandoc detection in the Pandoc Reference List plugin.

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)

Better matching of Pocket items to the respective notes

Problem

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.

Solution

  • Allow the Pocket item note to contain a preamble field called 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.
  • If an existing Obsidian note has a URL preamble field, then that URL field will be used to match that Obsidian note to a Pocket item.
  • The process for matching a Pocket item to its corresponding note would then be: match by PocketId, else match by URL and finally fallback on existing title-based mechanism.
  • If there are duplicates (two notes with the same PocketId, or the same URL), then one of the duplicates will be matched. The user can use search to fix this issue (if it actually is an issue for them), e.g. by adding a Pocket Id to the correct note, or removing the URL preamble field from the other notes.

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).

{{tags}} placeholder gets tags with #-prefixed --> messes-up meta data

Current behavior

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: >
---

leading to
image

and
image

Nevertheless, I understand that {{tags}} used in the notes body need the #-sign to be captured by obsidian as such.

Current fix (manual): remove the leading #-signs.

Proposed behavior

Option 1

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.

Option 2

Add a {{tags-no-hash}} (or similarly named) placeholder that returns the comma-separated list without #-sign

Uncaught Exception Raised When Indexing Notes

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!

Mobile compatibility

It would really be useful if this could be mobile compatible. Currently, this plugin isn’t available for ObsidianMobile.

Importing the archive

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

BUG: Some items will not match "URL" parameter

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.

Screenshot 2022-07-25 at 9 01 50 AM

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.

The data is not being created

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:
CleanShot 2022-02-04 at 16 03 02@2x

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

Purely numeric tags

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

Unable to authorize app with pocket

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

[Feature Request] prepend tags with a specified string.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.