benjypng / firefox-extension-logseq-quickcapture Goto Github PK
View Code? Open in Web Editor NEWfirefox-extension-logseq-quickcapture
License: MIT License
firefox-extension-logseq-quickcapture
License: MIT License
For any URL with more than 1 query parameter, it looks like this extension skips all query parameters after the first (starting with &key=value
).
For example, in this URL: https://www.google.com/search?client=firefox-b-1-e&q=stopwords+that+sometimes+have+meaning
If I select the first snippet and then click on the extension, I get the following output:
**08:19** [[quick capture]]: The general strategy for determining a stop list is to _sort the terms by collection frequency_ (the total number of times each term appears in the document ... [stopwords that sometimes have meaning - Google Search](https://www.google.com/search?client=firefox-b-1-e)
As you can see, the first query parameter (?client=firefox-b-1-e
) is retained while the remaining parameter (&q=stopwords+that+sometimes+have+meaning
) is left out.
I am using Firefox Extended Support Release (ESR) version 102.5.0esr (64-bit) on macOS 12.3.1.
Hi @hkgnp
Thanks for your extension, it works well, until it's not, I'm trying to know why.
It appears that some variable are undefined after 'something' happens, page
and append
values are built at following line:
console output:
13:19:39.676 › open-url {:url "logseq://x-callback-url/quickCapture?page=TODAY&append=true&title=Tweet%20/%20Twitter&content=&url=https%3A%2F%2Ftwitter.com%2Fjakluge%2Fstatus%2F1607683259961573377"}
13:21:04.749 › open-url {:url "logseq://x-callback-url/quickCapture?page=undefined&append=undefined&title=Add-ons%20Manager&content=&url=about%3Aaddons"}
13:22:56.711 › open-url {:url "logseq://x-callback-url/quickCapture?page=undefined&append=undefined&title=Kris%20Kashtanova%20on%20Twitter:%20%22My%20prompt:%20in%20a%20style%20of%201990s%20point%20and%20click%2016bit%20adventure%20game%20Stranger%20Things%20--ar%203:2%20--v%204%20Would%20love%20your%20fav%20movies%20and%20shows%20as%20old%20games%20https://t.co/PY2Pst2pyv%22%20/%20Twitter&content=My%20prompt:%20in%20a%20style%20of%201990s%20point%20and%20click%2016bit%20adventure%20game%20Stranger%20Things%20--ar%203:2%20--v%204&url=https%3A%2F%2Ftwitter.com%2Ficreatelife%2Fstatus%2F1607555335664844801"}
Could you have a look?
Thanks and have a nice day,
Alex
Hi, it's basically the title.
The template for each capture is fixed to
** <Time> ** [[quick capture]]: [[Link][Title]]
I would like to know if it's possible to change the [[quick capture]]
part with a meaningful description for my to-do list.
Best.
When using the latest version of the extension which was recently updated to work with Firefox 110+, I am not able to properly capture anything to Logseq. When clicking the button on a page which I want to capture, the extension opens a new tab where I see a conformation dialog to open asking if it is OK to open the link using Logseq. Before I can do anything, the dialog disappears and the tab closes itself. Sometimes, not always, I can click the open link button fast enough and I will get the capture properly created in Logseq. But it takes multiple tries.Would it be possible to do away with the timeout and close the tab only after the dialog has been confirmed?
OS: Linux
Firefox: Nightly 112.0a1
I have both current release 109 and nightly 111 of Firefox installed with both having the logseq capture extension installed. I have Logseq itself up and running. And I have both instances of Firefox configured the same. Append the current site to TODAY at the end of the page. The release version works fine but the nightly version does nothing when I click on the logseq capture button on the toolbar. One note to add is that if I type the full URL in the nightly address bar, the entry is created properly in the Logseq app. For example using logseq://x-callback-url/quickCapture?page=TODAY&append=true&title=Tweet%20/%20Twitter&content=&url=https%3A%2F%2Ftwitter.com%2Fjakluge%2Fstatus%2F1607683259961573377"
does the right thing. Just not when I hit the logseq button in nightly. Any ideas on how to debug this issue or what the cause might be?
Thanks for the amazing plugin! Would it be possible to expose this functionality via a customizable keyboard shortcut?
It would be great to be able to freely change the name of the quick capture label.
Besides this, when you hover over the icon in Firefox, it says Beastify. Not sure if this is intended.
Thanks a lot for this nice extension :-)
The callback URL gets shown, the window gets activated but there's nothing added in Logseq v0.9.4 logseq/logseq@1067ffd
I have set the site where it needs to be added to TODAY. But with the other suggestions (e.g. cursor
) it doesn't work either.
Installed Logseq-bin from the AUR and using this in KDE.
Currently all captured information is tagged in Logseq with [[quick capture]]. It would be nice to be able to configure the tag in the Firefox extension preferences to be something different than the default. For example, I use the todoist plugin for Logseq (thanks for that one as well!) to pull in Inbox items from my Todoist. And they are tagged [[Inbox]]. If my captures from Firefox were also able to use that tag as well I can see all of my captures in once page. I manually change the [[quick capture]] to [[Inbox]] now.
Thanks!
When I use the plugin when Logseq isn't running, it opens Logseq, but fails to add the quickcapture. Once Logseq is open, repeating the same action, the quickcapture dóes register.
My desktop launcher looks as follows:
[Desktop Entry]
Name=Logseq
Exec=/opt/Logseq-linux-x64-0.9.19.AppImage %u
Terminal=false
Type=Application
Icon=gnome-panel-launcher
Comment=
MimeType=x-scheme-handler/logseq;text/html;
Running Fedora 37, Gnome 43.8, Logseq 0.9.19, Firefox 117.0.1
I've installed the extension and got wrong urls, like in #6 . Saving plugin options (without changes) fixed the issue. Perhaps there should be some fallback in script.js
, when browser storage is empty?
A small empty notice "bubble" is displayed, and logseq://x-callback-url
link is not created / executed.
For example:
https://beinternetawesome.withgoogle.com/pl_all/interland
Would it be possible to link the extension in the repo's README and link the repo in the extension's description?
https://addons.mozilla.org/en-US/firefox/addon/logseq-quick-capture/
Shortcut to save the selected text. Or via right click.
Steps to reproduce:
**11:31** [[quick capture]]: **1.ACE COMBAT 7: SKIES UNKNOWN** [https://store.steampowered.com/app/502500/ACE\_COMBAT\_7\_SKIES\_UNKNOWN/](https://store.steampowered.com/app/502500/ACE_COMBAT_7_SKIES_UNKNOWN/?utm_source=keylol [关于《皇牌空战7》各版本的一点购买提示与补全建议 - 购物心得 - 其乐 Keylol](https://keylol.com/t881621-1-1)
However, the call-bacl url looks good to me
logseq://x-callback-url/quickCapture?page=TODAY&append=true&title=关于《皇牌空战7》各版本的一点购买提示与补全建议 - 购物心得 - 其乐 Keylol&content= **1.ACE COMBAT 7: SKIES UNKNOWN** [https://store.steampowered.com/app/502500/ACE\_COMBAT\_7\_SKIES\_UNKNOWN/](https://store.steampowered.com/app/502500/ACE_COMBAT_7_SKIES_UNKNOWN/?utm_source=keylol&curator_clanid=9730205)Loading 游戏本体不建议直接购买,毫无性价比可言 **2.ACE COMBAT™ 7: SKIES UNKNOWN - TOP GUN: Maverick 数字版** [https://store.steampowered.com/sub/723773/](https://store.steampowered.com/sub/723773/?utm_source=keylol&curator_clanid=9730205)Loading 包含本体和壮志凌云联动dlc,史低73.6,卡单可收,其余不推荐。 **2.5.ACE COMBAT 7: SKIES UNKNOWN - 豪华版** 已下架,就是少了壮志凌云dlc的Ultimate Edition **3.ACE COMBAT 7: SKIES UNKNOWN - TOP GUN: Maverick Ultimate Edition** [https://store.steampowered.com/sub/723774/](https://store.steampowered.com/sub/723774/?utm_source=keylol&curator_clanid=9730205)Loading 改版之后最大的大包(但并不全),皇牌空战系列粉丝和全收集强迫症强烈建议直接购买这个版本 因为里面包含一个限定日区的dlc:[https://store.steampowered.com/app/929104/](https://store.steampowered.com/app/929104/?utm_source=keylol&curator_clanid=9730205)Loading 大包史低99R,性价比极高,等等党可以等个85%off 75R,并且万代不像SE,折扣极限是90%off 50R(估计再等两三年) **4.ACE COMBAT 7: SKIES UNKNOWN - Season Pass** [https://store.steampowered.com/app/929106/ACE\_COMBAT\_7\_SKIES\_UNKNOWN\_\_Season\_Pass/](https://store.steampowered.com/app/929106/ACE_COMBAT_7_SKIES_UNKNOWN__Season_Pass/?utm_source=keylol&curator_clanid=9730205)Loading 买了数字版的,如果想补齐成Ultimate(那个限定dlc没得补),需要购买这个机票,史低60%off 55R,再等个新低也就是70%off 41R 即使以后游戏骨折一般来说机票也都是不会骨折的。 那么即使是卡单,再补机票,性价比也是不如Ultimate包的,更别说还缺个dlc。 **5.其余dlc** 壮志凌云dlc给的机型是有五代机的,通关够用了。 不是死忠粉或者收集狂完全不用再补其它机型dlc。&url=https%3A%2F%2Fkeylol.com%2Ft881621-1-1
Version
Firefox 111
Logseq 0.9.1
Thank you for a great plugin.
Sending a selection to Logseq is already really useful. If I want to remember something from an email. I select that piece of text and click the button.
What would be useful to me as well is a small textarea to write my own note for a page and send it to Logseq. For example, I need to remember something because of an email, but the text is not in the email itself and I can't select it.
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.