macvim-dev / macvim-dev/macvim
Ability to render `html` (or some rich content) in balloon.
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
描述
I wanted to be able to control the font that is shown for a particular tooltip balloon in MacVim. The use case is for showing compiler errors in monospaced font (otherwise, they render terribly). Then, I quickly realized that I only want some of the tooltip to be monospace and some to be rendered with standard text font. I also wanted greater control over the content in general, and realized that the best way to do this would be to allow the tooltip content to accept arbitrary HTML and have that be rendered using WebKit. I believe this could be done entirely in MacVim and not concern Vim itself. When writing a plugin that shows tooltips, you would want to check if you're running inside of MacVim to determine if you should show rich HTML content vs plain text.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 MacVim 的 tooltip 或 balloon 实现入手,追踪当前如何渲染插件提供的内容。检查提议的 WebKit 边界,以及应如何在富 HTML 和纯文本之间进行选择。当插件可以在 MacVim 中请求富 tooltip 内容,同时现有的纯文本 tooltip 仍受支持时,即视为完成;不指定任何文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- html, vim
- 领域
- desktop
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100