All projects

My own tool · WordPress plugin

Bricks Flick

A gesture pie menu for the Bricks builder. Hold a shortcut, flick toward an action, release, and the element is inserted, duplicated, wrapped or saved.

Challenge

Building a page in Bricks means hundreds of small trips: up to the toolbar for an element, over to the Structure panel to duplicate or wrap, back to the canvas. Shortcuts help, but there are many to remember, and most actions don’t have one.

Solution

Bricks Flick puts those actions in a wheel around the pointer. Hold Alt+Q (Option+Q on a Mac), flick toward an action and let go. Because the direction is what counts, not hitting a small button, the gesture soon becomes muscle memory.

  • Insert: Section, Container, Block, Div, Heading, Text, Button and Image, with the new element selected for the next insert.
  • Edit: Duplicate, Delete, Wrap, Copy, Paste and Rename.
  • History and builder: Undo, Redo, Save, and Search for the Bricks command palette.
  • Submenus: flick past the rim to open one, and back the way you came.

It works with the focus in the canvas or in the panels, never opens while you type, and every action lands in Bricks’ undo history like a click on a builder button.

Make it yours

Each user sets up their own wheel in WordPress admin: a Wheel Editor where you click a wedge to pick an action or drag one from a library, submenus, 4, 6 or 8 slots, and a Try mode to test it before saving. The shortcut, sensitivity, wheel size and theme are personal too, and administrators set site defaults for everyone else.

Under the hood

The wheel is one SVG per layout in a Shadow DOM, so it can’t clash with the builder’s styles, and selecting a wedge is a single attribute change. The gesture itself is a small state machine with unit tests, and end-to-end tests drive the real gesture in Bricks and check Bricks’ own element tree, selection and undo history.

Every builder action goes through bricks-builder-api, my open-source library for working with the Bricks builder from code, MIT licensed.

My role

I designed and built all of it: the gesture engine and the wheel, the WordPress plugin with its settings, REST API and Wheel Editor, the Bricks library underneath, and the license server on Cloudflare Workers that checks keys with Creem and delivers plugin updates.

Result

The things you do a hundred times a day in Bricks become one quick move of the mouse. If you’d like a tool like this around your own workflow, get in touch.

Have a similar challenge?

Describe it in a few sentences and I'll suggest how I would approach it.

Start a project