omnivore-app / logseq-omnivore Goto Github PK
View Code? Open in Web Editor NEWLogseq plugin to fetch articles and highlights from Omnivore
License: MIT License
Logseq plugin to fetch articles and highlights from Omnivore
License: MIT License
when I click fetch button, articles which have been fetched would be added again on the page, it is not so elegant, I hope you can optimize for this
I have setup my Omnivore plugin to filter what to import into Logseq using labels, but this has unfortunately stopped working.
I'm not entirely sure why—it might very well be user error.
The custom query I use is label:"Sent to Logseq"
[custom query if advanced is selected]
cc: @jacksonh
Hi, I think it's very important for this plugin to let the user configure what appears in each block, including the properties keys (and maybe that "🔖 Articles" in the parent block).
For example, this plugin introduces the property site::
but I already use it in my graphs in another way. Also, many users including me would like to localize their graph in their native language and not being forced to mix it with English terms.
I think the ideal would be to let the user edit a template of imported blocks, that by default would be:
- [<page_title>](<omnivore_ref>)
site:: [<site_name>](<page_url>)
author:: <page_author>
labels:: <labels>
date-saved:: <date_saved>
For example, I would configure my template to this:
- [<page_title>](<page_url>)
tags:: <labels>
Button doesnt seem to work for me. I can tell auth is right cause I the graphql requests are going through in the network panel. But no highlights are created and an error dialog comes up that says "cannot read properties of null (reading uuid)" I tried to create a screenshot but it was too fast.
Not sure if it is helpful but here is the response of the last graphql call before it errors.
query GetArticle(
$username: String!
$slug: String!
$includeFriendsHighlights: Boolean
) {
article(username: $username, slug: $slug) {
... on ArticleSuccess {
article {
...ArticleFields
content
highlights(input: { includeFriends: $includeFriendsHighlights }) {
...HighlightFields
}
labels {
...LabelFields
}
}
}
... on ArticleError {
errorCodes
}
}
}
fragment ArticleFields on Article {
id
title
url
author
image
savedAt
createdAt
publishedAt
contentReader
originalArticleUrl
readingProgressPercent
readingProgressAnchorIndex
slug
isArchived
description
linkId
state
}
fragment HighlightFields on Highlight {
id
shortId
quote
prefix
suffix
patch
annotation
createdByMe
updatedAt
sharedAt
}
fragment LabelFields on Label {
id
name
color
description
createdAt
}
{"data":{"article":{"article":{"id":"7301a587-ea52-4be9-9904-bb71347ef222","title":"This creative exercise turns disorganized thoughts into gold","url":"https://www.fastcompany.com/90755854/this-creative-exercise-turns-disorganized-thoughts-into-gold?s=09","author":"Diana Shi","image":"https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/wp-cms/uploads/2022/06/p-1-this-creative-exercise-turns-disorganized-thoughts-into-gold.jpg","savedAt":"2022-06-21T09:36:50.224Z","createdAt":"2022-06-21T09:36:50.224Z","publishedAt":"2022-06-09T13:00:45.000Z","contentReader":"WEB","originalArticleUrl":"https://www.fastcompany.com/90755854/this-creative-exercise-turns-disorganized-thoughts-into-gold?s=09","readingProgressPercent":19.539462706490905,"readingProgressAnchorIndex":12,"slug":"this-creative-exercise-turns-disorganized-thoughts-into-gold-181859f2c30","isArchived":false,"description":"This method can help you untangle your to-do list from your big, passionate ideas.","linkId":"7301a587-ea52-4be9-9904-bb71347ef222","state":"SUCCEEDED","content":"<DIV class=\"page\" id=\"readability-page-1\"> <section role=\"main\"><div id=\"post__wrapper-90755854\" data-id=\"90755854\" data-slug=\"this-creative-exercise-turns-disorganized-thoughts-into-gold\"><article><p>Do you have days where you’re facing a huge stack of assignments, but you find yourself unable to get rid of all the thoughts buzzing around in your brain? It might be time to try a brain dump.</p><div><p>A brain dump is when you gather all your disorganized thoughts and, appropriately, <i>dump </i>them onto a blank canvas. This exercise allows you to clear your mind and pave the way for new, creative ideas. You let all your thoughts tumble onto paper, and see what you come up with after the process.</p><p>To try it yourself, start with a completely blank slate, like a piece of paper or a new memo note on your phone.</p><p>Start recording everything—from your nagging to-do list, to budding creative ideas for your business—onto the paper or screen. You might write down a partial grocery list, or ideas you have for redesigning your house. Then, once you have a list of all the brain clutter spilled out in front of you, take a moment to double-check if there are any lurking thoughts you forgot to include. Maybe there is an upcoming but low-priority deadline you forgot about, or a networking follow-up you dropped the ball on.</p></div><div><p>Once everything is written down, start to rank each idea or task by priority and category. You might try organizing work and personal tasks, and indicating if they’re long-term or short-term projects. Finally, start to consider which part of your brain dump can be assigned to yourself at this very moment, to other people, or to tackle yourself at a later point.</p><p><a href=\"https://littlecoffeefox.com/brain-dump/\" target=\"_blank\" rel=\"noopener noreferrer\">Some productivity bloggers</a> have described the exercise as a “release valve.” <a href=\"https://www.linkedin.com/pulse/how-create-brain-dump-creative-projects-michelle-e-farley/\" target=\"_blank\" rel=\"noopener noreferrer\">Others</a> emphasize that a brain dump should be a free-flowing and nonjudgmental process. So try to refrain from editing. Instead think of it as a way to generate creative material for later.</p><p>Here are three reasons why this practice can be so effective.</p></div><div><h2><strong>1. Brain dumps stoke creativity</strong></h2><p>Contributor Aytekin Tank says he uses brain dumps as a means to tap into his creativity, as leader and founder of a company. “The truth is, our mind isn’t at its best or at its most creative when it’s being held under the weight of thousands of tasks and projects,” he <a href=\"https://www.fastcompany.com/90713365/a-brain-dump-may-be-trick-you-need-to-quiet-that-chattering-mind\" target=\"_blank\" rel=\"noopener noreferrer\">writes.</a></p><p>Doing a brain dump can free up mental real estate by helping address <a href=\"https://www.fastcompany.com/90537226/believing-these-3-myths-about-multitasking-may-be-ruining-your-productivity\" target=\"_blank\" rel=\"noopener noreferrer\">attention residue</a>, or leftover preoccupations from your most recent and unfinished task.”Keeping these ongoing mental lists leaves little room for the spark of new ideas to flourish,” Tank points out.</p><p>The act of writing thoughts down in a space outside your temporary mental archives, makes it easier to see the bigger picture. Research shows that just <i>attempting </i>to multitask can be harmful. Author and computer science professor Cal Newport <a href=\"https://www.fastcompany.com/3057192/these-are-the-long-term-effects-of-multitasking\" target=\"_blank\" rel=\"noopener noreferrer\">told <i>Fast Company</i></a> in 2016 about how without putting aside dedicated time for focused work, people convince themselves “shallow tasks” are real work. “Many people have convinced themselves that it’s crucial that they are always connected, both professionally and socially, but the reality is that this requirement is self-imposed,” he explains.</p></div><div><p>In Newport’s book <a href=\"https://bookshop.org/books/deep-work-rules-for-focused-success-in-a-distracted-world/9781455586691\" target=\"_blank\" rel=\"noopener noreferrer\"><i>Deep Work</i></a><i>, </i>he discusses how when you hop from one task to the other, you can weaken your focus, making it increasingly more difficult to jump into deep-work projects over time. Doing a brain dump can be a first step at making sense of the busy rush of tasks that fill our lives.</p><h2><strong>2. Brain dumps help us make sense of complicated feelings</strong></h2><p>Ultimately, the method has done its job when it helps you to organize your confused thoughts. Think of your tangled thoughts as a ball of yarn. If you don’t have time to untangle them at the current moment, you can do a brain dump instead, and throw the tangled mess into a separate receptacle for safekeeping.</p><p>Research into similar activities—like filling out a diary—suggests these endeavors help people cope with traumatic events. A study from the <a href=\"https://www.researchgate.net/publication/253937612_Expressive_Writing_Emotional_Upheavals_and_Health\" target=\"_blank\" rel=\"noopener noreferrer\">University of Texas</a> with North Carolina State University suggested individuals who have experienced trauma can use expressive writing to tamp down distracting thoughts, as well avoid unhealthy behaviors.</p></div><div><h2>3. Brain dumps help us reconnect with our passions</h2><p>When your mind is given leeway to calm down after a “brain dump,” the extra mental space can be great for focusing on what you love. Work and its constantly growing demands can make it extremely hard to break out of a cycle of busyness. And when we’re too overloaded with tasks, it can lead to burnout, not to mention <a href=\"https://www.fastcompany.com/90586725/why-doing-too-much-is-killing-your-passion-for-work\" target=\"_blank\" rel=\"noopener noreferrer\">a disconnection from your true passions</a>.</p><p>Burnout is <a href=\"https://www.mayoclinic.org/healthy-lifestyle/adult-health/in-depth/burnout/art-20046642\" target=\"_blank\" rel=\"noopener noreferrer\">linked with symptoms</a> such as lowered productivity and feelings of losing your identity. Moreover, a worker who feels burnt out may feel disillusioned in their job or feel like even meeting their goals is no accomplishment. These sentiments make it easier to lose sight of why you took on a certain role, or why you feel empowered doing a certain project. By trying a brain dump, you can more clearly visualize what’s standing in the way of doing what you love.</p></div></article></div></section> <section role=\"main\"><div id=\"post__wrapper-90755854\" data-id=\"90755854\" data-slug=\"this-creative-exercise-turns-disorganized-thoughts-into-gold\"><div><p><cite><a href=\"https://www.fastcompany.com/user/dshi\">By <!-- -->Diana Shi</a></cite><span>4 minute<!-- --> Read</span></p></div><article><p>Do you have days where you’re facing a huge stack of assignments, but you find yourself unable to get rid of all the thoughts buzzing around in your brain? It might be time to try a brain dump.</p><div><p>A brain dump is when you gather all your disorganized thoughts and, appropriately, <i>dump </i>them onto a blank canvas. This exercise allows you to clear your mind and pave the way for new, creative ideas. You let all your thoughts tumble onto paper, and see what you come up with after the process.</p><p>To try it yourself, start with a completely blank slate, like a piece of paper or a new memo note on your phone.</p><p>Start recording everything—from your nagging to-do list, to budding creative ideas for your business—onto the paper or screen. You might write down a partial grocery list, or ideas you have for redesigning your house. Then, once you have a list of all the brain clutter spilled out in front of you, take a moment to double-check if there are any lurking thoughts you forgot to include. Maybe there is an upcoming but low-priority deadline you forgot about, or a networking follow-up you dropped the ball on.</p></div><div><p>Once everything is written down, start to rank each idea or task by priority and category. You might try organizing work and personal tasks, and indicating if they’re long-term or short-term projects. Finally, start to consider which part of your brain dump can be assigned to yourself at this very moment, to other people, or to tackle yourself at a later point.</p><p><a href=\"https://littlecoffeefox.com/brain-dump/\" target=\"_blank\" rel=\"noopener noreferrer\">Some productivity bloggers</a> have described the exercise as a “release valve.” <a href=\"https://www.linkedin.com/pulse/how-create-brain-dump-creative-projects-michelle-e-farley/\" target=\"_blank\" rel=\"noopener noreferrer\">Others</a> emphasize that a brain dump should be a free-flowing and nonjudgmental process. So try to refrain from editing. Instead think of it as a way to generate creative material for later.</p><p>Here are three reasons why this practice can be so effective.</p></div><div><h2><strong>1. Brain dumps stoke creativity</strong></h2><p>Contributor Aytekin Tank says he uses brain dumps as a means to tap into his creativity, as leader and founder of a company. “The truth is, our mind isn’t at its best or at its most creative when it’s being held under the weight of thousands of tasks and projects,” he <a href=\"https://www.fastcompany.com/90713365/a-brain-dump-may-be-trick-you-need-to-quiet-that-chattering-mind\" target=\"_blank\" rel=\"noopener noreferrer\">writes.</a></p><p>Doing a brain dump can free up mental real estate by helping address <a href=\"https://www.fastcompany.com/90537226/believing-these-3-myths-about-multitasking-may-be-ruining-your-productivity\" target=\"_blank\" rel=\"noopener noreferrer\">attention residue</a>, or leftover preoccupations from your most recent and unfinished task.”Keeping these ongoing mental lists leaves little room for the spark of new ideas to flourish,” Tank points out.</p><p>The act of writing thoughts down in a space outside your temporary mental archives, makes it easier to see the bigger picture. Research shows that just <i>attempting </i>to multitask can be harmful. Author and computer science professor Cal Newport <a href=\"https://www.fastcompany.com/3057192/these-are-the-long-term-effects-of-multitasking\" target=\"_blank\" rel=\"noopener noreferrer\">told <i>Fast Company</i></a> in 2016 about how without putting aside dedicated time for focused work, people convince themselves “shallow tasks” are real work. “Many people have convinced themselves that it’s crucial that they are always connected, both professionally and socially, but the reality is that this requirement is self-imposed,” he explains.</p></div><div><p>In Newport’s book <a href=\"https://bookshop.org/books/deep-work-rules-for-focused-success-in-a-distracted-world/9781455586691\" target=\"_blank\" rel=\"noopener noreferrer\"><i>Deep Work</i></a><i>, </i>he discusses how when you hop from one task to the other, you can weaken your focus, making it increasingly more difficult to jump into deep-work projects over time. Doing a brain dump can be a first step at making sense of the busy rush of tasks that fill our lives.</p><h2><strong>2. Brain dumps help us make sense of complicated feelings</strong></h2><p>Ultimately, the method has done its job when it helps you to organize your confused thoughts. Think of your tangled thoughts as a ball of yarn. If you don’t have time to untangle them at the current moment, you can do a brain dump instead, and throw the tangled mess into a separate receptacle for safekeeping.</p><p>Research into similar activities—like filling out a diary—suggests these endeavors help people cope with traumatic events. A study from the <a href=\"https://www.researchgate.net/publication/253937612_Expressive_Writing_Emotional_Upheavals_and_Health\" target=\"_blank\" rel=\"noopener noreferrer\">University of Texas</a> with North Carolina State University suggested individuals who have experienced trauma can use expressive writing to tamp down distracting thoughts, as well avoid unhealthy behaviors.</p></div><div><h2>3. Brain dumps help us reconnect with our passions</h2><p>When your mind is given leeway to calm down after a “brain dump,” the extra mental space can be great for focusing on what you love. Work and its constantly growing demands can make it extremely hard to break out of a cycle of busyness. And when we’re too overloaded with tasks, it can lead to burnout, not to mention <a href=\"https://www.fastcompany.com/90586725/why-doing-too-much-is-killing-your-passion-for-work\" target=\"_blank\" rel=\"noopener noreferrer\">a disconnection from your true passions</a>.</p><p>Burnout is <a href=\"https://www.mayoclinic.org/healthy-lifestyle/adult-health/in-depth/burnout/art-20046642\" target=\"_blank\" rel=\"noopener noreferrer\">linked with symptoms</a> such as lowered productivity and feelings of losing your identity. Moreover, a worker who feels burnt out may feel disillusioned in their job or feel like even meeting their goals is no accomplishment. These sentiments make it easier to lose sight of why you took on a certain role, or why you feel empowered doing a certain project. By trying a brain dump, you can more clearly visualize what’s standing in the way of doing what you love.</p></div></article></div><div id=\"MyQ2uJQ0\"><p>Sorry, the video player failed to load.<span></span>(Error Code: 104153)</p></div></section>\n \n<!-- fastcompany.com --> \n</DIV>","highlights":[{"id":"8961caf8-f332-475e-a4b1-570d7308c992","shortId":"Brqf9EXv","quote":"A brain dump is when you gather all your disorganized thoughts and, appropriately, dump them onto a blank canvas. This exercise allows you to clear your mind and pave the way for new, creative ideas. You let all your thoughts tumble onto paper, and see what you come up with after the process.","prefix":"","suffix":"To try it yourself, start with a completely blank slate, like a piece of paper or a new memo note on your phone.","patch":"@@ -304,32 +304,52 @@\n ry a brain dump.\n+%3Comnivore_highlight%3E\n A brain dump is \n@@ -617,32 +617,53 @@\n ter the process.\n+%3C/omnivore_highlight%3E\n To try it yourse\n","annotation":null,"createdByMe":true,"updatedAt":"2022-06-21T17:11:20.085Z","sharedAt":null}],"labels":null}}}}
This might be operator error - so apologies in advance - but I have about 20 articles in Omnivore, they were all mostly brought in around the same day or so (I am new to Omnivore) — your plugin is only bringing in 2 articles. I have tried several different filters - including Advanced and in:all: and in:all and so on.
This might be something that is working as intended and my articles are tagged wrong or something, but I wanted to ask.
我只需要节点记录高亮内容
All parameters are set up but after hitting the Omnivore button a message shows up and says Omnivore is already syncing.
I have tried everything.
New user here. When setting up, I believe I made a mistake setting up the plugin; it was probably that I switched the fetch setting to "advanced", but didn't supply a query, but I can't be sure. After switching that back to "highlights only", clicking the manual sync button would only produce the message "Omnivore is already syncing", with the Omnivore page remaining completely empty. Nothing I did would persuade the plugin to work.
After a quick check of the source code and the saved settings file, I discovered the "loading" hidden setting in the preferences was set to "true". I closed logseq, set it to "false" manually with a text editor, and restarted, which got it to sort of work. Unfortunately, I had made another mistake in my setup in my scramble to figure out how to get the plugin to work, and my graph reference was now wrong. I fixed this, only for the plugin to stop working again. Sure enough, the "loading" preference had switched back to "true". After another close/edit/restart cycle, everything now seems to be working.
I'm sure you can imagine how frustrating this is for a new user.
My suggestion: always set the "loading" preference to "false" on startup. I don't know logseq well enough to know if that's possible, though.
Hi,
I have re-sort the highlights on my logseq but it will back to the original again after syncing.
How to keep highlight changes in the Omnivore page in Logseq?
Thank you
Could be defined in template
Hello,
I've been using the plugin for a few weeks however after having been away, I noticed the plugin is not successfully importing articles to my LogSeq page (either at intervals or manually). So far I have tried:
None of these have resolved the issue. Old article and new ones I have just added to Omnivore are not imported to LogSeq.
I do not use Logseq, but I am a heavy Obsidian user. Obsidian is extremely similar to Logseq, making an Obsidian Omnivore plugin derived from this might not be too hard.
For sure, I would appreciate it a lot!
After having deleted an article from Omnivore I expected it to disappear from Logseq. However after manually syncing it was still there.
Check out the Batch block insert api to make it faster to sync the articles by inserting a bunch of blocks at once instead of one by one.
https://logseq.github.io/plugins/interfaces/IEditorProxy.html#insertBatchBlock
Just noticed it pulls me out of my notes during the scheduled sync. Not sure if you can do it in the background.
I have a feeling this is related to our parsing and sorting of patches. The patch data on a PDF is different from a web page, so this error was thrown:
Error: Invalid patch string: _<removed in case there was sensitive data
at s.patch_fromText (index.bfcf26b1.js:2:89153)
at c (index.bfcf26b1.js:2:91680)
at index.bfcf26b1.js:2:166961
at Array.sort (<anonymous>)
at kr (index.bfcf26b1.js:2:166948)
at async Object.loadOmnivore (index.bfcf26b1.js:2:169499)
When I create a block reference to the synced article (in Omnivore page) in another page, then re-sync the plug-in, the referenced block is lost. This makes it impossible to reference the highlighted quotes.
I should note that my plug-in setting for "Order of Highlights" is set to "the location of highlighst in the article."
Hi,
I currently changes the laptop and therefore the system from Windows to iOS. I used omnivore plugin with logseq under Windows without issue. However, when I use it with logseq under iOS, it didn't fetch any articles without any error message - The page was created with the title "## 🔖 Articles" with zero articles included below. Any suggestion of what might go wrong and how to solve this?
Thank you!
Obsidian issue:
I like to control in logseq the tasks I need to do, for this I use TODO
reading is one of the tasks I have in the day and I use the omnivore for capturing and reading (on the laptop)
template that I use in logseq (with TODO):
TODO [{{{title}}}]({{{omnivoreUrl}}}) #read [[quick capture]]
collapsed:: true
site:: {{#siteName}}[{{{siteName}}}]{{/siteName}}({{{originalUrl}}})
{{#author}}
author:: {{{author}}}\n{{/author}}
{{#labels.length}}\nlabels:: {{#labels}}[[{{{name}}}]]{{/labels}}
{{/labels.length}}
date-saved:: {{{dateSaved}}}
{{#datePublished}}
date-published:: {{{datePublished}}}
{{/datePublished}}
every time I make an annotation or mark a passage of text and omnivore overwrites the block, making me lose track of what was already done
example:
I marked a task as DONE
DONE [AFFiNE - All In One KnowledgeOS](https://omnivore.app/me/af-fi-ne-all-in-one-knowledge-os-1879e8896e5) #read [[quick capture]]
site:: [AFFiNE](https://affine.pro)
date-saved:: [[2023-04-20]]
was overwritten:
TODO [AFFiNE - All In One KnowledgeOS](https://omnivore.app/me/af-fi-ne-all-in-one-knowledge-os-1879e8896e5) #read [[quick capture]]
site:: [AFFiNE](https://affine.pro)
date-saved:: [[2023-04-20]]
The highlighted Wikipedia footnote displays incorrectly.
test url: https://en.wikipedia.org/wiki/President_of_the_United_States
OS: Windows 10
Omnivore-plugin: 1.11.8
Logseq: 0.9.1
Deleted highlights or links do not seem to sync in Logseq. Is this intended?
I'm really not sure what I'm doing wrong. I had gotten this set up and working with the API key a week ago, and now it won't work! Clicking the button returns a pop-up "Failed to fetch articles," no further reason given.
What I've tried:
I am properly out of ideas 😅 Hoping you have some!
I have installed today the omnivore plugin for the first time. Added the API key and tried to sync my highlights but they don't. Omnivore page is note created, and when I click the plug-in I get the "Omnivore is already syncing" message but it doesn't.
We could add a emoji or something to indicate those articles are with highlights
cc: @jacksonh
I obtained the api auth key from the developer tool, then in the settings I input the log in info as 👍🏼
{
"username": "jarodise",
"api key": "thelongstringkeyIgotfromdevelopertoo"
}
However, it didn't work.
I kept on getting an error message as below:
How should I set it properly so the sync would work? Thanks!
In addition to highlights and notes, what is the best way to get also the entire article into Logseq?
I only want to import articles with the label: Sent2Logseq. So I must use the advanced filter. Until now the only work around I can find is highlighting the complete article before I sent it to Logseq, but then it is not possible for me to use specific highlights.
I noticed if you add new highlights to an article you already fetch it won't add the new highlights in the logseq plugin. Would be really nice to have the new highlights show up even after the article is fetched.
type: Articles, Newsletters, Websites, ... – if you do not define the content type automatically, you can manually add the desired like tags
status: Inbox, Later, Archive – state in Omnivore (and add new Reading)
windows11
logseq 0.8.17 the latest version by now.
logseq-omnivore 1.11.4 the latest version by now
This template code in the logseq does not work when sync with omnivore. The same code is working with the article label.
{{#labels}}[[{{{name}}}]] {{/labels}}
Currently, the date_saved property is of Feb 25th, 2023
format. My date format is different (230225).
When the article is saved to logseq it's shown in date's linked references, but if I click the date lable (Feb 25th, 2023) it leads nowhere since my date format is different.
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.