Skip to content

Allow user to specify image size#27

Open
b0ch3nski wants to merge 3 commits intodanielgatis:masterfrom
b0ch3nski:termsize
Open

Allow user to specify image size#27
b0ch3nski wants to merge 3 commits intodanielgatis:masterfrom
b0ch3nski:termsize

Conversation

@b0ch3nski
Copy link
Copy Markdown

This PR mainly introduces the options to specify rows and cols using flags. It also fixes the top-offset changes made in #24 and updates the golang.org/x/* dependencies.

Example usage for rows and cols - use FZF with a preview made by the imgcat:

... | fzf --prompt="Image preview: " --preview="imgcat {1} -cols=\${FZF_PREVIEW_COLUMNS} -rows=\${FZF_PREVIEW_LINES} -top-offset=0" --preview-window="right,50%,wrap"

Signed-off-by: Piotr Bocheński <piotr@bochen.ski>
And make variables more readable.

Signed-off-by: Piotr Bocheński <piotr@bochen.ski>
Signed-off-by: Piotr Bocheński <piotr@bochen.ski>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant