feature: configurable icon for local file links
Les mainteneurs répondent en général sous 6 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 57/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- lua, neovim
- Domaine
- developer-experience
Piste de recherche
Start by reading the plugin’s link rendering and link.custom configuration code to see how it classifies link targets and applies icon overrides. Trace how relative, absolute, and file:// paths are distinguished from fragment-only links and other URI schemes. Done means local file links can use an optional configured icon, custom overrides retain precedence, and existing behavior remains when no file icon is set.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Is your feature request related to a problem? Please describe.
Links to local files currently use the same default icon as web links. When reading Markdown notes with many links to other notes, a distinct file icon would make it easier to tell whether a link opens another local document or a website.
For example:
[Related note](../notes/topic.md)
[Local document](./document.pdf)
[Website](https://example.com)
I'd like the first two links to use a Nerd Font file icon such as , while the website keeps the existing hyperlink icon.
Describe the solution you'd like
Would you consider supporting a separate icon for local file links, perhaps through an optional link.file setting?
Ideally, this would cover relative paths, absolute paths, and file:// URLs, including paths without a file extension. Fragment-only links such as #heading and links with other URI schemes should retain their existing behavior. Existing link.custom overrides should still take precedence.
Keeping the current appearance unless a file icon is explicitly configured would be fine. This request is about being able to distinguish the link targets, rather than requiring a particular default glyph.
Describe alternatives you've considered
link.custom can match known path prefixes or file extensions. However, covering local paths in general seems less straightforward: paths may have no extension, and web URLs may also end in .md or .pdf.
If there is already a clean way to express this using link.custom, a documented configuration example would also solve my use case.
Additional information
I'm interested in contributing a PR if this fits the plugin's scope. I'd appreciate your preference on whether this belongs in a dedicated setting or the existing custom-link configuration.
- Langage dominant
- Lua
- Étoiles
- 5.2k
- Forks
- 150
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de MeanderingProgrammer/render-markdown.nvim
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
MeanderingProgrammer/render-markdown.nvim#711 · 1 commentaire ·
Les mainteneurs répondent en général sous 6 jours
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
MeanderingProgrammer/render-markdown.nvim#709 ·
Les mainteneurs répondent en général sous 6 jours
-
bug
Difficulté 4/5 1-2 jours Accessibilité débutants 55/100
MeanderingProgrammer/render-markdown.nvim#706 ·
Les mainteneurs répondent en général sous 6 jours
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
MeanderingProgrammer/render-markdown.nvim#685 ·
Les mainteneurs répondent en général sous 6 jours
-
bug: Tables don't render correctly if the pipe at the end of line is missingPeut-être pris @samholmes l’a pris il y a 109 jours. Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
MeanderingProgrammer/render-markdown.nvim#673 · 2 commentaires ·
Les mainteneurs répondent en général sous 6 jours
Toutes les issues de MeanderingProgrammer/render-markdown.nvim
Issues similaires
-
Hare Lexer will Need an UpdateOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
orbitalquark/scintillua#223 ·
-
bug code-annotation
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
quarto-dev/quarto-cli#15215 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CopilotC-Nvim/CopilotChat.nvim#1588 · 3 commentaires ·
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
avante-corp/avante.nvim#3339 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
qiskit-community/qrmi#332 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour