Termhint Get Termhint

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

  1. Download Termhint, move it to Applications and open it. On launch it adds one marked block to ~/.zshrc, backed up first.
  2. Allow Termhint in System Settings → Privacy & Security → Accessibility. Termhint shows macOS's prompt on first launch, and notices the change without a restart (permissions).
  3. In Windsurf's settings.json, set "editor.accessibilitySupport": "off", so the editor doesn't switch to screen-reader mode.
  4. Open a new terminal tab. Tabs that were open before Termhint set up zsh don't have it yet.
  5. 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

Limits in Windsurf

Not working?

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.

Download for Mac All supported terminals