Skip to content
jonaprietoPublic

About

Keyboard-first tiling window manager for macOS that never hides a window. A letter on every window, a ⌘Space picker for windows, tabs, apps and files, and a ⌘Tab that shows windows.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

tesela: keyboard-first tiling for macOS that never hides a window

ci

tesela keeps your Mac's windows in order. Every window gets its own place on the screen, and any of them is one keypress away. Open an app and it finds a spot, close one and the others fill the gap. There are no virtual workspaces, so a crash, a hang or an unplugged screen cannot strand a window off-screen.

Why tesela

  • Windows arrange themselves. A new one takes a place, its neighbors make room, and an app that needs a minimum size gets it.
  • One key reaches any window. ⌥T puts a letter on every window and browser tab; press the letter and you are there.
  • ⌘Space finds anything: windows on every Space, browser tabs, apps, files, bookmarks, books and papers. It also does arithmetic and runs commands and Shortcuts.
  • You choose where things open. Pick a window or app and a map of your screens lets you put it exactly where you want, in one key.
  • ⌘Tab shows windows, not just apps, as cards with their screen, memory use and how long they have been open.
  • ⌥F clicks without the mouse: everything clickable in the front window gets a label.
  • Zen gives you 25 minutes on one window with the other screens dark, then a real 5 minute break.
  • Every layout change can be undone, the mouse works too, and any Mac keyboard will do, the laptop's included.
  • It speaks English and Spanish, follows your light or dark theme, and uses next to no CPU at rest.

Get started

You need macOS 27 on Apple Silicon.

brew tap jonaprieto/tap
brew trust --formula jonaprieto/tap/tesela jonaprieto/tap/folio
brew install jonaprieto/tap/tesela
brew services start tesela   # now and at login

macOS asks once for Accessibility. tesela doctor checks the setup.

These keys are enough for your first day:

Key What it does
⌘Space or ⌥Space Open the picker
⌥T Letters on every window; press one to go there
⌥H ⌥J ⌥K ⌥L Focus the window left, down, up or right
⌥⇧H ⌥⇧J ⌥⇧K ⌥⇧L Swap the window with the one that way
⌘⇧= and ⌘⇧- Make it bigger or smaller
⌥⇧0 Make everything even
⌥Return Fullscreen, without leaving your Space
⌥F Click by label
⌥⇧C Close the window
⌥⇧Z Zen on or off
⌥⇧W Keep the Mac awake, or let it sleep

If Spotlight owns ⌘Space, turn its shortcut off in System Settings → Keyboard → Keyboard Shortcuts → Spotlight, or use ⌥Space. While a mode is on, its keys show on screen, so there is nothing to memorize.

Open it from Finder, build from source, or uninstall

To open tesela from Finder or Spotlight, copy the app. It opens Settings, or starts tesela again after Quit.

cp -R "$(brew --prefix tesela)/tesela.app" /Applications/

From source:

make install   # build, sign, start at login and after a crash; links ~/.local/bin/tesela, adds tesela.app
make test
make hooks     # before each commit: formatted, and no compiler warnings (needs pre-commit)
make format    # what the first of those checks

make install also installs Folio through Homebrew if it is missing.

To remove it: brew services stop tesela && brew uninstall tesela, or make uninstall.

Something not working? Run tesela doctor

tesela doctor, or Doctor… in the menu bar, checks macOS, Accessibility, your configuration, the terminal app, and every binary each feature uses in the service's PATH, with how to install what is missing. It changes no settings, and missing required checks return exit code 1. Rerun it after granting Accessibility.

Homebrew installs Folio for book and paper search and fd for file search. brew install ripgrep fzf adds search inside files and better file ranking.

Jump to any window

Jump mode: a letter on every window, a number on every screen

⌥T is tesela mode. Every window and tab in sight wears a letter, every screen its number, and the letter takes you there. shift and a letter swaps that window with yours, a digit goes to that screen, and shift and a digit sends your window there. It lasts one command; press ⌥T twice to keep it on until esc, with every action on a plain key: h, shift-h, f for fullscreen, u to undo, z for Zen, t for a terminal, x to close a window and pick what fills its place.

