-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic --headless, nvim_ui_builtin() #7438
Comments
What's the use case? We should at least provide a way to connect the TUI to another nvim instance. |
My use case at least would be to simplify the implementation of https://github.com/lucc/nvimpager. I have something like the "my_condition" stuff above but the shell version is much more complicated and inacurate than what I assume the vimscript version would be. Currently I have kind of this control flow in the shell script:
With a
About your additional remark:
Do you mean one could start a headless nvim in the background (maybe even a systemd unit) and then connect a TUI to it from any xterm window? That sounds like a very nice use case similar to |
Yes. (Update: Proposed as a GSoC project) |
The original request here is addressed by #8246. |
I would like to request a vimscript function or api function that should negate the effect of the
--headless
command line switch. Lets call itnvim_launch_builtin_tui()
for now. I imagine something like this:and then one would do
nvim --headless -S above-file.vim
. Depending on the user functionMy_condition
one would effectively end up in a "normal" TUI nvim instance or in a headless nvim.If I can express the logic of the
My_condition()
vimscript function in themy_condition
shell command/function I can currently do something similar with this shell script:The text was updated successfully, but these errors were encountered: