English | 简体中文
A terminal image gallery for Yazi.
gallery.yazi opens a grid-based image browser inside the same terminal session as Yazi. It is built for fast folder browsing, lightweight image review, and selection workflows without replacing Yazi's preview pane and without jumping into a separate GUI app.
- Terminal-native thumbnail grid
vim-style navigation withhjkl,gg, andG- Mark images with
Space - Filter to marked images with
m - Single-image view with metadata
- Sync marked images and cursor position back to Yazi on exit
- Opens a thumbnail grid inside the terminal with
\g - Browses the current folder or the hovered folder
- Starts near the hovered image when possible
- Supports both arrow keys and
vim-style navigation - Lets you mark images with
Space - Syncs marked images back to Yazi when you exit
- Supports a marked-only filter for quick review passes
- Includes an in-terminal single-image view with metadata
Clone the repository into your Yazi plugins directory:
git clone git@github.com:FMVPJet/gallery.yazi.git \
~/.config/yazi/plugins/gallery.yaziOr place the plugin manually in:
~/.config/yazi/plugins/gallery.yaziAdd this key binding to your ~/.config/yazi/keymap.toml:
[[mgr.prepend_keymap]]
on = [ "\\", "g" ]
run = [
"plugin gallery -- prepare_selection",
"shell '/bin/zsh -f ~/.config/yazi/plugins/gallery.yazi/gallery.zsh %h' --block",
"plugin gallery -- apply_selection"
]
desc = "Gallery"- Open a folder with images in Yazi.
- Press
\g. - Move with arrow keys or
hjkl. - Mark images with
Space. - Press
qto return to Yazi with your selection preserved.
- Press
\gin Yazi - If the hovered item is a folder, the gallery opens that folder
- If the hovered item is an image, the gallery opens the current folder and starts near that image
- If you already selected images with
Spacein the same folder, the gallery starts inSelectionmode
Left/Right/Up/Down: move selectionh/j/k/l: move selection withvimkeysgg: jump to the first imageG: jump to the last imagen: jump forward by one screenporBackspace: jump backward by one screenqorEsc: quit and return to Yazi
Space: mark or unmark the current imagem: toggle a marked-only filter when marked images exist- Exiting the gallery writes the marked set back to Yazi
- Exiting the gallery also restores your Yazi cursor to the image you were last focused on
Enter: open the current image in a larger in-terminal viewLeft/Rightorh/l: move between imagesSpace: mark or unmark the current imageEnter,Esc, orq: return to the grid
The single-image footer shows:
- current mode
- current position
- marked state
- dimensions
- file size
- file format
- modified time
Directorymode means the gallery is browsing the full image set for the current target folderSelectionmode means the gallery is browsing only the images that were already selected in Yazi for that folder- The grid scrolls continuously as you move; it is not locked to fixed pages
- macOS-oriented implementation
- Requires a Kitty-graphics-compatible terminal for rendering
- Current scope is intentionally local and terminal-based
- This plugin is optimized for image review, not file editing or metadata editing
- Add a screenshot or GIF to show the grid and single-image view
- Add repository topics such as
yazi,yazi-plugin,terminal,gallery, andmacos
- The current implementation is terminal-first
- The gallery is designed to stay inside the same terminal session as Yazi
- The plugin favors low-dependency workflows and native macOS utilities where possible