Not sure where to go? Hold ⌥ on its own for 3 seconds and the letters appear. Press one with ⌥ still down to go there, or let go to carry on as you were.

Find anything

The picker: find a window, tab or app, then choose where it goes on a map of your screens

Type a few letters, in any order: report budget finds "Budget report - Numbers". Enter on a window, tab or app shows a map of your screens. Three letters also bring up files and folders, below the rest: fd walks your home folder and Spotlight covers the Mac.

  • A letter puts it in that window's place. A new window shares the place, so the rest of your layout stays as it was; one already tiled swaps with it.
  • ⌥ and a letter puts it beside that window, Enter next to the focused one, and a digit on that screen. g just goes there, and f floats it.

The first word can also be a verb:

  • cd ~/folder, code ~/folder: open the folder in iTerm or VS Code, with tab completion.
  • f name: files by name. rg text: text inside files.
  • web text: browser tabs, bookmarks and history. An address opens directly.
  • book title author, paper title author: find with Folio, download to ~/Downloads and open.
  • slack name: jump to that channel or person.
  • chat text, claude text: start a ChatGPT or Claude chat with that text.
  • brew install fzf: run it in your terminal.

It also computes 2 * (3 + 4), lists your Shortcuts, offers Sleep, Lock Screen, Log Out, Restart and Shut Down, and runs any tesela command on the window you had focused. It remembers your last 100 queries on this Mac; Tab brings them back.

Picker details: warnings, Do Not Disturb, plain-language search and custom verbs

Amber keys and "may not fit" warnings mark destinations that would squeeze a window below a size it kept after refusing a resize. The choice stays available, and unknown size limits are not predicted.

Bookmarks and browser history only show after web, so they never crowd out a window or an app. A matching recent query appears below the results as you type. Tab fills it in, or recalls the latest query in an empty field; folder completion takes priority, and Escape saves nothing.

Focus has no API, so Do Not Disturb comes from a shortcut: one made in the Shortcuts app with its Set Focus action, named "Do Not Disturb", is then do not away in the picker.

With "jev": true the picker also asks TypeSafe's Jev what the text means, after a short pause in typing, so plain words (the standup call, send this to the other screen) and typos find their window, tab, app or command. It sends the typed text, the focused window and the titles of windows, tabs, apps and commands to TypeSafe's API, never browser history, with TYPESAFE_API_KEY from the environment or the login shell. Off by default.

Verbs are config, merged key by key. A value is an app (cd), a link with %s (chat), one of tesela's searches (search:files, search:text, search:books, search:papers, search:history), keys:App:shortcut (slack), which brings the app forward, presses the shortcut and types the text, or run: and a command with %s (brew), run in the terminal app.

{"verbs": {"f": null, "find": "search:files", "g": "https://www.google.com/search?q=%s",
           "vs": "keys:Visual Studio Code:cmd-p", "sh": "run:%s"}}

That renames the file search, adds a Google verb, opens a file in VS Code by name, and runs whatever is typed. web also has brave, and f also has file. Books and papers use Folio, with arXiv first for papers.

Switch with ⌘Tab

⌘Tab shows a card for every window, and for each running app with none, with its screen, memory use and how long it has been open. Tab steps through them, a card's letter goes straight there, and the window you are about to land on is outlined on screen, even when it sits behind others. With a ribbon on, a map of it sits above the cards: where the screen is along it, what is out of view, and that window lit.

Focus with Zen

Zen: the focused window fills its screen and the others go dark, with a pomodoro timer

Zen (⌥⇧Z, z in tesela mode, tesela zen, or the menu) is a pomodoro that means it. For 25 minutes the focused window fills its screen and the others go dark, with a countdown in the menu bar. Then comes a 5 minute break: every screen goes black with the time left, and no key or click gets through until it is over. break starts one now, and the menu counts the breaks you took today.

Arrange with the menu or the mouse

Click the menu bar item for pictures of your screen as halves, columns, rows, a grid or fullscreen; click one to arrange it. History holds your last ten layout changes: click one to undo it and everything after it, or an undone one to redo up to it.

