Add Breadcrumbs feature #32
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breadcrumb trails capture an ordered path through the code. Each crumb stores the target file/range, captured snippet, timestamp, and optional note. Trails live alongside regular notes in memory, load on activation from
.security-notes-breadcrumbs.json, and auto-save whenever the store changes or on deactivate. (Paths are stored relative so the data travels cleanly inside the workspace.)All breadcrumb data is local-only today; remote sync comes later.
Commands Added
security-notes.breadcrumbs.createTrail– prompt for a trail name/description and set it active.security-notes.breadcrumbs.selectTrail– quick-pick to switch the active trail.security-notes.breadcrumbs.addCrumb– capture the current editor selection (or line) plus an optional note, append it to the active trail, and push the update through the store so persistence kicks in.security-notes.breadcrumbs.removeCrumb/editCrumbNote– quick-pick helpers for maintenance.security-notes.breadcrumbs.showTrailDiagram– reveals the Breadcrumbs view in the activity bar.security-notes.breadcrumbs.exportTrail– exports the active trail to a Markdown report summarizing every crumb with code fences and metadata.Webview UI
Persistence
.security-notes-breadcrumbs.json(configurable viasecurity-notes.breadcrumbs.localDatabase). On activation we load the file and hydrate the store; every subsequent change triggers an auto-save. When you export, the Markdown file is written wherever you choose, independent of the store.