Open nickolay-kondratyev opened 2 years ago
Hey, @nickolay-kondratyev, there was an issue before that referred to a similar concept--subtree hoisting (where you filter the tree and restrict the lookup to a certain hierarchy):
What you suggesting is the opposite of hoisting (de-hoisting? :)) where certain hierarchies are excluded from the lookup, but I think the general concept is the same--focusing on specific parts of your vault.
This issue is featured in this week's round of CROP voting.
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
Currently there isn't an archiving capability.
Describe the solution you'd like
To be able to reach archived notes but for archived notes to not clutter the top results of the lookup.
A simple solution to this problem can be adding sort order prior to sort order of the
score
(https://github.com/dendronhq/dendron/blob/master/packages/common-all/src/fuse.ts#L317-L324) against somearchive
signaling mechanism.A suggested signaling mechanism is to have
archive
be part of the note name (to allow utilization of other refactoring tooling such as being able to archive a hierarchy by usingRefactor Hierarchy
command).It would be nice to not limit
archive
note naming to only the beginning meaning to allow support for:foo.bar.baz
->foo.archive.bar.baz
(this way a sub hierarchy can be archived, but main hierarchy could have other un-archived children).However, even supporting
foo.bar.baz
->archive.foo.bar.baz
would be super helpful for organizational lookup.With this addition to sorting if someone wants to find the archived notes they could still reach them an even filter out the non archived notes by just typing
archive
into the lookup query.Describe alternatives you've considered
Approach 1: Trying to manually change the update time on the note. (which gets overriden)
Approach 2: Attempting to set initial value for note lookup as
Setting the initial value has the nuisance of having the
!archive
selected which requires hitting the arrow key (which quite far from the home row while navigating quickly).Additional context