Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jordwalke opened this issue Jan 24, 2016 · 6 comments
Open

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

jordwalke opened this issue Jan 24, 2016 · 6 comments
Labels
Feature Request New features request. Not an existing issue or bug. UI Issues related to UI elements, tabs, scrollbars, window resizing, etc.

Comments

@jordwalke
Copy link
Contributor

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.

@splhack
Copy link
Contributor

splhack commented Jan 25, 2016

Why don't you use this? https://github.com/rhysd/neovim-component

@jordwalke
Copy link
Contributor Author

It would be nice to write plugins that can work with MacVim since many people will not use neovim-component. I'm approaching this as a Vim plugin author for the moment.

@splhack splhack added the Feature Request New features request. Not an existing issue or bug. label Jan 26, 2016
@splhack
Copy link
Contributor

splhack commented Jan 26, 2016

In terms of install user base, just use https://atom.io/ is one of the best solution.
I'd like to keep MacVim would be simple, fast as Vim. I don't want the feature if it will affect the performance.

@jordwalke
Copy link
Contributor Author

@splhack I agree, I wouldn't want to compromise performance either. The feature request assumes there wouldn't be any downside to supporting rich balloon content, aside from the fact that it has to be implemented.

@eirnym
Copy link
Contributor

eirnym commented May 18, 2019

It's possible to implement this feature as a plugin, not a core MacVim functionality.

@ychin
Copy link
Member

ychin commented Aug 28, 2022

@jordwalke I'm currently considering this feature as part of planning out MacVim featureset for future releases. Do you still have an interest in this? Trying to gauge potential uses of a feature like this and what you may want to use it for.

For example, we could pop up a balloon with rich content or an image / html page, or we could show custom UI as a separate panel, and there have been people requesting a file view before (#1176), so I'm trying to think through potential use cases, implementation costs/complexities, and whatnot. Feel free to just chime in and maybe talk through your thoughts.

The neovim-component link does provide a lot of inspirations though. The benefit of that is that they are essentially treating (Neo)vim as a web component can you can mix that with any other web components which makes it very powerful, whereas MacVim's approach would likely need to be a little different (unless we convert MacVim to be an Electron app lol), but the example use cases like the ability to preview Markdown or pop up an image is useful as examples of what we may want to achieve.

@ychin ychin added the UI Issues related to UI elements, tabs, scrollbars, window resizing, etc. label Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New features request. Not an existing issue or bug. UI Issues related to UI elements, tabs, scrollbars, window resizing, etc.
Projects
None yet
Development

No branches or pull requests

4 participants