logancyang_obsidian-copilot/docs
Zero Liu f3e5840af5
feat(relevant-notes): dedicated pane with redesigned populated view (#2559)
* feat(relevant-notes): dedicated pane with redesigned populated view

Move Relevant Notes out of the chat into its own command-opened pane
("Open Relevant Notes") and redesign the populated view: a toolbar with
the active-note context line + Build index, color-graded relevance
meters/percentages, a "Best" tag, hover quick actions, a live indexing
overlay, and a restyled hover preview card. Add-to-Chat routes a wikilink
into the open chat/agent view via a new INSERT_TEXT_TO_CHAT event.

Rank relevant notes by semantic similarity only so the displayed
percentages stay monotonic — links no longer boost the score (link-only
notes still appear, without a meter). Remove the old in-chat Relevant
Notes block and its showRelevantNotes setting; update docs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refine(relevant-notes): linear meter, link badges, excluded state, preview fixes

- Meter width now maps 1:1 to the similarity score (70% → 70%).
- Add an excluded-file empty state when the active note is outside the
  index inclusion/exclusion settings (takes priority over build/list).
- Replace the "Best" badge with Outgoing-link / Backlink badges; the
  badge+percentage cluster swaps for the action buttons on hover.
- Move row action buttons into the flex flow so the title never overlaps
  them and truncates with an ellipsis in both states.
- Render preview snippet line breaks (whitespace-pre-line).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(relevant-notes): route Add to Chat to the last-focused chat view

The Relevant Notes "Add to Chat" action hardcoded agent-first when picking
the target chat (getLeavesOfType(CHAT_AGENT_VIEWTYPE)[0] ?? legacy), so with
both chats open the wikilink landed in the wrong one. Reuse the existing
lastActiveChatViewType tracking (added for the add-to-context commands in
#2555) via a shared pickContextChatViewType() helper, so the chat we reveal
and the chat we type into always agree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refine(relevant-notes): show full note content in a scrollable preview

The hover-card preview truncated content two ways: the loaded text was
sliced to 1000 chars and the paragraph was clamped to 4 lines. Drop the
slice and replace line-clamp with a bounded, scrollable area (max-h-64 +
overflow-y-auto) so the full note is reachable in a slightly larger box.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refine(relevant-notes): replace mount-timing setTimeouts with reliable signals

Address PR review on the Relevant Notes work:

- insertTextIntoActiveChat: drop the 50ms guess. The chat views' event bus
  (ChatViewEventTarget) now latches queued "insert text"; the view drains it
  on mount and ChatInputContext buffers/flushes it when the Lexical editor
  registers, so delivery no longer depends on mount timing.
- RelevantNotesView: drop the 50ms initial dispatch. useActiveFile now seeds
  from the current active file on mount, so the pane populates immediately and
  still updates via the active-leaf-change listener.
- RelevanceMeter: route the score-driven width/color through CSS variables
  (.copilot-relevance-meter-fill) instead of an inline style.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 06:54:12 +08:00
..
agent-mode-and-tools.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
agent-mode-windows-setup.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
chat-interface.md feat(relevant-notes): dedicated pane with redesigned populated view (#2559) 2026-06-05 06:54:12 +08:00
context-and-mentions.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
copilot-plus-and-self-host.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
custom-commands.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
getting-started.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
index.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
install-claude-agent-mode-windows.ps1 docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
install-codex-agent-mode-windows.ps1 docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
llm-providers.md feat(models): add GA gemini-3.5-flash builtin (#2492) 2026-05-20 18:00:00 -07:00
miyo-api.md Refactor Miyo integration for folder API (#2331) 2026-03-30 09:05:34 +09:00
models-and-parameters.md feat(relevant-notes): dedicated pane with redesigned populated view (#2559) 2026-06-05 06:54:12 +08:00
projects.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
system-prompts.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
troubleshooting-and-faq.md feat(keychain): migrate API key storage to Obsidian Keychain (#2364) 2026-05-14 13:57:21 -07:00
vault-search-and-indexing.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00