docs: revise project README; fix typos
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iff352e53048e8860aa2ba6d2a44b5c9a6a6a6964
This commit is contained in:
parent
c119d7ae26
commit
530fc7cdc1
1 changed files with 69 additions and 15 deletions
84
README.md
84
README.md
|
|
@ -1,32 +1,86 @@
|
||||||
# Lychee
|
# Lychee
|
||||||
|
|
||||||
[Image crate]: https://crates.io/crates/image
|
[Image crate]: https://crates.io/crates/image
|
||||||
|
[Iced]: https://iced.rs
|
||||||
|
|
||||||
Simple, opinionated and Wayland-native image viewer using the [Image crate] .
|
Simple, opinionated image viewer using [Iced] and the [Image crate]. Built to
|
||||||
Built in response to `imv`'s high memory usage on my system, and does not
|
replace `imv` on my system, particularly in response to its high memory usage
|
||||||
implement an IPC as I consider it _YAGNI_[^1]
|
and lack of UI polish. Unlike imv, Lychee does not implement an IPC as I consider
|
||||||
|
it _YAGNI_[^1] but it improves a more powerful UI and a stronger focus on user
|
||||||
Still a work in progress, I would like to reach partial feature parity with
|
experience.
|
||||||
`imv`.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
Using lychee is easy. Give it something to display. That's it.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
lychee path/to/image.png # or another extension.
|
# View a single image. Wow, much png.
|
||||||
|
$ lychee path/to/image.png
|
||||||
|
|
||||||
|
# View all images in directory
|
||||||
|
$ lychee path/to/directory/
|
||||||
|
|
||||||
|
# View specific images
|
||||||
|
$ lychee image1.png image2.png
|
||||||
```
|
```
|
||||||
|
|
||||||
You may use the `--same-size` flag to create a window that is the _same size as
|
This can be an image, multiple images, or a path containing images.
|
||||||
the image that is opening_. Success of this flag depends on your desktop
|
|
||||||
environment.
|
## Keybindings
|
||||||
|
|
||||||
|
### Navigation
|
||||||
|
|
||||||
|
| Key | Action |
|
||||||
|
| ----------------- | ----------------- |
|
||||||
|
| `→` or `l` or `n` | Next image |
|
||||||
|
| `←` or `h` or `p` | Previous image |
|
||||||
|
| `g` | Go to first image |
|
||||||
|
| `G` | Go to last image |
|
||||||
|
|
||||||
|
### Zoom
|
||||||
|
|
||||||
|
| Key | Action |
|
||||||
|
| ----------------- | ----------------- |
|
||||||
|
| `↑` or `i` or `+` | Zoom in |
|
||||||
|
| `↓` or `o` or `-` | Zoom out |
|
||||||
|
| `0` | Fit to window |
|
||||||
|
| `1` | Actual size (1:1) |
|
||||||
|
| `r` | Reset zoom |
|
||||||
|
|
||||||
|
### Slideshow
|
||||||
|
|
||||||
|
| Key | Action |
|
||||||
|
| ------- | ------------------------------ |
|
||||||
|
| `Space` | Toggle slideshow |
|
||||||
|
| `t` | Increase slideshow delay by 1s |
|
||||||
|
| `T` | Decrease slideshow delay by 1s |
|
||||||
|
|
||||||
|
### Window
|
||||||
|
|
||||||
|
| Key | Action |
|
||||||
|
| ------------ | ----------------- |
|
||||||
|
| `f` | Toggle fullscreen |
|
||||||
|
| `q` or `Esc` | Quit |
|
||||||
|
|
||||||
|
### Mouse
|
||||||
|
|
||||||
|
- **Scroll**: Zoom in/out
|
||||||
|
- **Click + Drag**: Pan image
|
||||||
|
- **Window close button**: Quit
|
||||||
|
|
||||||
## Supported Image Formats
|
## Supported Image Formats
|
||||||
|
|
||||||
All formats supported by the Image crate will be supported by Lychee. For edge
|
Lychee supports a wide array of formats. Primarily, those supported by the
|
||||||
cases, please open an issue. For the time being, this should include: AVIF, BMP,
|
[Image crate] will be supported verbatim in Lychee. At the time of writing,
|
||||||
DDS, Farbfeld, GIF, HDR, ICO, JPEG, EXR, PNG, PNM, QOI, TGA, TIFF and WebP.
|
includes: AVIF, BMP, DDS, Farbfeld, GIF, HDR, ICO, JPEG, EXR, PNG, PNM, QOI,
|
||||||
|
TGA, TIFF and WebP.
|
||||||
|
|
||||||
|
More formats may be supported in the future on demand.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Lychee is available under the [Mozilla Public License Version 2.0](./LICENSE)
|
This project is made available under Mozilla Public License (MPL) version 2.0.
|
||||||
|
See [LICENSE](LICENSE) for more details on the exact conditions. An online copy
|
||||||
|
is provided [here](https://www.mozilla.org/en-US/MPL/2.0/).
|
||||||
|
|
||||||
[^1]. ["You Aren't Gonna Need It"](https://martinfowler.com/bliki/Yagni.html)
|
[^1]: ["You Aren't Gonna Need It"](https://martinfowler.com/bliki/Yagni.html)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue