Gesture reference
Look up gestures by action and application. Each complete gesture has an independent command. Most commands use right-button release +r; plain-text paste uses the +rl release combination.
Selection, search and editing
| Gesture | Action | Command |
|---|---|---|
| ↑ | Copy selection | last_u+r |
| ↑ ← | Copy, then search Google | last_ul+r |
| ↑ ← ↑ | Copy, then search Bing | last_ulu+r |
| ↑ → | New document / window | last_ur+r |
| ↓ ← ↓ with release combination +rl | Paste plain text | last_dld+rl |
| ↙ | Paste | last_c+r |
| ← | Previous word | last_l+r |
| → | Next word | last_r+r |
| ↖ | Backspace | last_a+r |
| ↗ | Enter | last_b+r |
Copy, Google search and Bing search each implement their own copy step. ↑ → independently creates a document or window. Commands that need a copy wait for fresh clipboard text and stop if copying fails. Web search opens the system default browser and sends the copied text to the chosen search provider.
Windows and browser tabs
| Gesture | Scope | Action | Command |
|---|---|---|---|
| ↘ | General | Close window | last_e+r |
| ↘ | Browser | Close current tab | wb_e+r |
| ↘ ↖ | Browser | Reopen closed tab | wb_ea+r |
| ↑ → | Browser | New tab | wb_ur+r |
| Wheel up | Browser | Previous tab | wb_wu+r |
| Wheel down | Browser | Next tab | wb_wd+r |
Hold the configured trigger button while scrolling. The wb4 browser group uses the wb_ command prefix. In that scope, browser commands take precedence over general last_ commands.
Use the command file
The complete distribution is not yet released. If you already have a matching runtime directory, use default_gestures.toml from this folder.
- Back up your
srcandconfdirectories. - Copy the command file into the runtime's
src/defaultdirectory. Check and merge commands with the same name to avoid duplicate definitions. - Confirm the browser group and gesture samples are configured, then restart Diatom.
- Try each action in Notepad and a browser, and check that the logged command name matches the table.
To customize an action, keep its command name and edit the corresponding code body. The target application decides whether closing a window prompts you to save.