No description
  • Lua 60.8%
  • Vim Script 39.2%
Find a file
2026-10-14 09:59:58 -05:00
autoload/mocha fix autoload guard + job callbacks 2026-10-14 09:59:58 -05:00
lua/mocha/source mocha-tmux: initial import 2026-10-14 09:12:10 -05:00
plugin mocha-tmux: initial import 2026-10-14 09:12:10 -05:00
LICENSE mocha-tmux: initial import 2026-10-14 09:12:10 -05:00
README.md mocha-tmux: initial import 2026-10-14 09:12:10 -05:00

mocha-tmux

tmux pane words completion source for mocha, classic Vim 9.1 (+lua, Lua 5.1, +job).

Ports the behavior of the tmux words source: one sh -c pipeline lists all panes (tmux list-panes -a -F '#{pane_active}#{window_active}-#{session_id} #{pane_id}'), drops the current pane when $TMUX_PANE is set, captures each pane (-J probed once), splits into words, greps ^base. and sort -u. Runs as a job; {word} candidates are emitted when it exits. 30s safety timeout.

Contract

  • name tmux-complete, mark [tmux], rank 4, all filetypes
  • complete position: engine default keyword rule

Variables

  • g:tmuxcomplete#list_args ('-a')
  • g:tmuxcomplete#scrollback (0, off; >0 adds -S -N)
  • g:mocha#tmux#exclude_current_pane (1)

License

MIT — see LICENSE.