-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
docs: --remote alternatives #18414
base: master
Are you sure you want to change the base?
docs: --remote alternatives #18414
Conversation
Hi. I have checked the PR. |
Here's my immediate reactions on reading this:
|
It was in the original PR I based my PR on and it matches the Vim behavior. I'm not positive of the purpose, but my guess is that it's just there to make the implementation simpler. That could likely be cleaned up if local and server command line parsing were unified as part of this proposal. |
Yes. We can document what's currently supported and reject everything else, then improve incrementally. |
WIP: sketching out how Nvim
--remote
should work.Key ideas:
--remote-x-y
variants from Vim should not be mindlessly copied. Most use of--remote
is for small one-liner shortcuts. Any non-trivial use of Vim's--remote
is not going to work with Nvim because we don't and won't have exactly the same interface. So we can instead just make a better interface.--remote
variant we will support is...--remote
. Not the other stuff.-p
,-es
, etc., should "just work". For example,-p --remote
should work, then--remote-tab
isn't needed.-es "+echo 1+1" --remote
should work, then--remote-expr
isn't needed.echo <keys> | nvim -s - --remote
should work, then--remote-send
isn't needed."+call nvim_input('<keys>')"
Another note about the current behavior:
What is the purpose of that? We already have
--
(:help ---
) for declaring "all args hereafter are filenames".close #18531
close #18519