Commit Graph

318 Commits (master)
 

Author SHA1 Message Date
Marco Hinz 3fc53ac12a
Release v1.8.0 7 years ago
Marco Hinz c1fedb4de8
Redirect stdout to stdin when forking
This is needed so the new nvim process ignores the data in stdin, because it
comes from a TTY now.
7 years ago
Marco Hinz 4b8c384462
Only process + at the beginning of --remote*
nvr +1 +2 3 +4 5

The above will do the following in the given order:

  - open file "5"
  - open file "+4"
  - open file "3"
  - execute :2
  - execute :1

That's how Vim does it.
7 years ago
Marco Hinz 957082771b
Ignore OSError instead of FileNotFoundError 7 years ago
Marco Hinz 13808fd5ec
Ignore only invalid addresses 7 years ago
Harm te Hennepe a85aa94321 Support multiple + commands and let empty + go to the last line 7 years ago
Drew Neil ee9a6c4f39 Document `-p` flag independent of `--remote-tab` flag 7 years ago
Marco Hinz 74a2baf3b5
README: mention $NVR_CMD 7 years ago
Marco Hinz a973424000
Make -s overwrite all other options
References https://github.com/mhinz/neovim-remote/issues/48#issuecomment-318163612
7 years ago
Marco Hinz 6debd11547
Makefile: ditch twine for uploading 7 years ago
Marco Hinz 625b8ddf45
Change command to run using $NVR_CMD
References https://github.com/mhinz/neovim-remote/issues/48
7 years ago
Marco Hinz 4e827d4d7d
Process all options before waiting
References https://github.com/mhinz/neovim-remote/issues/46
7 years ago
Marco Hinz 3ad6b4371d
Release v1.7.1 7 years ago
Marco Hinz fa9ecbcc71
--serverlist: don't print empty lines 7 years ago
Marco Hinz af4103a16a
Sort short options in help output 7 years ago
Marco Hinz 5df48bbf2c
Add -s option 7 years ago
Marco Hinz b4c0382ca1
README: fix ToC order 7 years ago
Marco Hinz 276f1258f1
Release v1.7.0 7 years ago
Marco Hinz 05d0d97451
README: reorder sections 7 years ago
Marco Hinz aea617c158
README: add git use case 7 years ago
Marco Hinz 031c7a911f
Rename variable "flags" to "options" 7 years ago
Marco Hinz 70f8bf86d7
Docs: add nvr/git example to help message 7 years ago
Marco Hinz 1e9be0473f
Docs: instance -> process 7 years ago
Marco Hinz 2111ea9d0a
Consider the possibility that "nvim" is not in $PATH 7 years ago
Marco Hinz 6e1fe04456
Make forked child try attaching multiple times
This most likely makes it attach faster than the previous fixed 1 second
timeout.
7 years ago
Marco Hinz 58d56cba6b
More robust socket handling 7 years ago
Marco Hinz 8f8fa3ed27
Improve the start of a new instance
If the given instance is not found, we fork nvr.

The parent process gets replaced by a new nvim instance.

The child waits for one second and then tries attaching to the newly started
nvim instance.

Advantage: All options passed to nvr are now correctly handled even by new nvim
instances that were started by nvr.

References https://github.com/mhinz/neovim-remote/issues/44
7 years ago
Marco Hinz 7422ee6d90
Handle files beginning with - for --remote options
Small tradeoff: You get no error anymore when you provide no arguments to
--remote and friends.

Internally this results in an empty list instead of None. This is important,
because otherwise you'd get an error with `--remote -- foo`, because `--` and
`foo` would be parsed into the remaining arguments and --remote had no argument.

In return it's now possible to provide files beginning with a dash to any
--remote option. Leading -- before those files is not needed.

Equivalent:

    --remote --file
    --remote -- --file

Fixes https://github.com/mhinz/neovim-remote/issues/43
7 years ago
Marco Hinz 53ce66cf98
Setup: mention support for Python 3.6 7 years ago
Marco Hinz e2a35a4963
README: add TravisCI badge 7 years ago
Marco Hinz 1cf3ce4cbc
Add .travis.yml 7 years ago
Marco Hinz 1bcc77e299
Tests: add first pytest 7 years ago
Marco Hinz 39519a7b00
Make main() take optional environment 7 years ago
Marco Hinz aee0fa049c
Rename package to "nvr" 7 years ago
Marco Hinz aa84e9369f
Make main() take optional arguments 7 years ago
Raghu 53cd4962f8 Update setup.py to use 'console_scripts'
setup will generate appropriate executable sccripts on all platforms.
Tested on windows 8.1
7 years ago
Marco Hinz 8bd0629ec9
Makefile: use "rm -rf" for clean 7 years ago
Marco Hinz f78e3a9f0e
Make --serverlist work for real 7 years ago
Marco Hinz 8a41514c9c
Remove logo 7 years ago
Marco Hinz 52fb0e12b7
pictures/ -> images/ 7 years ago
Marco Hinz 6168e7bb3a
README: add badges 7 years ago
Marco Hinz 9dd9c323fd
Improve help texts 7 years ago
Marco Hinz 45cb8c8e5e
Wait on remote instance without giving files
Before this commit all --remote* options took 1 or more files as arguments. Now
--remote-wait and --remote-wait-silent take 0 or more arguments.

This is useful if nvr is started by another program. E.g. setting git's
core.editor to "nvr" wasn't working when "git commit" was used from within
:terminal.

Now it does: set core.editor to "nvr --remote-wait-silent" instead.

When called from a shell, it starts a new Neovim instance. When called from
within :terminal, the current Neovim instance will be used.

This should work for all similar use cases.

References #39.
7 years ago
Marco Hinz 020bb0ca34
Fix --remote-wait-silent
References #36.
7 years ago
Marco Hinz 6418fe24f6
Add -cc
References #35.
7 years ago
Marco Hinz 739caa5d0b
README: improve pip3 section 7 years ago
Marco Hinz 40ca151074
README: use "--user" with "pip install"
References #33.
7 years ago
Marco Hinz 27c57846f5
Add -t
References #29.
7 years ago
Marco Hinz 8d7fe39aee
-q: switch to correct directory first
References
https://github.com/mhinz/neovim-remote/issues/29
8 years ago
Marco Hinz af050cb55e
-q: jump to first error 8 years ago