Features/Page commands

Page commands

On an album or space page, the search palette grows verbs for that page: rename, share, add a member, delete. You only get the ones your role allows.

searchcommandsactionskeyboardDocumentation
Gallery's Cmd+K search palette open on an album page with '>album' typed, showing a Commands section with 'Delete this album' armed in red with a 'Press Enter again to confirm · Esc to cancel' hint, alongside Rename, Share, and Download this album

The palette knows what page you're on

On most pages the Commands section in the Cmd/Ctrl+K palette holds stateless global verbs: Upload files,Create album, Create shared space, Toggle theme. Open the palette on an album or a space page and the section grows verbs that only make sense right there. They go away the moment you navigate off.

On an album page: Rename this album, Share this album, Download this album, plus Delete this album if you own it or Leave this shared album if you don't. On aspace page: Manage space members, Add a member to this space, Add all my photos to this space, and either Delete this space or Leave this space. Space sub-pages carry the section too, the people tab and the photo sub-routes included, so the space verbs stay in reach.

Search palette open on an album page with '>album' typed into the input, showing a Commands section with New Album, Delete this album (armed in red), Rename this album, Share this album, and Download this album, plus an Albums and Sharing navigation section below

Every verb reflects what you can do

Context commands run the same permission checks as the rest of the UI. A viewer on an album never seesRename or Delete. An album owner never sees Leave, because you can't leave an album you own. Add all my photos is write-only, so a space viewer never gets it. Every row you can see does something when you press Enter.

Fire a command for an album that was deleted in another tab and the palette catches the 404, shows a toast, and drops the entry from recent history.

A two-step confirm for anything you can't undo

Deleting an album, deleting a space, leaving one: none of these fire on a single stray Enter. The firstEnter arms the row. The background tints red, an inset ring outlines it, and the subtitle swaps to "Press Enter again to confirm · Esc to cancel". The second Enter fires. Esc cancels, and so does arrowing away, picking a different command, or typing one more character. A 3-second timeout clears it on its own.

Add all my photos to this space asks twice as well. It only adds, but it queues a background job that touches thousands of assets.

Search palette with '>run' typed into the input, showing five admin Run commands: Run thumbnail generation (highlighted as Top result), Run metadata extraction, Run smart search, Run face detection and Run face recognition, followed by matching System Settings navigation entries

Part of the search palette

Page commands shipped as part of the Search palette, the Cmd/Ctrl+K surface that also searches photos, people, places and tags, scopes results by prefix, and fires global verbs like upload and create album.

Read the full documentation on GitHub

Ready to run Gallery on your own server? The install takes about five minutes.