isIndex #3557
Its-Just-Nans
started this conversation in
Feature Requests
isIndex
#3557
Replies: 1 comment 5 replies
-
|
Thanks for the feedback 🙌 Only sharing a small tip I've used in the past to make it easier to navigate with such files: custom editor labels which is available in multiple editors including VS Code. When you have multiple files with the same name, you can apply a custom display label for those files. For example, in the case of multiple {
"workbench.editor.customLabels.enabled": true,
"workbench.editor.customLabels.patterns": {
"*/**/index.{md,mdx}": "${dirname} (${filename}.${extname})"
}
}Here is a comparison of how tabs look before and after applying this setting:
This also works when searching files to open via the command palette (Cmd+P):
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlightare you using?5.15.8
What is your idea?
Relate to #3556 (comment)
Having a
isIndexfield to replace the index.mdxIndex.mdx as default index are nice but we end up having many many files named "index.mdx" which is counter productive where searching for them
This isIndex field allow to have any file as index
Why is this feature necessary?
Not having too much "index.mdx" in the project
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions