Skip to content

Keep Explorer focus when previewing CSV files - #135

Open
ashtonckj wants to merge 1 commit into
jonaraphael:mainfrom
ashtonckj:fix/explorer-f2-focus
Open

ashtonckj wants to merge 1 commit into
jonaraphael:mainfrom
ashtonckj:fix/explorer-f2-focus

Conversation

@ashtonckj

@ashtonckj ashtonckj commented Nov 19, 2026 •

Copy link
Copy Markdown

Hi! Thanks for this great extension. I moved over from Rainbow CSV and I love it~

Problem: Single-clicking a CSV/TSV in the Explorer opens the table preview, but the table takes keyboard focus, so F2 (rename) and Del (delete) no longer works in the Explorer.

Fix: The webview now moves focus into the table only after VS Code has focused it. Clicking in or switching to the tab still lands on the selected cell.

Testing:

  • Added src/test/webview-focus-ownership.test.ts (CSV + TSV); it fails without the fix
  • Compile, lint and the full test suite pass
  • Checked manually: single-click a file in the Explorer, then F2 renames it

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant