elnook / notedo

Notes, Todos, Markdown, Bookmarks and more with VIM support and full-text search - stay'in organized
5 stars 0 forks source link

Link auto indexing/extraction #7

Open cmeinco opened 3 years ago

cmeinco commented 3 years ago

Summary Automatically extract all links from markdown and make as searchable links; able to jump to the link or page where the link is referenced.

Intended Outcome use the super bar to search for the link, quickly go to the link or jump to the content where the link is referenced.

How will it work? /link to find the link, tab to the link you want to go to, press enter to goto the page or ... shift+enter? to go the content.

davidwashere commented 3 years ago

In the event multiple notes have the link [docs](https://example.com/docs) but with different URLs. How do you see searching work? The search results would be something like:

  1. docs
  2. docs
  3. ...

The context will be super important to keep it clean, the note the link was found, perhaps the markdown heading, the collection, or some combination would have to be part of the search results.

  1. docs - from note A - col B
  2. docs - from note B - col B
  3. docs - from note C - col Z ...

the super bar currently will only show the top 3 results, will have to think of a way to show more results.

Also an opt-out (or opt-in) is something I would consider with it. I had thoughts in the future of having 'tagging' on notes for functional purposes, like opt-out/in, syncing specific notes with other sources (such as github), and so on, kinda like how in kubernetes labels drive functionality

cmeinco commented 3 years ago

for jumping to page, an idea: image

for auto indexing with same names, maybe these would be available in full results only? yeah the "from Note A" or /Collection/Note somehow shown in the quick results.

for the mass results (more than 3) maybe that is when "more results" shows up; showing there are 500 results? or something?

davidwashere commented 3 years ago

Another thought is I have the want to have link groupings, so for example, if I searched links for JIRA, the main link would take me to the JIRA home page, but the user could drill down into the JIRA item and get more specific links such as to specific users stores or projects that have been saved.

How that would work with search would have to think about.

You may be onto something here with sourcing links from notes, and perhaps thats the way these groupings will be created. The grouping title based on the note title that the links were found in. Thinking too of creating a tag / option on the note to opt in/out of adding links from the note - I anticipate scenarios where automatically pulling links from a note would just create clutter