Better support for terminal editors (nvim, helix): avoid `stdio: 'inherit'`, reuse running instances
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 50/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, neovim
- Área
- cli, developer-experience
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 726
- Forks
- 102
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vitejs/launch-editor
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
vitejs/launch-editor#176 ·
-
Dependency DashboardAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
vitejs/launch-editor#121 ·
-
Google Antigravity无法使用Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
vitejs/launch-editor#115 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
vitejs/launch-editor#107 ·
-
Zed editor binary can also be called `zeditor` on some linux distros since `zed` is already takenPosiblemente ocupada @0froq la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
vitejs/launch-editor#103 · 6 reacciones ·
Todos los issues de vitejs/launch-editor
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
web-platform-tests/wpt#65844 ·
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Kanevry/session-orchestrator#108 ·
-
PHP 8.6: "Returning a value from a constructor is deprecated" in app/Common/Models/Model.phpAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
andromarces/agent-loops#2055 ·
Los mantenedores suelen responder en 1 día