proton icon indicating copy to clipboard operation
proton copied to clipboard

Visual markers to number panes

Open sglyon opened this issue 9 years ago • 7 comments

It would be great to visually number panes so users know which one they are jumping to. Refs #65 #72

This comment has potential suggestions for where to put the numbers

sglyon avatar Dec 31 '15 18:12 sglyon

How about this? On space, we currently dim the editor panel and catch all user inputs anyway. What we could do is add some more logic and just show a big number (like in tmux) with the pane index.

demo

Not sure about the implementation details yet though and if it could conflict with non-editor panes (https://github.com/dvcrn/proton/pull/90)

dvcrn avatar Jan 06 '16 03:01 dvcrn

Here's a short test I did with some css positioning.

screen shot 2016-01-06 at 4 25 20 pm screen shot 2016-01-06 at 4 28 45 pm

I post the css / html code down here in case someone wants to tackle it. It makes sure the number is always inside the center of the panel, on top of everything else.

<div class="mytest" style="
    position: absolute;
    color: white;
    font-size: 155px;
    display: flex;
    align-items: center;
    z-index: 10000;
    width: 100%;
    height: 100%;
"><div style="margin: auto;">1</div></div>

But to be honest, I think this might do better as a completely separate plugin alltogether. I'll see if I can find some time to hack something together :)

dvcrn avatar Jan 06 '16 07:01 dvcrn

I like this, but I think that I would like it even more if the numbers were a bit more subtle. Right now the current UI is pretty "slick" and the very large numbers don't have that same feeling to me.

sglyon avatar Jan 07 '16 05:01 sglyon

It was just a mockup :smile: Feel free to slap a different font, color and size on how you like it most

dvcrn avatar Jan 07 '16 07:01 dvcrn

Someone work on this? I want this feature as independent package and I'm willing to implement it.

@dvcrn Help me, when you achieve above screenshot with code(HTML/css) you put, where did you put that code? I believe you appended div to each pane by appendChild, but what is parent node?

t9md avatar Jul 18 '16 14:07 t9md

released choose-pane

t9md avatar Jul 18 '16 18:07 t9md

@t9md that was fast! I'll try to integrate it into proton soon, thank you 👍

dvcrn avatar Jul 19 '16 01:07 dvcrn