Drag a tiled window and where it will land shows in orange. Drop it on another window's left or right edge to split beside it, on its top or bottom edge to stack with it, or on its middle to swap the two. Drag a tiled window's edge to resize it: the window next to that edge gives or takes the room, and undo puts it back.

⌥⇧A brings every app back: each running app with no window in sight gets one, and every screen is laid out with them.

⌥⇧W, or Keep Awake in the menu, stops your Mac sleeping and shows a yellow dot in the menu bar until you turn it off, and the picker reaches volume, Wi-Fi and a speed test.

All default keys

alt is ⌥ Option. tesela default-config prints every binding, and keys for screens that are not attached stay with your apps.

Focus and move:

  • alt-h/j/k/l focus, alt-n/p the next or previous window (every screen, then the floating ones).
  • alt-shift-h/j/k/l swap the window with the one that way, on this screen or the next, so the tiling keeps its shape. To change the tiling itself, drag a window, use the picker, or alt-slash.
  • alt-1/2/3 go to a screen, alt-shift-1/2/3 send the window there, alt-tab and alt-shift-tab the next or previous screen.
  • alt-shift-backspace sends every window on this screen to the next one.

Layout:

  • alt-enter fullscreen within tesela, alt-slash columns or rows, alt-shift-slash accordion.
  • alt-shift-minus/equal (or cmd-shift-minus/equal) smaller or bigger: wider in columns and taller in rows, or the other way for windows stacked in the only column.
  • alt-shift-0 balance, alt-shift-space float, alt-r resize mode (h/l width, j/k height), alt-shift-semicolon re-tile from where the windows are now.

Everything else:

  • alt-t tesela mode, alt-space and cmd-space the picker, alt-f click mode.
  • alt-shift-a show all apps, alt-shift-c close the window, alt-shift-r reload the config.
  • alt-shift-z Zen, alt-shift-w keep the Mac awake or let it sleep.
  • cmd-h and cmd-alt-h do nothing, so no window gets hidden by accident.

In tesela mode, on top of the same actions without a modifier: t a terminal window, x close the window and pick what fills its place, w bring back lost windows, s re-tile, r resize mode, b balance, f fullscreen, a accordion, v columns or rows, space float, u and shift-u undo and redo, z Zen, g ribbon.

A keyboard with programmable keys can also send Hyper (⌃⌥⇧⌘) and bind it. This is optional:

{"modes": {"main": {"cmd-alt-ctrl-shift-t": "mode tesela", "cmd-alt-ctrl-shift-g": "pick", "cmd-alt-ctrl-shift-r": "jump"},
           "tesela": {"cmd-alt-ctrl-shift-t": "mode tesela", "cmd-alt-ctrl-shift-g": "pick"}}}
How windows, fullscreen and jump mode behave

Each screen is a row of columns, each column a stack or an accordion.

Fullscreen within tesela fills the screen edge to edge in front of its other windows until alt-enter again, or another window there takes focus or opens, and it survives a restart. A floating window joins the tiling to go fullscreen, and moving or resizing one says it floats. macOS fullscreen (the green button, or a video's or call's own fullscreen) becomes fullscreen within tesela, so the window never leaves for a Space of its own.

Jump mode (tesela jump, or a key bound to jump) is tesela mode's letters without its other keys. What is hidden behind another window gets no letter. Letters are the ones tesela mode leaves free (d q e y i o c m by default), windows first, and a window keeps its letter while it lives.

Outside jump mode the focused window keeps a thin border and, with more than one screen, the active screen a faint outline. The border steps aside while its window moves, and both hide during Mission Control.

Every window but the focused one shows in black and white at 80%, so the eye goes to the one in use. It is off while another app or Zen is in front.

Minimum sizes are learned the first time an app refuses a size, then applied before anything moves, so a window lands once. A resize stops there, and the others keep the space tiled.

Keep every window its width with a ribbon

