From 76304da61f791bb644f26e6a7ef949c0d1878c44 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 8 Oct 2025 05:11:49 +0530 Subject: [PATCH] feat: add README with app description and keybindings --- README.md | 15 +++++++++++++++ src/viewer.rs | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..859429f --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# MM - Minimal Image Viewer + +A cross platform minimal image viewer with vim-like keybindings, built using rust and gpui + + +### Keyboard Shortcuts + +| Key | Action | +|-----|--------| +| `q` or `Escape` | Quit the application | +| `j` or `→` | Next image | +| `k` or `←` | Previous image | +| `g` | Go to first image | +| `Shift+G` | Go to last image | +| `c` | Cycle through object fit modes (Contain → Cover → Fill) | diff --git a/src/viewer.rs b/src/viewer.rs index eef650b..2e38216 100644 --- a/src/viewer.rs +++ b/src/viewer.rs @@ -46,7 +46,6 @@ impl Render for MMViewer { .bg(rgb(0xffffff)) .justify_center() .into_any() - // .align_center() }), ) } else {