Sublime Forum

Phantom/minihtml Pinning

#1

For ActualVim, I’m trying to show the vim status line and some message flashes in a reasonable way, but short of an output panel (which is okay for complex command output but looks terrible to leave up all the time), the next best thing I’ve found is putting a phantom on the 4th from last line, which works rather well until you scroll or put the cursor under it (it jumps around a lot).

I’d really like the ability to pin a minihtml view to the bottom of a view (not hovering, but requiring the view to scroll further as though the Phantom were UI chrome). I want it to act exactly like the normal html popup, except full-width, variable height, and stuck to the bottom.

I’d use this to render a very nice-looking Vim status line. Here’s my hacky hover PoC:

While I’d rather have this (and users would probably hide the status bar).

1 Like

#2

You can (sort of) accomplish this with an output panel. You can’t dynamically resize it, but if the user resizes it to show exactly one column, you’ll have the freedom to do whatever in that one line. (Or make the user resize to two lines and have two lines available.)

You can use phantoms in output panels, if you need minihtml.

0 Likes

#3

I played with that a bit… the biggest issue is I will often need a variable number of lines, and it’s awkward if it conflicts with the console/build/etc. I guess for multi-view workflows having the status glued to the bottom of the window would be better than having one per view.

0 Likes