Giter Club home page Giter Club logo

firefox-extension-logseq-quickcapture's Introduction

My GitHub stats

firefox-extension-logseq-quickcapture's People

Contributors

benjypng avatar loziniak 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

Watchers

 avatar  avatar

firefox-extension-logseq-quickcapture's Issues

`undefined` values in quickCapture url

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:

https://github.com/hkgnp/firefox-extension-logseq-quickcapture/blob/4a843b47460b03f885ede49bb198f885ab62acd4/src/script.js#L11

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

Ability to configure the tag/namespace for the captured content in Logseq

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!

How to modify the [[quick capture]] description?

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.

Unable to capture on Firefox 110+ after latest extension update

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

Keyboard Shortcut?

Thanks for the amazing plugin! Would it be possible to expose this functionality via a customizable keyboard shortcut?

Textarea for your own note instead of selection.

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.

Doesn't work at all in Arch Linux

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.

Feature Request: Change "quick capture" label

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

Only works once logseq is running

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

Shortcut

Shortcut to save the selected text. Or via right click.

Only the title of selected text being captured (on specific page)

Steps to reproduce:

  1. Select a large area of text. at https://keylol.com/t881621-1-1

屏幕截图 2023-04-06 113106

  1. Click logseq-quick-capture
  2. Only the title is captured
**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

Logseq capture extension not working with latest Firefox nightly

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?

image

Missing URL Query Parameters

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.

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.