macvim-dev / macvim-dev/macvim

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

Offen
#218 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Feature Request UI
Vorherrschende Sprache
Vim Script
Sterne
7.9k
Forks
691
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Tooltip- oder Balloon-Implementierung von MacVim und verfolge, wie von Plugins bereitgestellte Inhalte derzeit gerendert werden. Prüfe die vorgeschlagene WebKit-Grenze und wie zwischen Rich HTML und einfachem Text ausgewählt werden soll. Erledigt ist die Aufgabe, wenn Plugins in MacVim Rich-Tooltip-Inhalte anfordern können und bestehende Tooltips mit einfachem Text weiterhin unterstützt werden; Dateien oder Tests werden nicht genannt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
html, vim
Bereich
desktop
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.