Skip to content

Commit

Permalink
Do not pad sliding preview window by default (#258)
Browse files Browse the repository at this point in the history
Fixes #257.
  • Loading branch information
mataha authored Sep 6, 2023
1 parent ad4d779 commit 1086479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion color_helper.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
4 changes: 2 additions & 2 deletions docs/src/markdown/settings/previews.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down

0 comments on commit 1086479

Please sign in to comment.