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

Sort order of notes in Tag/Note Explorer by modification time #1265

Open
piojanu opened this issue Aug 1, 2023 · 2 comments
Open

Sort order of notes in Tag/Note Explorer by modification time #1265

piojanu opened this issue Aug 1, 2023 · 2 comments

Comments

@piojanu
Copy link

piojanu commented Aug 1, 2023

Is your feature request related to a problem? Please describe.

In Zettelkasten, when you create lots and lots of atomic notes, it's very useful for me to see what are the recent notes I've worked with so I cat start from there. In programs like Obsidian.md you can control how the notes are sorted. I don't see this option in Foam.

Describe the solution you'd like

As a user, I expect to be able to change in settings sort order of notes in Tag/Note Explorer to "modification time" just as you can modify "explorer.sortOrder": "modified".

Describe alternatives you've considered

I don't see any alternative currently.

Screenshots or Videos

No response

@piojanu
Copy link
Author

piojanu commented Aug 1, 2023

I'm happy to implement it myself with some help from your side i.e. where is the place to start? I didn't develop any VSCode extension to this date. I'm a research engineer working with Python, but I've studied CS, so I have some experience with JavaScript.

@riccardoferretti
Copy link
Collaborator

Hi @piojanu
the logic you are looking for is in folder-tree-provider.ts, which is used by notes-explorer.ts.
I am not sure it's going to be a trivial change, as we don't store in our model the last modified date, so a clean solution would require also changing the model itself (which will probably touch markdown-provider.ts datastore.ts and note.ts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants