Repository navigation
Open a project in a terminal editor ($VISUAL / $EDITOR, e.g. Neovim) #23397
Closed
AdemBenAbdallah
started this conversation in
Ideas
Replies: 1 comment
|
Closing as a duplicate of #19113, which tracks the same request. Please follow along there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Follow-up to #20911 (closed so it could move here) and #1425. @juliusmarminge suggested tracking that issue's "nvim inside a terminal emulator" part on its own.
Problem
The Open menu can launch Zed, VS Code, the JetBrains IDEs and Antigravity, but not terminal editors. Neovim, Helix, Vim and similar editors have no window of their own, so they need a terminal emulator to run in. Today the only way is a custom keybinding that hard-codes a terminal.
Proposal
Add one built-in "Terminal editor" entry to the Open menu. When it's selected, the server:
$VISUAL, falling back to$EDITOR, with the target file and line.xdg-terminal-execon Linux (the user's configured terminal), otherwise Ghostty, kitty, Alacritty, WezTerm, foot, Konsole, GNOME Terminal, Tilix or xterm; Windows Terminal on Windows; Terminal.app viaosascripton macOS.The entry only appears when both an editor and a terminal are found, so it never leads nowhere. There's no new settings UI because it uses the environment variables people already set.
Scope
One more built-in entry in the existing list. It isn't the configurable open-with list from #433, and it doesn't conflict with it.
Status
I have a working branch (server launcher, contracts entry, picker icon, with tests). I can open a PR if maintainers want this.
All reactions