Comments (7)
Oh, Maybe I got your idea, you want to have all the notes related to one website.
For example:
When I am on the https://wirenboard.com/en/pages/about/
page. I can see the note for the https://wirenboard.com/en/catalog/kontrollery/
page.
Is that right?
from logseq-copilot.
released in 1.13.0
, it will be available at edge & chrome store soon.
from logseq-copilot.
Currently, I send the URL without the hash part to logseq to make this recall function.
If you want to extend this function, I suggest just sending one request to logseq and recalling everything you need. Otherwise, logseq needs to process a lot of requests in a short time.
And, there are 2 parts of code related to the recall function.
One is for popup searching:
logseq-copilot/src/pages/popup/Popup.tsx
Lines 44 to 59 in 32e0a04
Another is for badge count number:
logseq-copilot/src/pages/background/index.ts
Lines 103 to 109 in 32e0a04
from logseq-copilot.
And before putting effort into the development work.
I want to know the rules or patterns. what will be in the search result, and what should be excluded.
Could you give an example of fuzzy searching?
from logseq-copilot.
Hi EINDEX, thank you for your reply!
Since I primarily use chatGPT for programming, I will do my best to describe it.
Here are two sample websites:
14:42 [[quick capture]]: About us - Wiren Board I removed the hash part it seems copilot can't search notes on my side
14:40 [[quick capture]]: Technologies, equipment and materials for electronic manufacturing sector
My thought will be no matter which page of the site we click, the plugin can always detect my notes under the website. Then we don't have to read the website again.
I gave my question to ChatGPT this is what I got, I have not idea how to test it yet 😂
useEffect(() => {
if (isLoading) return;
new Promise(async () => {
console.log('loading');
let queryOptions = { active: true, lastFocusedWindow: true };
let [tab] = await Browser.tabs.query(queryOptions);
setIsLoading(true);
if (!tab.url) return;
const url = removeUrlHash(tab.url);
// Format URL to match wildcard
const formattedUrl = url.replace(/\/.+/, ''); // Matching and removing everything after the last slash using a regular expression
// Format URL to match regular expression
const regexFormat = `^${formattedUrl.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')}`; // Escaping special characters
const result = await client.blockSearch(regexFormat);
if (result.status !== 200) return;
setLogseqSearchResult(result.response!);
mountOpenPageMethod();
});
});
from logseq-copilot.
Yes!! You understand it correctly.
from logseq-copilot.
That was Awesome!! Thanks a lot!!!!!🥳
from logseq-copilot.
Related Issues (20)
- Journale page used as dateformat, stops quickCapture from working HOT 1
- [Feature] Make Copilot work with startpage.com HOT 2
- How to support multi graph? HOT 1
- Feature: Implement send tabs to logseq / restore HOT 2
- Background page not resumed when sending clip HOT 2
- Add Clip page link button to menu of button extension HOT 1
- links captured are displayed as [caption](url) rather than clickable caption
- feat: support url hash at popup search
- "To block" link throwing error when opening in Logseq HOT 5
- [Feature request] User adjustable debounce timer on floating button. HOT 1
- feat: website recall rule function HOT 1
- feat: Clip at Chrome PDF file views HOT 1
- Unable to clip unless the "Display Floating Button" is turned on HOT 1
- Unable to clip selected text with Logseq 0.10.7 on Firefox HOT 8
- Results don't get shown on page, only in popup HOT 5
- Margin -8px clipping the text at the top
- I can't find the start server button. Your README is incomplete :( HOT 2
- Send images
- Support for brave search
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logseq-copilot.