Skip to content

fix: rank backlink suggestions by link count - #1317

Merged
ocavue merged 1 commit into
masterfrom
fix/link-usage-ranking
Sep 18, 2026
Merged

ocavue merged 1 commit into
masterfrom
fix/link-usage-ranking

Conversation

@ocavue

@ocavue ocavue commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

The [[/@ menu now ranks notes that are linked more often above rarely linked ones, and picks its candidates by link count before recency, so a much-linked note no longer sinks to the bottom or drops out because its file was edited long ago.

Summary by CodeRabbit

  • Improvements

    • Wiki suggestions now prioritize exact title and alias matches, followed by prefix and partial matches.
    • Frequently linked notes receive stronger ranking, while recently modified notes help break ties.
    • Empty searches now surface highly linked non-daily notes and exclude daily notes.
    • Suggestions recognize links created through aliases and connect them to the corresponding notes.
  • Tests

    • Added coverage for link-based ranking, alias links, exact-match precedence, recency tie-breaking, and empty-query behavior.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: bb3b1995-2afd-4510-8246-ea411fd099fb

📥 Commits

Reviewing files that changed from the base of the PR and between 4c8575d and dd9ea20.

📒 Files selected for processing (4)
  • packages/core/src/indexing/link-usage-flow.test.ts
  • packages/core/src/indexing/queries-suggestions.ts
  • packages/core/src/indexing/suggest.test.ts
  • packages/core/src/indexing/suggest.ts
 _________________________________________
< Make it work, make it right, make it 🥕. >
 -----------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@ocavue
ocavue added this pull request to stack #1319 September 18, 2026 16:47
@ocavue
ocavue marked this pull request as ready for review September 18, 2026 16:49
@ocavue ocavue changed the title fix(autocomplete): rank [[/@ suggestions by how often a note is linked fix(autocomplete): rank backlink suggestions by link count Sep 18, 2026
@ocavue ocavue changed the title fix(autocomplete): rank backlink suggestions by link count fix: rank backlink suggestions by link count Sep 18, 2026
@ocavue
ocavue merged commit 6dc575f into master Sep 18, 2026
16 of 17 checks passed
@ocavue
ocavue deleted the fix/link-usage-ranking branch September 18, 2026 16:51
This was referenced Sep 18, 2026
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

Successfully merging this pull request may close these issues.

1 participant