feature: configurable icon for local file links
維護者通常 6 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 57/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- lua, neovim
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Lua
- 星號
- 5.2k
- 分支
- 150
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MeanderingProgrammer/render-markdown.nvim 的其他 Issue
-
難度 5/5 一週以上 新手友好度 38/100
MeanderingProgrammer/render-markdown.nvim#711 · 1 則留言 ·
維護者通常 6 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 55/100
MeanderingProgrammer/render-markdown.nvim#709 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 1-2 天 新手友好度 55/100
MeanderingProgrammer/render-markdown.nvim#706 ·
維護者通常 6 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 38/100
MeanderingProgrammer/render-markdown.nvim#685 ·
維護者通常 6 天內回覆
-
bug: Tables don't render correctly if the pipe at the end of line is missing可能已有人在做 @samholmes 於 111 天前認領。 未關閉bug
難度 3/5 1-2 天 新手友好度 55/100
MeanderingProgrammer/render-markdown.nvim#673 · 2 則留言 ·
維護者通常 6 天內回覆
查看 MeanderingProgrammer/render-markdown.nvim 的全部 Issue
相似的 Issue
-
vim.filetype.match() prefixes a URL buffer name with the cwd before passing it to filetype functions未關閉
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
obsidian-nvim/obsidian.nvim#1015 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
lewis6991/gitsigns.nvim#1607 ·
維護者通常 1 天內回覆
-
type: bug
難度 1/5 1 小時以內 新手友好度 68/100
維護者通常 3 天內回覆
-
Hyprland 0.57: monitor-workspaces reconcile errors on every start and reload when a named workspace exists (workspace.id is nil)可能已有人在做 @jasasonc 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