-
Notifications
You must be signed in to change notification settings - Fork 25
Commands
This is a list of commands defined by the instant.nvim plugin.
This command will initiate a buffer share. Only the current buffer is shared.
Parameters:
- Host: direct IP address or URL
- Port: server port
Possible errors:
- Server is already busy: Try
InstantJoinSingle
- ERRCONNREFUSED: The connection could not be established, verify host and port
Join a server where one client has already issued a InstantStartSingle
.
The current buffer will be overwritten with the shared content.
Parameters:
- Host: direct IP address or URL
- Port: server port
Possible errors:
- Tried to join an empty server: Try
InstantStartSingle
. - ERRCONNREFUSED: The connection could not be established, verify host and port
- Share mode client server mismatch: A session share was initiated, try
InstantJoinSession
.
This command stops the client communication with the server.
Note: It can be used to stop a single buffer share (InstantStartSingle
) or session share (InstantStartSession
).
The command initiates a session share. All opened buffers will be shared with other clients.
Parameters:
- Host: direct IP address or URL
- Port: server port
Possible errors:
- Server is already busy: Try
InstantJoinSession
- ERRCONNREFUSED: The connection could not be established, verify host and port
Note: Special buffers (for ex. terminal) are not shared.
Note: When a file is opened, or a new buffer is created, it will automatically send the content to other clients and will be synced.
This command will join a session share. New buffers are created for the shared content.
Parameters:
- Host: direct IP address or URL
- Port: server port
Possible errors:
- Tried to join an empty server: Try
InstantStartSession
. - ERRCONNREFUSED: The connection could not be established, verify host and port
- Share mode client server mismatch: A single buffer share was initiated, try
InstantJoinSingle
.
This command shows the current connection status.
This command will enable follow on a user.
Parameters:
- username
This command will disable any follow.
This command will open all the files located in the current directory. It is useful for sharing the whole directory in session share.
This command will save all opened buffers. Use InstantSaveAll!
to overwrite existing files.
Start a server in the Neovim client. The server can be joined from the same client.
Parameters:
- Host: direct IP address or URL
- Port: server port
Possible errors:
- ERRADDRINUSE: The port is already used by a different process. Make sure the port is free and restart.
The command kills the server as well as any connections still active.
The command visually mark the region selected in visual mode. It sends the marked region to other connected clients.
In follow mode, this will bring any following users to the marked region.
InstantMark
should be invoked in visual mode, but should not pass the range.
The command clears any marked region. It does not affect the marked regions in other clients.