From f6395b720bd255f557fc5064735be37e2146877d Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 16 Dec 2015 19:43:40 +0100 Subject: [PATCH] Implement --serverlist.. again --- CHANGELOG.md | 1 + nvr | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aac810d..8c1a2fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ## [Unreleased] ### Added - `CHANGELOG.md` according to [keepachangelog.com](http://keepachangelog.com). +- Option: `--serverlist` ### Changed - Renamed `nvim-remote.py` to `nvr` for convenience. diff --git a/nvr b/nvr index 6254b64..3361345 100755 --- a/nvr +++ b/nvr @@ -119,6 +119,9 @@ def parse_args(): parser.add_argument('--servername', metavar = '', help = 'path to unix socket (overrides $NVIM_LISTEN_ADDRESS)') + parser.add_argument('--serverlist', + action = 'store_true', + help = 'prints socket path to be used') return parser.parse_known_args() @@ -145,6 +148,10 @@ def main(): if sockpath is None: sockpath = '/tmp/nvimsocket' + if args.serverlist: + if sockpath is not None: + print(sockpath) + n = Neovim(sockpath) if args.remote_silent and n.attached(silent=True):