Skip to content
Myr

Remove $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} (#2544)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

They are not neccessary because we can use a program such as chafa that can resize images by the terminal columns and lines.

authored by Junegunn Choi · committed by Junegunn Choi · parent d02b944 · Browse files · 3 files+6 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−8 removed

  • other:+6 added−8 removed

3 files+6 added−8 removed

modified:bin/fzf-preview.sh+6 added-2 removed
modified:src/terminal.go-4 removed
2773 unmodified lines
2774 env = append(env, lines)2775 env = append(env, "FZF_PREVIEW_"+lines)2776 env = append(env, columns)2777 env = append(env, "FZF_PREVIEW_"+columns)2778 if pwindowSize.PxWidth > 0 {2779 env = append(env, fmt.Sprintf("FZF_PREVIEW_PIXEL_WIDTH=%d", pwindowSize.PxWidth))2780 env = append(env, fmt.Sprintf("FZF_PREVIEW_PIXEL_HEIGHT=%d", pwindowSize.PxHeight))2781 }2778 }2779 cmd.Env = env27802781 out, _ := cmd.StdoutPipe()
1210 unmodified lines
modified:CHANGELOG.md-2 removed
2 unmodified lines
340.43.15------6- (Experimental) Sixel image support in preview window (not available on Windows)7 - `$FZF_PREVIEW_PIXEL_WIDTH` and `$FZF_PREVIEW_PIXEL_HEIGHT` are set to8 the pixel width and height of the preview window7 - [bin/fzf-preview.sh](bin/fzf-preview.sh) is added to demonstrate how to8 display an image using Kitty image protocol or Sixel. You can use it9 like so:10 ```sh
1739 unmodified lines