pi-tmux-cursor-focus
v0.2.0
Published
Pi extension that hides the editor cursor in unfocused tmux panes without replacing other editor/status extensions
Maintainers
Readme
pi-tmux-cursor-focus
A Pi extension that hides the editor cursor in unfocused tmux panes.
It wraps the active Pi editor instead of replacing it, so it works alongside other prompt/status-bar extensions.
Focused
Unfocused
Also using the pi-glance extension
What it does
- Detects the current
TMUX_PANE. - Installs tmux focus hooks for that pane.
- Hides Pi's fake editor cursor when the pane loses focus.
- Restores the cursor when focus returns.
- Keeps any existing editor wrapper instead of replacing it.
Installation
pi install npm:pi-tmux-cursor-focusOr test without installing
pi -e npm:pi-tmux-cursor-focustmux setup
Enable tmux focus events:
set -g focus-events onReload tmux after changing the config:
tmux source-file ~/.tmux.confLicense
MIT


