2026-04-29
2026-04-29 ~ 2026-04-29
The note is generated by Opus-4.7
Problem
When using the vscode-neovim extension, the VSCode Output panel automatically reveals and steals focus from the terminal whenever Neovim logs appear.
Root Cause
In src/messages_manager.ts, the extension calls this.channel.show(true) (which reveals and focuses the Output panel) whenever the number of lines in a Neovim message exceeds cmdheight:
| |
cmdheight=0(default whenext_messagesis enabled): every message exceeds 0 lines → Output panel steals focus on every logcmdheight=1: only messages with more than 1 line trigger the Output panelcmdheight=N: only messages exceeding N lines trigger it
Fix
Set cmdheight=1 in the VSCode-specific Neovim config (~/.config/nvim/lua/plugins/vscode.lua):
2025-10-23
2025-10-23 ~ 2025-10-23
The note is generated by ChatGPT.
This note explains how to:
- Synchronize text copied in a remote Neovim session with your local clipboard via tmux.
- Implement a
cpwdcommand to copy the current working directory of your shell to the local clipboard. - Understand the underlying principle of how tmux buffers bridge remote Neovim and local clipboard.
1. Prerequisites
- tmux 3.3a+ (supports
load-buffer -w) - Neovim installed on the remote server
2. Principle: How tmux Buffers Bridge Remote and Local Clipboard
tmux Buffers as an Intermediate Clipboard