Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disambiguation Page of All Notes #421

Open
spaceclottey opened this issue Dec 31, 2020 · 8 comments
Open

Disambiguation Page of All Notes #421

spaceclottey opened this issue Dec 31, 2020 · 8 comments
Labels
foam-vscode Foam for VSCode extension in packages/foam-vscode good first issue Good for newcomers help wanted Extra attention is needed

Comments

@spaceclottey
Copy link

This is a proposal for a feature that creates a page of all your markdown notes, so that people navigating your Foam site will be able to locate pages that would be otherwise orphaned.

@riccardoferretti
Copy link
Collaborator

do I understand correctly that this is an index page for all your notes?

@rajlego
Copy link

rajlego commented Jan 1, 2021

Yes, that's what we have in mind. It's difficult to find a lot of notes (for browsers of our site) since many are orphans (since wiki is still relatively new) and others might be hidden more deeply.

@riccardoferretti riccardoferretti added foam-vscode Foam for VSCode extension in packages/foam-vscode good first issue Good for newcomers help wanted Extra attention is needed labels Jan 2, 2021
@MCluck90
Copy link
Contributor

MCluck90 commented Jan 7, 2021

I'd like to make a request maybe for a v2 of this feature: allow the user to specify some sort of filter. In my case, I would find value in indexing most of my notes but indexing all of my daily notes would just create a lot of noise.

@rajlego
Copy link

rajlego commented Jan 8, 2021

Small extra request for a maybe v3...could you sort by 'weight'? Put things with most links to/from at the top and descend?
I have a burning hatred of sites like Paul Graham's which have amazing content but force me to go through them in random, arbitrary inefficient order

@Koleok
Copy link

Koleok commented Jan 16, 2021

Pretty easy to just write a script for this and run it prepush or something, I initially did just that when I started my repo, but found that it rendered the graph much less useful with hundreds of useless edges that don't represent conceptual connections. In order for a master index to be useful it'd be nice to be able to tell the graph to ignore specific files, in a foam config file or something.

@Koleok
Copy link

Koleok commented Jan 16, 2021

I might take a crack at this actually, nice easy entry issue 👌

@daniel-vera-g
Copy link
Contributor

daniel-vera-g commented Apr 24, 2021

I recently migrated my "regular" notes to foam and created "local" index files that link to related concepts. I used a simple shell script.


For this use case, I would used a simple find command that searches all local markdown files and inserts them in the index file with the foam link-syntax.

  • I use fd:
fd -e md -E '*/journal/*' -x echo '- [['{/.}']]' > index.md
  • But you can also achieve same results with find(I don't use it regulary...maybe there's a simpler option):
find  ./ -name '*.md' -not -path '*/journal/*' -exec basename {} .md \; | while read filename;do echo '- [['$filename']]' >> index.md;done

This essentially allows to:

  1. Create an index page of all your foam notes
  2. Use any kind of filter(Filename patterns, Content RegEx patterns,...)
  3. Ignore specific files/folders after a pattern,...

You could expand this and sort for the amount of foam links in it(Weight). But this was not in my scope 😄


Maybe it helps someone in the meantime.

@cliffordfajardo
Copy link
Contributor

I tend to fiddle around with other PKM just to learn from their user interfaces and Reflect.app has a "All notes" tab which lists all your notes in a list like so:

image

Note: I don't use the app, so I cannot give detailed description about it; I'm currently using Foam and sometimes use Obsidian

Creating a custom UI for this type of view is possible; I haven't written a VSCode extension in about 2 years (I've published a few tho)
I started a discussion here about the new VSCode APIs/utility libraries that Microsoft & Github have been collaborating on here and how they might be relevant to Foam:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foam-vscode Foam for VSCode extension in packages/foam-vscode good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants