VSNotes icon indicating copy to clipboard operation
VSNotes copied to clipboard

Date navigation in sidebar

Open yngwi opened this issue 7 years ago • 6 comments

Hi,

thanks for the great extension! It would be very convenient to have the possibility to navigate by date in addition to "Files" and "Tags" in the sidebar. Do you think this would be possible?

Kind regards, Daniel

yngwi avatar Mar 02 '18 18:03 yngwi

That's a good idea, could be very useful, though I'm not sure how granular the organization should be. Should the dates be split into year, then month, then day?

Like this:


|- 2018
    |- 01
        |- 21
        |- 22
    |-03
        |- 2

or should it be more of a flat structure

|- 2018-01-02
|- 2018-01-03
|- 2018-02-11
|- 2017-12-29

patleeman avatar Mar 06 '18 13:03 patleeman

Hm i guess the granular organization would be better considering the fact that the list will be rather big very quickly and hard to manage. Also, you already get the flat structure (kind of) with the filenames itself.

yngwi avatar Mar 08 '18 10:03 yngwi

I don't have the time to work on this functionality right now. I'm going to mark it as help wanted and if anyone would like to take a crack at it, please feel free.

patleeman avatar Jun 12 '18 13:06 patleeman

This is interesting. If a user should change the token configuration, there might not be a date in the filename to parse in order to generate the view. Perhaps a better solution is to push the date into the yaml section when the note is created and use that information to generate the view instead.

---
date: 20190130
tags:
  - 
---

wolfhoundjesse avatar Jan 30 '19 05:01 wolfhoundjesse

This is interesting. If a user should change the token configuration, there might not be a date in the filename to parse in order to generate the view. Perhaps a better solution is to push the date into the yaml section when the note is created and use that information to generate the view instead.

---
date: 20190130
tags:
  - 
---

This is interesting, as it could be used flexibly. Offering structure in this way should help towards #10 also? I've used tags before for last edited date, so I could edit that date for my own entry.

Conversely, could this not be achieved with tags and templates? Then the user can decide on structure by having the template populate with either / or - (assuming #10 was using / for folders).

PhilipWhiteside avatar Jun 07 '19 11:06 PhilipWhiteside

In terms of the granular, I think Outlook is a good example to follow:

|- Today
    |-  notes 01
    |-  notes 02
|- Yesterday
|- Last week
|- 2 weeks ago

flyisland avatar Dec 25 '19 05:12 flyisland