Past three or four columns a screen runs out of room. A ribbon stops squeezing them: each column keeps its width and the screen scrolls along them, the way a paper strip passes under a window. Columns out of view wait along the bottom of the screen with their title bars showing. Go to one with the keyboard, its letter, ⌘Tab or a click, and the ribbon slides to it.

g in tesela mode, tesela ribbon or Ribbon in the menu turns it on or off for the screen in use, each screen keeping its own. "ribbon": true starts every screen that way. Off again, the columns share the screen as before.

How a ribbon behaves

A new column takes half the screen, so two fill it. ⌥⇧= and ⌥⇧- change only the column in use and ⌥⇧0 takes the screen's columns back to half. A window takes its width along when it swaps, and an app's minimum widens its own column and no other.

Columns of different widths seldom fill a screen exactly: one cut by the screen's edge stays out when nothing lies past that edge. Next to another screen it waits on the strip instead, so nothing lands on that screen.

The strip keeps 52 points of the screen even when nothing waits on it, so windows are not resized each time one comes or goes. macOS keeps a window's title bar on screen, which is why that is its depth, and why windows waiting there are never lost: quit tesela and they are still there to pick up. With a screen below, the strip moves to a free side, 20 points wide.

Windows on the strip overlap once there are more than two, and macOS decides which is in front, but each keeps its letter in tesela mode. They move without being resized, which spares apps from laying out again. With Reduce Motion on in macOS the ribbon goes straight there instead of sliding.

The picker's map shows all the columns side by side. After a restart with "ribbon": true the columns in view come first and those on the strip follow them.

Stay up to date

Once a day tesela asks GitHub for its latest version. When there is a newer one you get a toast and a blue dot in the menu bar, and Update in the menu installs it. tesela update does the same at any time. With Homebrew that is one click: brew upgrade runs and tesela restarts on the new version, which also ends Keep Awake and Zen. A build from source opens the release instead, since git pull && make install is yours to run.

What changed in each version is in the releases.

Make it yours

Settings in the menu bar, or tesela settings, edits gaps, colors, labels, language, picker verbs, app lists and keys. It saves only what differs from the defaults to ~/.config/tesela/config.json, so a config holds just what you change:

{"gaps": {"inner": 6}, "terminal": "Ghostty", "language": "es",
 "modes": {"main": {"alt-s": "exec open -a Slack", "cmd-h": null}}}
Config reference

The config layers on top of the built-in one: lists replace, bindings and verbs merge per key, and null removes a default.

  • float lists apps that never tile, tile apps that always do, and ignore apps tesela leaves alone.
  • terminal is the app t in tesela mode opens. "one_shot": [] keeps tesela mode on until esc.
  • file_manager is the app the picker reveals files in (cmd-enter) and opens folders with: "Finder" by default, or any app that takes a path, like "Strata".
  • history lists the browsers whose bookmarks and history the picker reads, first one first (["com.brave.Browser", "com.apple.Safari"] by default). The first wins ties, a page both have shows once from it, and a browser left out is not read.
  • "empty_screens": false stops new windows going to an empty screen, and Settings and a mode's keys to the screen with the fewest windows.
  • "ribbon": true starts every screen as a ribbon.
  • "update_check": false stops the daily question to GitHub. tesela update still works.
  • "language": "es" or "en". Left out, tesela follows macOS: the first of its languages it speaks, else English. Commands, config keys, tesela --help, tesela tree and the logs stay in English.
  • "jev": true turns on plain-language search in the picker.

Under overlay:

  • "window_labels": "jump" by default, "always" keeps every label on screen, "off" shows none.
  • "border_color", "inactive_border_color" and "selection_color": #rrggbb values for focused borders and highlights, inactive borders, and selection and drag outlines. The accent color is the default, and a color that would not read in the current theme is adjusted for text and thin lines.
  • "gray_others": false turns off the black and white, and "gray_amount" sets its strength from 0 to 1 (0.8 by default).
  • "all_screens": false shows a mode's keys only on the screen in use, once empty_screens is off.
Get macOS behavior back

tesela takes over a few things macOS does. In ~/.config/tesela/config.json, null gives a key back; run tesela reload after editing.

