Commit Graph

138 Commits (master)

Author SHA1 Message Date
daniprado d55402724a
Fix $NVR_CMD (#179)
Fixes https://github.com/mhinz/neovim-remote/issues/178
2 years ago
ashfinal 4e77261f8b Use tcp address on Windows 2 years ago
ashfinal 9248643e6f Fix bad def naming 2 years ago
Marco Hinz 41e7016e5c
Prefer --listen over obsolete $NVIM_LISTEN_ADDRESS
Current nvim master is still reading $NVIM_LISTEN_ADDRESS, but it is considered
obsolete and could be removed soon in favor of --listen.
2 years ago
FallenWarrior2k fe3eeeea70
Fix `-d` not diffing the first file (#138)
Fixes https://github.com/mhinz/neovim-remote/issues/137
2 years ago
Marco Hinz 3130be19a9
Bail out if Unix socket already exists
References https://github.com/mhinz/neovim-remote/pull/159
2 years ago
Gabriel Sanches 1aa1651c33
Prevent whitespace trimming for stdin input (#168)
Let's only remove null terminators, not whitespaces.
2 years ago
Marco Hinz c1f1d10d37
Win: does not support Unix domain sockets
Fixes https://github.com/mhinz/neovim-remote/issues/144
2 years ago
Marco Hinz 03ad512710
Avoid str.format() if possible 2 years ago
Marco Hinz 842a22a479
Doc: $NVIM_LISTEN_ADDRESS is obsolete in nvim
The server should be started with `nvim --listen /tmp/nvimsocket` or just `nvr`.

When used as client, nvr still supports $NVIM_LISTEN_ADDRESS for backward
compatibility.
2 years ago
Marco Hinz 39e380dec9
Support $NVIM
Latest Neovim from the repo does a few changes to how $NVIM_LISTEN_ADDRESS is
handled. You can still use it to set a servername, but it's not passed on to
children of the process. That also affects the use of :terminal, which will now
have a $NVIM set instead. $NVIM points to the server exactly like
$NVIM_LISTEN_ADDRESS did.

So all that changes, is that we now also check for $NVIM before
$NVIM_LISTEN_ADDRESS.

References https://github.com/neovim/neovim/pull/11009
2 years ago
Marco Hinz 1ec7c6c76a
Use multiprocessing instead of os.fork() 4 years ago
Marco Hinz 5ce398da07
Change back to requiring 'pynvim' instead of 'neovim'
Fixes https://github.com/mhinz/neovim-remote/issues/131
5 years ago
Marco Hinz 8cb46bdc23
Import 'neovim' instead of 'pynvim'
This was forgotten in 684ad23
5 years ago
Marco Hinz 50945c9677
Make --version output more verbose
This helps with reporting issues.
5 years ago
Marco Hinz 7b9c4b2b8a
Print "access denied" errors in --serverlist to stderr 5 years ago
Marco Hinz e7e001a03a
Rename sockaddrs -> addresses 5 years ago
IceCreamWW df703221ab Avoid exceptions for processes without a name (#127)
Fixes https://github.com/mhinz/neovim-remote/issues/126
5 years ago
Marco Hinz c6041ea94d
Make --serverlist show IPv6 addresses 5 years ago
Marco Hinz 4ba61af62a
Fix parsing IPv6 addresses
Fixes https://github.com/mhinz/neovim-remote/issues/125
5 years ago
Marco Hinz bacc0cf594
Use pkg_resources to show current version 5 years ago
Marco Hinz 01c17963ca
Bump to v2.2.3 5 years ago
Marco Hinz d3f7d5d7c3
-d: avoid empty window if nvim is already running 5 years ago
Marco Hinz e1626a8ba0
-d: don't open each filename twice
Fixes https://github.com/mhinz/neovim-remote/issues/123
5 years ago
Marco Hinz 8985d10da5
Force result of --remote-expr to be str 5 years ago
Marco Hinz 13612ca350
Compat: result of --remote-expr always ends with newline
References https://github.com/mhinz/neovim-remote/pull/121
5 years ago
Marco Hinz 98f7f48e04
Bump to v2.2.2 5 years ago
FractalWire f7381ec402 Dealing with AccessDenied exception on process connections (#119) 5 years ago
Marco Hinz 955d9564f5
Bump to 2.2.1 5 years ago
Adam Ibrahim 7c7b86ff2c Take off leading '+' from command (#117)
Fixes https://github.com/mhinz/neovim-remote/issues/115
Fixes https://github.com/mhinz/neovim-remote/issues/116
5 years ago
Marco Hinz c9b52e5b3a
Bump to 2.2.0 5 years ago
Marco Hinz 355243eebb
Revamp argument parsing 5 years ago
Marco Hinz 49431a2ccd
Make -o/-O/-p understand the +{cmd} syntax
The +{cmd} syntax can now be anywhere among the arguments.

These are all equivalent:

  nvr -O +3 foo bar
  nvr -O foo +3 bar
  nvr -O foo bar +3

Fixes https://github.com/mhinz/neovim-remote/issues/109
5 years ago
Marco Hinz a4e4002219
Bump to 2.1.10 5 years ago
Andrea Cedraro 8f2ed12145 setqflist() requires a list (#114) 5 years ago
Marco Hinz 31573a17fb
Fix printing version
...for packages not installed through pip.

This is a crude hack, but fine since I'm the only one uploading this package.

Fixes https://github.com/mhinz/neovim-remote/issues/110
5 years ago
Marco Hinz d85084c91e
Remove obsolte variable 5 years ago
Marco Hinz d0be1a622b
Refactor messages 5 years ago
Marco Hinz 37c54e7ab2
Use raw string literals where appropriate
This avoids warnings such as:

    DeprecationWarning: invalid escape sequence \|
5 years ago
Marco Hinz d6c1b1a7cf
Close socket properly 5 years ago
Marco Hinz bf7477b684
Add exception that hopefully never raises 5 years ago
Marco Hinz a012542004
Add security note
Closes https://github.com/mhinz/neovim-remote/issues/102
5 years ago
Marco Hinz a83dcec392
Set exitcode in error callback properly 5 years ago
Marco Hinz 6ddadfad7d
Remove unused packages 5 years ago
Marco Hinz 1b40cf3da0
Print error message when forked process can't attach to nvim
References https://github.com/mhinz/neovim-remote/issues/99
5 years ago
Marco Hinz aa5da2fc2b
Temporarily use shortmess-=F
This is needed as a workaround in case the "swap file exists" dialog is in
effect but the actual text isn't shown.

References https://github.com/mhinz/neovim-remote/issues/92
5 years ago
Marco Hinz aefaecf089
Probably release resources 5 years ago
Marco Hinz 8d0de2faff
Set shortmess-=F when starting nvr
Opposed to Vim, 'F' is set by default in Nvim. But in combination with the API,
the "swap file exists" dialog wouldn't appear for some reason.

References https://github.com/mhinz/neovim-remote/issues/92
5 years ago
Marco Hinz 7c50a1ef32
Package 'neovim' was renamed to 'pynvim'
Rationale: https://github.com/neovim/python-client/pull/305
6 years ago
Marco Hinz bd7bc4d9fc
Allow sending exit code with BufDelete RPC message
A buffer managed by nvr sets the b:nvr variable. It contains the channel IDs of
all connected nvr clients.

nvr clients understand two RPC messages, BufDelete and Exit.

The latter always required the exit code as argument and the former optionally
takes one as well now.

  let exitcode = 1
  for chan in b:nvr
    call rpcnotify(chan, 'BufDelete', exitcode)
  endfor

Closes #89
6 years ago