Hide .md extension in settings suggesters#1104
Conversation
Only affects suggestion display text; selected/stored values keep full paths.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughAdds a display-only helper to strip trailing Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying quickadd with
|
| Latest commit: |
1961250
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://77c4ac27.quickadd.pages.dev |
| Branch Preview URL: | https://codex-hide-md-extension-sett.quickadd.pages.dev |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/gui/suggesters/genericTextSuggester.ts`:
- Around line 40-45: In renderSuggestion, normalize the displayed query the same
way the displayed value is normalized so highlights still match when the user
types a partial extension (e.g. "note.m"); specifically, keep using
stripMdExtensionForDisplay(value) to produce displayValue, then if the raw value
ends with ".md" (case-insensitive) and the current query
(this.getCurrentQuery()) begins with displayValue followed by a dot (i.e.
displayQuery.startsWith(displayValue + '.')), replace displayQuery with
displayValue before calling renderMatch; reference renderSuggestion,
stripMdExtensionForDisplay, getCurrentQuery, and renderMatch when making this
change.
When the selected value ends with .md but the query includes a partial extension (e.g. note.m), normalize the display query to keep highlights aligned.
Ensures highlight normalization still triggers when user types note.m but suggestion casing differs (e.g. Note.MD).
# [2.11.0](2.10.0...2.11.0) (2026-02-08) ### Bug Fixes * add newline when appending tasks ([#1102](#1102)) ([a4b4e4a](a4b4e4a)) * clarify split direction labels to match actual behavior ([#1089](#1089)) ([ea97045](ea97045)), closes [#1081](#1081) * correct end-of-section line detection ([#1096](#1096)) ([0eeedb3](0eeedb3)), closes [#593](#593) * **docs:** explain how to add user scripts to macros ([c6e2448](c6e2448)) * encode spaces in advanced uri docs ([0c24cd0](0c24cd0)) * handle alias frontmatter case and commas ([cc6aec6](cc6aec6)) * improve capture target resolution ([1bd7520](1bd7520)) * improve choice rename UX ([bccc331](bccc331)), closes [#683](#683) * **settings:** hide .md extension in settings suggesters ([#1104](#1104)) ([2e6056e](2e6056e)), closes [#102](#102) ### Features * **format:** add case transforms for VALUE/NAME ([#1103](#1103)) ([1a962c2](1a962c2)), closes [#90](#90)
|
🎉 This PR is included in version 2.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes #102
.mdin the suggestion list..md)..mdis stripped; other extensions remain visible.Notes:
{{TEMPLATE:...}}tokens still show.md.Summary by CodeRabbit
New Features
Tests