Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

New "fill" mode #413

Open
torresjrjr opened this issue Aug 25, 2020 · 0 comments · Fixed by GRFreire/sxiv#7 · May be fixed by #446
Open

New "fill" mode #413

torresjrjr opened this issue Aug 25, 2020 · 0 comments · Fixed by GRFreire/sxiv#7 · May be fixed by #446

Comments

@torresjrjr
Copy link

Preposition

  • Add new Image mode keybinding F to scale image to fill window.
  • Add new scale mode, "fill" mode. Possibly -s F.

Explanation

I want to make an image fill the sxiv window (scaled from the center), whether an image is wider or taller than the sxiv window. Basically, no black bars, please.

The W key does something similar where is automatically chooses the longest dimension to scale to. The preposed F key and fill mode would automatically scale the image by its shortest dimension, like choosing whichever e or E key would fill the window. That way, whatever dimensions the sxiv window and image is, there will be no surrounding "black bars", just image.

Notes

I want to be able to open an sxiv slideshow with no black bars.

sxiv  .  -s F  -S 1

I code but I don't now C, although I can't imaging this would be too hard to implement by refactoring the case statement at https://github.com/muennich/sxiv/blob/master/image.c#L394

Thank you for your consideration. Let me know if I've missed something.

@XPhyro XPhyro linked a pull request Apr 14, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant