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

Completion Sort Order: Frequency/Recency #639

Open
kevinjalbert opened this issue Jun 28, 2023 · 0 comments
Open

Completion Sort Order: Frequency/Recency #639

kevinjalbert opened this issue Jun 28, 2023 · 0 comments

Comments

@kevinjalbert
Copy link

The sort order of the auto-completion appears to be alphabetical. Would it be possible to do it based on frequency of the URI/link, or recency of the files?

My reasoning is that an infrequently used link might always be 'top' pick even though it isn't referenced often. I'm personally seeing this with using people's names as links, based on the size of the knowledge base there are names that aren't currently relevant but show up before the name I want to use (which is used more frequently/recently).

I didn't spend too much time looking into it, but It seems like memo pulls together all the links in a cache on boot. Would it be possible to have this cache also store alongside it the number of 'occurrences' and/or the most recent timestamp of the file it was used in, and that could be used to influence the sort order?

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

1 participant