Commit Graph

318 Commits (master)
 

Author SHA1 Message Date
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 fc86cbfe1a
README: add bufhidden=delete workflow 5 years ago
Marco Hinz 061111b916
README: add nvr scripting link 5 years ago
Marco Hinz ed5741c53e
Travis: make PyPI provider create bdist_wheel 5 years ago
Marco Hinz 1f62199b23
Include tests dir in source distribution
Fixes #97
5 years ago
Marco Hinz 0b42ed1543
README: reword git editor use case 5 years ago
Marco Hinz f29c4a086c
README: reorder use cases 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
Alan 3869972d9f
README: mention how to commit
Closes https://github.com/mhinz/neovim-remote/issues/94
Closes https://github.com/mhinz/neovim-remote/pull/95
6 years ago
Marco Hinz 0d85962e5d
CI: test with Python 3.7 6 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 9d84a9d655
CI: a few modifications
- fix the tags regex
- avoid "branch not permitted" at deploy stage
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
Marco Hinz 5d83a59255
Bump to v2.0.10
Forgot the classifier for Python 3.7, which is used by our badge:

  https://img.shields.io/pypi/pyversions/neovim-remote.svg
6 years ago
Marco Hinz 590bbd941b
Bump to v2.0.9
This release adds support for Python 3.7.

Previously we didn't allow that version because python-client had problems with
it, since arguments were named after keywords newly introduced in 3.7.

Fixed since of https://github.com/neovim/python-client/pull/274
6 years ago
Giovanni Lanzani f7d0d434c5 Allow Python 3.7 installation
I've tested `nvr` on Python 3.7, it successfully worked.
6 years ago
Marco Hinz 8254861659
Check if path is protocol supported by netrw
References #87
6 years ago
Marco Hinz 81bfe645e6
Check if first buffer was handled already
References #84
6 years ago
Marco Hinz 17cff73210
Bump to 2.0.6 6 years ago
Marco Hinz 5faf37bed6
Avoid empty buffer when starting a new process
Previously, when doing `nvr --remote-tab file` without an already running nvim
process, nvr would first start a new nvim process without any arguments and then
`:tabedit file`.

This would leave an empty first buffer and is not how Vim's `vim --servername
foo --remote-tab` behaves.

Now, nvr reuses the first buffer when starting a new process for any of the
--remote options.

`nvr -p` and friends are already working correctly.

Fixes #84
6 years ago
Marco Hinz 2852b64ba3
Don't convert to absolute path
Previously we converted any path given to nvr to an absolute one. But then `nvr
http://example.com/file` wouldn't trigger netrw's BufReadCmd event and thus
download the file, because it would see an absolute path like
`~/http://example.com/file` and the netrw autocmd only matches on `http://*`.

Fixes #86
6 years ago
Marco Hinz c69e690b2f
CI: deploy for all branches
When you tag a commit on master and push it to GitHub, TravisCI will actually
run two builds, one for master and one for a branch named after the tag.

We use a conditional deploy stage. It will be only used if the git tag happens
to match a certain regexp.

By default the deployment provider only deploys for the master branch. That will
never be the case for our conditional stage. So we deploy for all branches now,
knowing it will only happen for tag branches anyway.
6 years ago
Marco Hinz a1a426a894
Make -q work with stdin
Example:

  grep -Rn foo . | nvr -q -
6 years ago
Marco Hinz fa7d9eebde
CI: use conditional deploy stage 6 years ago
Marco Hinz 2159a4f56d
CI: only deploy when all tests succeed 6 years ago
Marco Hinz 999272942d
Only install for Python versions >=3.4 and <3.7
Closes #79
6 years ago
Marco Hinz 429f58f47b
Bump to 2.0.3
There are no changes. This release tests the automatic deployment to PyPI.
6 years ago
Marco Hinz 2926b4f8a5
CI: automatic deployment to PyPI 6 years ago
Marco Hinz c65105b6b2
README: update nvr -h output 6 years ago
Marco Hinz b440e60636
Bump to 2.0.2
Stupid me.
6 years ago
Marco Hinz 450f2c5fe6
Fix waiting logic for -d 6 years ago
Marco Hinz ad0b04dcf1
Bump to 2.0.0 6 years ago
Marco Hinz 31b5285f8e
New tab if diff mode in existing process 6 years ago
Marco Hinz b270bbc31b
Refactor waiting mechanism 6 years ago
Marco Hinz 7fbe786a79
Add Nvim.wait_for_current_buffer() 6 years ago
Marco Hinz c70b5cd346
README: document git mergetool use case 6 years ago
Marco Hinz da0484ce8d
Improve -d 6 years ago
Marco Hinz aab4ed9d3e
Use first buffer for -o/-O/-p when starting new process 6 years ago
Marco Hinz a0197448a6
Make windows equally high/wide for -o/-O/-d 6 years ago
Marco Hinz 95d8aa3568
New option: -d 6 years ago
Marco Hinz fcf4a8d41d
Bump to 1.9.6 6 years ago
Marco Hinz f104f234d9
Improve quoting for -q 6 years ago