Hide apps with ⌘H and ⌘⌥H. tesela turns these off so no window leaves the layout by accident:

{"modes": {"main": {"cmd-h": null, "cmd-alt-h": null}}}

tesela has no key to hide a single window. ⌘M minimizes it as usual, ⌥⇧Space floats it and ⌥⇧C closes it.

Spotlight on ⌘Space. Remove the key in every mode, then turn its shortcut back on in System Settings. The picker stays on ⌥Space:

{"modes": {"main": {"cmd-space": null}, "tesela": {"cmd-space": null}, "resize": {"cmd-space": null}}}

Type with ⌥. ⌥N starts an ñ on many layouts, and tesela uses it for the next window. The same works for any key an app or your typing needs, such as alt-tab:

{"modes": {"main": {"alt-n": null}}}

Zoom in apps with ⌘+, which is ⌘⇧=. Resizing stays on ⌥⇧= and ⌥⇧-:

{"modes": {"main": {"cmd-shift-equal": null, "cmd-shift-minus": null}}}

Let an app be. float keeps its windows out of the tiling, and ignore hands the app back to macOS entirely, its own fullscreen included. Both lists replace the defaults, so keep what you still want; tesela default-config prints them:

{"ignore": ["com.example.app"]}

Everything for a while. Pause Tiling in the menu, or tesela pause, stops tiling and releases every key, the only way to get macOS's own ⌘Tab back. Resume the same way.

Command line

tesela <command> runs any command a key can, for example tesela focus left or tesela move-to-screen 2, and typed in the picker they work too. Also:

  • tesela tree: screens, columns and windows, and what is not tiled.
  • tesela state: the model and the machine as JSON.
  • tesela halves, columns, rows, grid: arrange this screen.
  • tesela rescue: bring back windows that are mostly off-screen.
  • tesela pause: stop tiling until run again (also in the menu).
  • tesela undo, tesela redo: the last layout change.
  • tesela volume 30 (or +10, -10, mute, unmute).
  • tesela wifi (on, off, or the other way round).
  • tesela caffeine: keep the Mac awake until run again, lid closed included (low battery and heat still sleep it). caffeine 60 for an hour, caffeine off.
  • tesela speedtest: download and upload speed and latency, with macOS's own networkQuality, in about 20 seconds.
  • tesela zen: Zen on or off. tesela break: Zen's break now.
  • tesela ribbon: the screen in use becomes a ribbon, or stops being one.
  • tesela update: install the latest version.
  • tesela doctor, tesela settings.
  • tesela reload, tesela default-config, tesela --version.
Permissions, logs and privacy

Accessibility is asked at first start. Automation for Brave and Safari is asked the first time the picker reads tabs. Browser history also needs Full Disk Access (System Settings, Privacy & Security) for the tesela binary: $(brew --prefix)/opt/tesela/bin/tesela from Homebrew, or ~/tesela/build/tesela from source. Without it the picker still lists tabs and Brave bookmarks. Log Out, Restart and Shut Down may ask once for Automation of loginwindow.

Logs stay on this Mac, and picker queries are not recorded. Asking GitHub for the latest version sends nothing but the request ("update_check": false turns it off).

  • ~/Library/Logs/tesela/events.jsonl: one JSON object per line for everything that changes: apps and windows opening and closing, focus, every command and where it came from, the layout after it, screens, Spaces, modes, picks and config reloads. A snapshot of the model and the machine is written at start, on screen changes and every ten minutes. Rotated at 20 MB.
  • ~/Library/Logs/tesela.log: short human-readable notes.
Good to know
  • macOS Spaces other than native fullscreen are not modeled.
  • macOS shows a new window where its app puts it before tesela can move it, for a blink.
  • An app's minimum size is learned once per run of tesela, so that first placement moves twice.
  • Windows can overlap when the minimum sizes on a screen do not all fit.

About

Keyboard-first tiling window manager for macOS that never hides a window. A letter on every window, a ⌘Space picker for windows, tabs, apps and files, and a ⌘Tab that shows windows.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages