macvim-dev / macvim-dev/macvim

Ability to render `html` (or some rich content) in balloon.

Open
#218 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request UI
Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin in MacVim's tooltip or balloon implementation and trace how plugin-provided content is currently rendered. Check the proposed WebKit boundary and how rich HTML versus plain text should be selected. Done means plugins can request rich tooltip content in MacVim while existing plain-text tooltips remain supported; no files or tests are named.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, vim
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.