Kakoune: Allow displaying several `info` boxes at once

Created on 22 Jul 2017  路  7Comments  路  Source: mawww/kakoune

Hi,

I made a translation script that prints the translation of each selection beneath it, but only one info pop up with show up on the window. I'd like to be able to show all the translations at once, if possible.

Thanks.

Most helpful comment

+1. In my case I have two sources showing info boxes:

  1. eslint through lint command
  2. kak-lsp plugin (throught Json-Rpc's info_show request)

And when I "hover" over something meaningful for kak-lsp it produces an info box which cancels previously displayed lint error so it's impossible to see both of them at the same time. Here's a little demonstration:

demo

You can see how the lint message flashes for a moment when I hover over forward and then gets overridden by another info.

I think there should be a way to stack multiple inline infoboxes as well as to support combinations of inline and "docked" info boxes which could be shown simultaneously.

All 7 comments

To be more precise, all boxes are printed in the order of declaration, except each makes the previous one disappear, I'd like to bundle them all in the same "frame".

+1. In my case I have two sources showing info boxes:

  1. eslint through lint command
  2. kak-lsp plugin (throught Json-Rpc's info_show request)

And when I "hover" over something meaningful for kak-lsp it produces an info box which cancels previously displayed lint error so it's impossible to see both of them at the same time. Here's a little demonstration:

demo

You can see how the lint message flashes for a moment when I hover over forward and then gets overridden by another info.

I think there should be a way to stack multiple inline infoboxes as well as to support combinations of inline and "docked" info boxes which could be shown simultaneously.

Is there any progress? I've found myself missing multiple anchored infoboxes. Possible use case: implementation of ace-jump

I did not know about https://github.com/winterTTr/ace-jump-mode but it seems to be closely related to https://github.com/danr/kakoune-easymotion

@Delapouite yes, this one is related, just an example of possible usage

Implementation suggestion: add a -name switch, any info with a name will only replace infos with the same name, all others will be left alone. This probably only works with the above and below styles with an anchor.

Also, a -sticky flag that makes the info not be automatically cleared. The only way to clear it is with info -name <name>, like modal.

Also, while were at it, a -face switch would also be nice to change the appearance. Maybe a -markup flag like echo? Or some other way to do highlighting inside the box?

And an -assistant flag? I'd love to change which assistant is used for different kinds of messages. Clippy for showing error diagnostics, Dilbert for documentation, etc.

Maybe a -markup flag like echo?

https://github.com/mawww/kakoune/issues/2552

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lenormf picture lenormf  路  4Comments

alexherbo2 picture alexherbo2  路  4Comments

abitofalchemy picture abitofalchemy  路  3Comments

hwmack picture hwmack  路  4Comments

vbauerster picture vbauerster  路  3Comments