Comments (2)
Mhh... let me try to rephrase, to see if I understood you correctly. Let say that you have a vim plugin that scans the current buffer for information. For example: finding an URL below the cursor. When the plugin does detect the URL, it wants the GUI client (Eovim) to trigger a widget at a given position (e.g. line+column) to make it contain additional information or controls (e.g. the widget could contain a button "Open"). Something like what is show there: https://fau.re/blog/20141019_terminology_gravatar.html.
That would indeed be a nice feature to have. Actually, you can already make it, but is would require some work, as you would need to implement an Eovim plugin.
If we take my previous example, upon detecting an URL under the cursor, the neovim plugin would run something like:
:call Eovim("tooltip", {'column': xx, 'line': yy, 'data': '...'})
Here data
is a bit too generic, but I believe we can pass instead different keys:
text
, taking a string with markup, to have rich text display,run_command
, which would generate a button with some explicative text (e.g. "Open URL") which upon being pressed would execute a command (e.g.xdg-open <url>
).- ...
Please tell me this is somewhat what you had in mind, and I'll try to add a new Eovim plugin that implements a tooltip functionality.
from eovim.
Yep, that's basically it.
I actually have an implementation of this for vanilla neovim: yshui/tooltip.nvim
from eovim.
Related Issues (20)
- OpenSUSE Tumbleweed support HOT 2
- Can't load plugins HOT 2
- Use of --headless HOT 1
- neovim >=0.3.2 not working HOT 5
- eovim crashes when I run :checkhealth HOT 1
- Bindings for control+shift send control instead HOT 2
- no effect when setting guifont HOT 4
- Executable cannot find its installed libraries on 64bit OS X HOT 2
- Platform 'Debian GNU/Linux' is not supported by the setupt script. HOT 2
- No Ligatures support HOT 10
- Broken support for nvim < 0.4
- seg fault at start HOT 6
- Unusable on HiDPI display HOT 4
- Conform to fontconfig spec.
- Vertical alignment issue with splits, impacted by font weight setting HOT 4
- Theming HOT 1
- defining theme instead of passing it as parameter? HOT 2
- Segfault in a test completion HOT 7
- Unable to set guifont as normal HOT 2
- build system doesn't find a recent msgpack-c or msgpack-cxx (version 6) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eovim.