Terminals · Windsurf
Windsurf terminal autocomplete: a zsh popup at the cursor
Last checked 20 November 2026
In short: Windsurf's terminal docs describe writing commands from a prompt in natural language and running its agent's commands, and no completion menu for the commands and options you type. Termhint adds a zsh autocomplete popup at the cursor in Windsurf's integrated terminal on a Mac. It needs the Accessibility permission and one editor setting.
Set up terminal autocomplete in Windsurf
- Download Termhint, move it to Applications and open it. On launch it adds one marked block to
~/.zshrc, backed up first. - Allow Termhint in System Settings → Privacy & Security → Accessibility. Termhint shows macOS's prompt on first launch, and notices the change without a restart (permissions).
- In Windsurf's
settings.json, set"editor.accessibilitySupport": "off", so the editor doesn't switch to screen-reader mode. - Open a new terminal tab. Tabs that were open before Termhint set up zsh don't have it yet.
- Type
git checkout. The popup lists your branches; Tab, the arrows, Esc and Enter go to it only while it is open.
What Windsurf does in its terminal
windsurf.com now leads to Devin Desktop (announcement). Its terminal docs describe a Command mode (Cmd+I) that writes CLI syntax from a prompt in natural language, and agent-run commands under permission rules (Devin Desktop terminal docs); no completion menu for commands and options. Termhint's popup adds that for the lines you type, beside Command mode.
How it finds the cursor in Windsurf
Windsurf is built on VS Code, and its terminal is a web view. Termhint turns on Electron's accessibility tree in Windsurf (the switch meant for this, not the screen-reader one) and reads the cursor from the terminal's hidden text field, which sits on the cursor cell. That is why Accessibility is needed. It reads the terminal text field that has focus; a split terminal hasn't been tried yet.
Termhint knows Windsurf by its app identifier, com.exafunction.windsurf. An editor that ships under another identifier is treated like any app Termhint doesn't know: it tries Accessibility first, then Electron's accessibility tree, then the cursor cell zsh asks for.
What else Termhint sets in Windsurf
- Icons: Windsurf's terminal draws icons only with a font in its own list.
termhint icons on windsurfadds a Nerd Font toterminal.integrated.fontFamily(before a generic family such asmonospace) in~/Library/Application Support/Windsurf/User/settings.json, keeping the rest of the list and your comments;termhint icons off windsurfputs it back. Open a new terminal tab to see it. - Font:
termhint icons font on windsurfputs the Nerd Font you chose first in that list; Windsurf needn't be quit. - Colors, prompt themes and tab titles, set by the shell in the integrated terminal.
- Live values: git branches, ssh hosts, Docker containers and Makefile targets, read by Termhint itself. Bundled completions cover 3,272 commands.
Limits in Windsurf
- The popup needs Accessibility in Windsurf.
- zsh only, Apple silicon, macOS 14 or later. Inside tmux it works, still with Accessibility; not inside GNU screen.
Not working?
- No popup: check Accessibility for Termhint and
editor.accessibilitySupport. - Two popups: turn off the editor's own terminal suggestions if it shows any.
- The panel under Termhint's menu-bar icon shows whether autocomplete is on, the one step left if it is not, and the terminal tabs connected.
- Your shell must be zsh. bash gets prompt themes and colors, no popup.
More fixes: terminal autocomplete not working and troubleshooting. The same setup in other editors: VS Code and Cursor.
FAQ
Does Termhint need Accessibility in Windsurf?
Yes. Termhint turns on Electron's accessibility tree in Windsurf and reads the terminal cursor from it.
Does the popup replace Windsurf's Command mode?
No. Command mode writes a command from a prompt; Termhint's popup completes the command, options and values as you type them. Both can be used.
Does Termhint work in Devin Desktop?
Termhint knows Windsurf by its app identifier, com.exafunction.windsurf. Under another identifier the editor is treated as an app Termhint doesn't know: Accessibility first, then Electron's accessibility tree, then the cursor cell.
How do I get Nerd Font icons in Windsurf's terminal?
Run termhint icons on windsurf. It adds a Nerd Font to terminal.integrated.fontFamily in Windsurf's settings.json, and termhint icons off windsurf puts it back.