Giter Site home page Giter Site logo

Comments (9)

weichenw avatar weichenw commented on July 21, 2024

Hi Priyam,

  1. The highlights are being imported in duplicates. -> I just tried and it seems to work fine. How is it duplicating?

  2. I don't know if this by design. An annotation is followed by the highlighted passage rather than the highlighted passage being followed by the annotation as in hypothes.is. -> Check out the nunjucks template if you want to change the way the highlights/annotations are created. Having said that, in Hypothesis annotations are stored under highlights.

  3. All highlights are not being imported. My highlights from the last 7 days has not be imported. -> Seems to work for me. Cna you check if you are getting error in the developer console?

Cheers

from obsidian-hypothesis-plugin.

bpriyum avatar bpriyum commented on July 21, 2024

from obsidian-hypothesis-plugin.

weichenw avatar weichenw commented on July 21, 2024

I can only suggest that you delete all the generated files and reset the sync. Copy the nunjucks template below. Then sync everything again.

Please make sure you got the latest version as well.

Below is the default nunjucks template that I am using personally. You can copy and paste it into your configuration.

{% if is_new_article %}# {{title}}

## Metadata
{% if author %}- Author: [{{author}}]({{authorUrl}}){% endif %}
- Title: {{title}}
{% if url %}- Reference: {{url}}{% endif %}
- Category: #article{% endif %}

{% if is_new_article -%}## Highlights{%- endif %}
{% for highlight in highlights -%}- {{highlight.text}} — [Updated on {{highlight.updated}}]({{highlight.incontext}})
{% if highlight.tags | length %}   - Tags: {% for tag in highlight.tags -%}#{{tag| replace(" ", "-")}} {%- endfor %}{%- endif %}
{% if highlight.annotation %}   - Annotation: {{highlight.annotation}}{%- endif -%}{%- endfor -%}

from obsidian-hypothesis-plugin.

mschrader15 avatar mschrader15 commented on July 21, 2024

Hi @weichenw , Thanks so much for making this plugin!

Unfortunately, I am seeing the same behavior that @bpriyum described. I tried deleting and syncing multiple times, as well as manipulating the template.

I use groups in Hypothesis, maybe that is leading to duplication somehow?

from obsidian-hypothesis-plugin.

weichenw avatar weichenw commented on July 21, 2024

Hi, there is a possibility that an error occurs before all the sync finishes. Could you please check if there are errors in the console?

https://forum.obsidian.md/t/how-to-access-the-console/16703

I just tried groups. It seems to work fine.

from obsidian-hypothesis-plugin.

mschrader15 avatar mschrader15 commented on July 21, 2024

No errors in the console. To be clear, I am seeing both the duplication error and the not-pulling-recent error.

I wonder if it is on Hypothesis side...

from obsidian-hypothesis-plugin.

weichenw avatar weichenw commented on July 21, 2024

No errors in the console. To be clear, I am seeing both the duplication error and the not-pulling-recent error.

I wonder if it is on Hypothesis side...

Unfortunately, I am unable to replicate this issue. I have tried several times it works for me.

Just to confirm that you are on the latest version, reset the history and delete all the files before resyncing everything again.

from obsidian-hypothesis-plugin.

weichenw avatar weichenw commented on July 21, 2024

@mschrader15 Thanks, mate. I have merged and bumped the version

from obsidian-hypothesis-plugin.

mschrader15 avatar mschrader15 commented on July 21, 2024

@weichenw no problem!

from obsidian-hypothesis-plugin.

Related Issues (20)

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.