dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.68k stars 252 forks source link

Auto complete of note links should respect hierarchy location #3824

Open nickolay-kondratyev opened 1 year ago

nickolay-kondratyev commented 1 year ago

Please select if your request is either something new or an enhancement

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Is your feature request related to a problem? Please describe

Auto complete is completely oblivious in which note we are currently are. This makes it less useful when schemas are used and similar note names are used in different parts of overall hierarchy.

Describe the solution you'd like

Have auto complete that is activated within [[]] respect which part of the hierarchy you are.

Lets say:

You are within:

theme-parks.disneyland.fast-rides.md

And you start typing [[space

At the top of the auto complete list should be:

theme-parks.disneyland.adventure-rides.space-mountain

Rather than something like

first-man-in-space

Since space-mountain is in the same tree as the note we are currently in.

Harshita-mindfire commented 1 year ago

Thanks @nickolay-kondratyev for the enhancement request.

nickolay-kondratyev commented 1 year ago

Also, another improvement on auto complete, it should respect last update date when there are multiple matches.

Unfortunately, right now it's choosing matches at the top that not only are older by last update but actually have less of match with the input that is given. Example:

Screen Shot 2022-12-04 at 4 41 32 PM