From 10864798dce1b40f1d1db23ee32d8417e156de7a Mon Sep 17 00:00:00 2001 From: mataha Date: Thu, 7 Sep 2023 01:37:40 +0200 Subject: [PATCH] Do not pad sliding preview window by default (#258) Fixes #257. --- color_helper.sublime-settings | 2 +- docs/src/markdown/settings/previews.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/color_helper.sublime-settings b/color_helper.sublime-settings index 81e0884..aedc5d3 100755 --- a/color_helper.sublime-settings +++ b/color_helper.sublime-settings @@ -107,7 +107,7 @@ // to extend the range by. Padding is applied on both sides. So padding // by 20 rows pads by 20 on the top and 20 on the bottom. Large padding // could cause lag with typing or scrolling. - "preview_window_padding": [20, 20], + "preview_window_padding": [0, 0], // The gamut space to render previews in. // Supported spaces are: `srgb`, `display-p3`, `rec2020`, diff --git a/docs/src/markdown/settings/previews.md b/docs/src/markdown/settings/previews.md index f025443..d921233 100644 --- a/docs/src/markdown/settings/previews.md +++ b/docs/src/markdown/settings/previews.md @@ -15,7 +15,7 @@ Previews can be positioned to the left or right of a color. Set this value to "l "inline_preview_position": "left", ``` -## +## `preview_window_padding` Color previews are processed in a sliding window. Without any padding it exactly matches the visible region. This allows you to extend the window and process content just out of visible range. It should be noted though that large padding @@ -28,7 +28,7 @@ could cause typing or scrolling lag. // to extend the range by. Padding is applied on both sides. So padding // by 20 rows pads by 20 on the top and 20 on the bottom. Large padding // could cause lag with typing or scrolling. - "preview_window_padding": [20, 20], + "preview_window_padding": [0, 0], ```` ## `preview_on_select`