2
0
mirror of https://github.com/mhinz/neovim-remote synced 2024-11-13 07:10:27 +00:00
Commit Graph

146 Commits

Author SHA1 Message Date
Marco Hinz
1e9be0473f
Docs: instance -> process 2017-06-20 20:50:55 +02:00
Marco Hinz
2111ea9d0a
Consider the possibility that "nvim" is not in $PATH 2017-06-20 20:26:56 +02:00
Marco Hinz
6e1fe04456
Make forked child try attaching multiple times
This most likely makes it attach faster than the previous fixed 1 second
timeout.
2017-06-20 15:11:32 +02:00
Marco Hinz
58d56cba6b
More robust socket handling 2017-06-20 15:03:06 +02:00
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
2017-06-20 13:47:59 +02:00
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
2017-06-19 15:01:05 +02:00
Marco Hinz
53ce66cf98
Setup: mention support for Python 3.6 2017-05-25 15:47:12 +02:00
Marco Hinz
e2a35a4963
README: add TravisCI badge 2017-05-25 01:15:45 +02:00
Marco Hinz
1cf3ce4cbc
Add .travis.yml 2017-05-25 01:09:52 +02:00
Marco Hinz
1bcc77e299
Tests: add first pytest 2017-05-25 00:13:26 +02:00
Marco Hinz
39519a7b00
Make main() take optional environment 2017-05-24 20:40:40 +02:00
Marco Hinz
aee0fa049c
Rename package to "nvr" 2017-05-24 14:37:11 +02:00
Marco Hinz
aa84e9369f
Make main() take optional arguments 2017-05-23 23:05:46 +02:00
Raghu
53cd4962f8 Update setup.py to use 'console_scripts'
setup will generate appropriate executable sccripts on all platforms.
Tested on windows 8.1
2017-05-23 16:01:05 +02:00
Marco Hinz
8bd0629ec9
Makefile: use "rm -rf" for clean 2017-04-27 13:27:47 +02:00
Marco Hinz
f78e3a9f0e
Make --serverlist work for real 2017-04-27 13:24:33 +02:00
Marco Hinz
8a41514c9c
Remove logo 2017-04-27 11:43:22 +02:00
Marco Hinz
52fb0e12b7
pictures/ -> images/ 2017-04-27 11:41:39 +02:00
Marco Hinz
6168e7bb3a
README: add badges 2017-04-27 11:30:03 +02:00
Marco Hinz
9dd9c323fd
Improve help texts 2017-03-27 15:39:01 +02:00
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.
2017-03-27 14:25:37 +02:00
Marco Hinz
020bb0ca34
Fix --remote-wait-silent
References #36.
2017-03-19 16:48:09 +01:00
Marco Hinz
6418fe24f6
Add -cc
References #35.
2017-02-26 17:22:47 +01:00
Marco Hinz
739caa5d0b
README: improve pip3 section 2017-02-01 22:26:46 +01:00
Marco Hinz
40ca151074
README: use "--user" with "pip install"
References #33.
2017-02-01 19:14:20 +01:00
Marco Hinz
27c57846f5
Add -t
References #29.
2016-12-29 12:57:32 +01:00
Marco Hinz
8d7fe39aee
-q: switch to correct directory first
References
https://github.com/mhinz/neovim-remote/issues/29
2016-12-28 13:47:36 +01:00
Marco Hinz
af050cb55e
-q: jump to first error 2016-12-28 12:39:10 +01:00
Marco Hinz
9e96644c97
Add -q
References https://github.com/mhinz/neovim-remote/issues/29
2016-12-28 12:31:41 +01:00
Marco Hinz
b65265ed97
Release v1.4.0 2016-12-07 00:45:07 +01:00
Marco Hinz
c816dc0c09
Remove CHANGELOG in favor of Github releases 2016-12-07 00:44:00 +01:00
Marco Hinz
3fd6acb6a7
FAQ: reading from stdin 2016-12-06 23:46:00 +01:00
Marco Hinz
07e1008834
README: rework usage section 2016-12-06 23:36:39 +01:00
Marco Hinz
dcf2352f81
README: switch usage and FAQ 2016-12-06 23:21:25 +01:00
Marco Hinz
a825fae389
README: how to talk to nvr processes 2016-12-06 23:14:42 +01:00
Marco Hinz
115aa50e63
Usage: mention default for --servername 2016-12-06 22:36:06 +01:00
Marco Hinz
e8638c063a
README: polishing 2016-12-06 22:26:21 +01:00
Marco Hinz
5631d463be
More blank lines for readability 2016-12-02 18:06:02 +01:00
Marco Hinz
63f1d63961
Expose b:nvr
It's a list of channel IDs for each connected nvr.

Imagine `nvr --remote-wait file` used twice from different shells.

You could disconnect them with exit code 1 like this:

    command! Cq
        \  if exists('b:nvr')
        \|   for chanid in b:nvr
        \|     silent! call rpcnotify(chanid, 'Exit', 1)
        \|   endfor
        \| endif

References #27.
2016-12-02 17:52:50 +01:00
Marco Hinz
0357cc35a8
README: mention exit code 2016-12-02 00:14:05 +01:00
Marco Hinz
5734508170
Make nvr use same exit code as linked nvim
This requires a recent Neovim and gets ignored otherwise.

Reference:
d2e8c76dc2

Closes #27.
2016-12-01 23:54:45 +01:00
Harm te Hennepe
1e14e72914
Don't use sys.exit() in event loop 2016-12-01 23:53:04 +01:00
Marco Hinz
7ee0e2dc31
Make all flags read from STDIN on - 2016-11-28 20:12:48 +01:00
Marco Hinz
3a93776ec3
Make "-o -" and "-O -" read from STDIN
References https://github.com/mhinz/neovim-remote/issues/28
2016-11-28 18:07:28 +01:00
Marco Hinz
a435992e1f
README: remove superfluous line 2016-11-13 21:10:17 +01:00
Marco Hinz
f5f3991221 Make: avoid twine errors by cleaning first 2016-11-08 16:32:19 +01:00
Marco Hinz
068e21aae0 Improve usage message
References #26.
2016-11-08 16:27:47 +01:00
Marco Hinz
b039d9f1fb README: remove obsolete remark about PyPI 2016-10-29 00:47:59 +02:00
Marco Hinz
18c3cf41e5
PyPI: reupload -> 1.3.1
Somehow I managed to upload an egg for Python3.5 only. I have no idea how that
happened.

Sorry for any inconveniences!
2016-10-07 15:17:29 +02:00
Marco Hinz
29f7dcc86b
Release 1.3.0 2016-10-06 20:57:55 +02:00