Vim: Improve easymotion labels style.

Created on 24 May 2017  路  7Comments  路  Source: VSCodeVim/Vim

  • Click thumbs-up 馃憤 on this issue if you want it!
  • Click confused 馃槙 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


It would be great to have the easymotion labels with the same style of editor characters (same font, font size, width per char etc.. but obviously with different fg/bg colors,) in order to get an exact overlap, like Vim on terminal.
Currently easymotion label's style is customizable but it's very hard to get it right, especially if you change font family/size.

arenot-vim-core kinenhancement

Most helpful comment

To add on to this, there's no way to position the marker box itself. easymotionMarkerYOffset only adjusts the positioning of the text inside the marker box. For me, the marker box is too high. It doesn't adequately cover the text or allow for marker text to be fully visible when positioned correctly.

All 7 comments

If they are customizable, what is hard to get right? How should this be improved?

I assume you saw this in the readme..

vim.easymotionMarkerBackgroundColor The background color of the marker box.
vim.easymotionMarkerForegroundColorOneChar  The font color for one-character markers.
vim.easymotionMarkerForegroundColorTwoChar  The font color for two-character markers, used to differentiate from one-character markers.
vim.easymotionMarkerWidthPerChar    The width in pixels allotted to each character.
vim.easymotionMarkerHeight  The height of the marker.
vim.easymotionMarkerFontFamily  The font family used for the marker text.
vim.easymotionMarkerFontSize    The font size used for the marker text.
vim.easymotionMarkerFontWeight  The font weight used for the marker text.
vim.easymotionMarkerYOffset The distance between the top of the marker and the text (will typically need some adjusting if height or font size have been changed).

Because when you change font family/size you have to reconfigure everything "by eye": height/font size/font family/width per char/Y offset. All these parameters should be calculated automatically by the extension is such a way that the label char covers 1:1 the char "below".
The only thing I want to configure is bg/fg colors.
[with the option to customize everything, as it is now]

To add on to this, there's no way to position the marker box itself. easymotionMarkerYOffset only adjusts the positioning of the text inside the marker box. For me, the marker box is too high. It doesn't adequately cover the text or allow for marker text to be fully visible when positioned correctly.

Has this been fixed recently?

2017 may have fixed it

@xconverge nope.

:+1: on this--it would be great to have the box be larger and the label centered within it. The current settings don't let you tweak this and the labels appear at the very bottom of the box, which isn't (IMO) large enough and therefore doesn't actually cover the background text well, making it hard to read.

I poked around in the dev console but there isn't a consistent class being used by these :after pseudo-elements that could easily be overriden, so it seems like it would have to be baked into the plugin itself.

I just opened a related issue https://github.com/VSCodeVim/Vim/issues/2751.

Basically an X offset would be helpful. Like vim.easymotionMarkerYOffset but for X.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerardmrk picture gerardmrk  路  3Comments

elithrar picture elithrar  路  3Comments

rajinder-yadav picture rajinder-yadav  路  3Comments

lucastheisen picture lucastheisen  路  3Comments

WangRongda picture WangRongda  路  3Comments