Skip to content

feat: single View button (tags, split, display mode) with Small icons, List and Ctrl+wheel - #155

Open
Kendoismebutmaybenot wants to merge 6 commits into
mtucciarone:mainfrom
Kendoismebutmaybenot:feat/view-modes
Open

Kendoismebutmaybenot wants to merge 6 commits into
mtucciarone:mainfrom
Kendoismebutmaybenot:feat/view-modes

Conversation

@Kendoismebutmaybenot

@Kendoismebutmaybenot Kendoismebutmaybenot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

What's New

  • One View button in the top bar. The Show Tags button, the split-view button and the display-mode choice now live behind a single button (Lucide eye icon) next to the File Explorer button. Its menu has:

    • Show Tags and Open in split view toggles,
    • then the display modes: Extra large / Large / Medium icons, Small icons, List and Details, with a radio dot on the current one.

    The button is highlighted while Tags or split view is on, and a small label beside it shows the focused pane's current mode (e.g. "Details"), or "Tags" in Tags mode. The label is hidden in the collapsed sidebar rail. Display modes are greyed out on drive and Recycle Bin pages and in Tags mode.

  • Two new display modes:

    • Small icons: a small icon with the name beside it, filling rows.
    • List: the same items filling columns, scrolling sideways. The normal mouse wheel drives the sideways scroll.
  • Right-clicking empty space in the item viewer also offers a View submenu with the display modes, including in empty folders.

  • Ctrl + mouse wheel over the item viewer steps through the modes: Extra large, Large, Medium, Small, Extra small icons, then Small icons, List, Details. Wheel up is bigger, wheel down is smaller, and it stops at either end. Touchpad/smooth deltas are accumulated, so one gesture moves one step.

Screenshots

View menu in the top bar:

View menu

Large icons:

Large icons

Small icons:

Small icons

List:

List

Details:

Details

What's Changed

  • ItemViewerDisplayMode gains SmallIcons and List. Existing saved settings (Details / Gallery) still deserialize unchanged. The mode is saved per folder through the existing DirectorySettingsSnapshot.
  • New ViewPreset (in containers/structs.rs) maps menu entries and wheel steps onto display mode + gallery thumbnail size.
  • All icon-style modes render through one TileLayout in itemviewer_gallery.rs, which handles tile size, row- or column-major fill and viewport culling. Selection, drag and drop, context menus, rename and thumbnails are shared with the existing gallery code. Thumbnails are only requested for Gallery.
  • topbar.rs: the separate Tags and split buttons are replaced by draw_view_menu. The menu reuses the existing tooltip_show_tags / tooltip_open_split strings, so no locale keys were added.
  • Context-menu and Ctrl+wheel changes apply to the pane under the mouse; the top-bar button applies to the focused pane.
  • The gallery toolbar button still toggles Details and Gallery. From Small icons or List it returns to Details.
  • Drive and Recycle Bin pages keep using Details, as Gallery already did.
  • New vendored Lucide icon: src/assets/icons/lucide/eye.svg (AppIcon::Eye).

What's Fixed

  • N/A

Related Issues

  • None

Notes: the display-mode labels are English only, like the other entries in the background context menu. Arrow keys in the grid modes still move one item at a time, as they do in Gallery today. cargo fmt --check, cargo build and cargo test pass locally.

Add Small icons, List, Tiles and Content layouts next to Details and the
icon gallery. A View submenu in the background context menu (and a View
dropdown in the icon-mode toolbar) lists the same choices as Windows
Explorer, and Ctrl+mouse wheel over the item viewer steps through them in
Explorer's order. The chosen view is saved per folder like Gallery.
The bar was drawn by the icon views only, so switching to Details hid the
View dropdown with no way back except the context menu or Ctrl+wheel. Draw
the same bar above the Details table (not on drive or Recycle Bin pages).
Replace the View dropdown in the item viewer toolbar (and the Details bar
added for it) with a View button in the top bar, next to the split toggle.
It shows the focused pane's current view as a small label beside a Lucide
layout-grid icon (icon only in the collapsed sidebar rail), opens the same
eight Explorer choices, and is disabled on drive and Recycle Bin pages.
@mtucciarone

Copy link
Copy Markdown
Owner

Hi @Kendoismebutmaybenot thanks for putting in this new feature change!

I purposely don't want EdenExplorer to support the same view options as Windows Explorer, like the Tile and Content views. Based on several surveys, they are the most unused view options and therefore I'd rather not support them. Here's some evidence:
https://hardforum.com/threads/most-used-folder-view-modes-windows.1512475/
https://www.researchgate.net/profile/Costas-Vassilakis/publication/4358635_An_Interview-Based_User_Study_on_the_use_of_Visualizations_for_Folder_Browsing/links/00b4951cb36fdc7a18000000/An-Interview-Based-User-Study-on-the-use-of-Visualizations-for-Folder-Browsing.pdf

However, I do like that the view option is in the main tool bar. It would likely be more functionally correct if we updated the grouping of "View Tags", "Split Mode" and then the rest of the view options in that 4-grid icon (which might not be the most accurate UX icon for display mode) into a single button.

Thoughts?

Kendoismebutmaybenot added a commit to Kendoismebutmaybenot/EdenExplorer that referenced this pull request Nov 14, 2026
… and Content

Per review on mtucciarone#155:
- Remove the Tiles and Content display modes (enum, View menu, Ctrl+wheel
  ladder and their rendering code).
- Merge the Show Tags and split-view buttons and the display-mode menu into
  one top-bar View button. The menu has Show Tags and Open in split view
  toggles, then the display modes. The button is highlighted while Tags or
  split view is on, and its label shows the current mode (or "Tags").
- Replace the layout-grid icon with Lucide eye.
… and Content

Per review on mtucciarone#155:
- Remove the Tiles and Content display modes (enum, View menu, Ctrl+wheel
  ladder and their rendering code).
- Merge the Show Tags and split-view buttons and the display-mode menu into
  one top-bar View button. The menu has Show Tags and Open in split view
  toggles, then the display modes. The button is highlighted while Tags or
  split view is on, and its label shows the current mode (or "Tags").
- Replace the layout-grid icon with Lucide eye.
Kendoismebutmaybenot added a commit to Kendoismebutmaybenot/EdenExplorer that referenced this pull request Nov 14, 2026
@Kendoismebutmaybenot Kendoismebutmaybenot changed the title feat: Windows Explorer style view modes (View menu + Ctrl+wheel) feat: single View button (tags, split, display mode) with Small icons, List and Ctrl+wheel Nov 14, 2026
@Kendoismebutmaybenot

Kendoismebutmaybenot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks, that makes sense and I've updated the PR:

  • Removed Tiles and Content entirely (enum, menu, Ctrl+wheel and their rendering code). What's left is Extra large / Large / Medium icons, Small icons, List and Details. Happy to drop Small icons or List too if you'd like it leaner.
  • Merged Show Tags, split view and the display modes into one View button. I swapped the 4-grid icon for Lucide eye, since the button now covers more than layout. The menu has the Show Tags and Open in split view toggles at the top, a separator, then the display modes. The button highlights while Tags or split is on, and the label beside it shows the current mode (or "Tags").
  • I left the File Explorer (tabs) button where it is, since it's the other half of the Tags toggle. Let me know if you'd rather fold that in as well.

Screenshots in the description are updated.

@mtucciarone

Copy link
Copy Markdown
Owner

Thanks @Kendoismebutmaybenot ! I'll review this shortly and make updates accordingly

This branch has not been deployed

No deployments
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.

2 participants