Better support for terminal editors (nvim, helix): avoid `stdio: 'inherit'`, reuse running instances
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 50/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, neovim
- Ambito
- cli, developer-experience
Direzione di ricerca
Start in get-args.js, where the vim-style line and column arguments are mapped, and in the isTerminalEditor list, which decides whether an editor gets its own terminal; the issue also mentions the stdio: 'inherit' spawn path and the editor lists. Confirm with a maintainer before changing spawn behaviour, since the proposal is not yet accepted. Done means nvim and hx get the correct file:line:col arguments and are recognised as terminal editors, with the README section on LAUNCH_EDITOR recipes added.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Clicking "open in editor" from Vite / Vue DevTools / Nuxt DevTools doesn't really work with terminal editors today:
- TUI editors are spawned with
stdio: 'inherit', so they share the dev server's terminal (often busy or in another window) instead of getting their own. nvimandhxaren't recognized: no line/column args inget-args.js, and they're missing fromisTerminalEditor, so each click spawns another instance.
LAUNCH_EDITOR (#39 / #49) is a good escape hatch, and I understand built-in TUI handling may be out of scope. I'd like to propose, and am happy to implement:
- Small code change: add
nvim(same args as vim) andhx(file:line:col) to the arg mappings,isTerminalEditor, and the editor lists. - A README section on terminal editors, documenting
LAUNCH_EDITORrecipes in three layers:- open a new window of the default terminal;
- open a tab or split in the terminal the dev server runs in (kitty / wezterm / ghostty remote control);
- open in a tmux or zellij pane.
- For reuse: if this project already has an
nvimrunning, open the file as a buffer vianvim --server <socket> --remoteinstead of starting a new process. Helix has no remote-open API yet (helix-editor/helix#312), so for now it relies on the multiplexer approach.
Would you accept a PR for the mappings plus docs? If you'd rather keep any of this out of the core library, docs only works for me too.
- Lingua principale
- JavaScript
- Stelle
- 726
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vitejs/launch-editor
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
vitejs/launch-editor#176 ·
-
Dependency DashboardAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
vitejs/launch-editor#121 ·
-
Google Antigravity无法使用Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
vitejs/launch-editor#115 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
vitejs/launch-editor#107 ·
-
Zed editor binary can also be called `zeditor` on some linux distros since `zed` is already takenForse già presa @0froq l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
vitejs/launch-editor#103 · 6 reazioni ·
Tutte le issue di vitejs/launch-editor
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
web-platform-tests/wpt#65844 ·
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Kanevry/session-orchestrator#108 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
andromarces/agent-loops#2055 ·
I maintainer di solito rispondono entro 1 giorno