From b140b15119659dcf0d4704645c3a8b726bda7285 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Jun 2020 08:30:34 +0530 Subject: [PATCH] Add a -- to linenum hints examples --- docs/kittens/hints.rst | 2 +- kittens/hints/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/kittens/hints.rst b/docs/kittens/hints.rst index 7803f4186..b80af9238 100644 --- a/docs/kittens/hints.rst +++ b/docs/kittens/hints.rst @@ -23,7 +23,7 @@ like a path or filename followed by a colon and a line number and open the file in vim at the specified line number. The patterns and editor to be used can be modified using options passed to the kitten. For example:: - map ctrl+g kitten hints --type=linenum --linenum-action=tab nvim +{line} +{path} + map ctrl+g kitten hints --type=linenum --linenum-action=tab -- nvim +{line} {path} will open the selected file in a new tab inside neovim when you press :kbd:`ctrl+g`. diff --git a/kittens/hints/main.py b/kittens/hints/main.py index fe256cb28..b606755b5 100644 --- a/kittens/hints/main.py +++ b/kittens/hints/main.py @@ -444,7 +444,7 @@ type=choice choices=self,window,tab,os_window,background The action to perform on the matched errors. The actual action is whatever arguments are provided to the kitten, for example: -:code:`kitty + kitten hints --type=linenum vim +{line} {path}` +:code:`kitty + kitten hints --type=linenum -- vim +{line} {path}` will open the matched path at the matched line number in vim. This option controls where the action is executed: :code:`self` means the current window, :code:`window` a new kitty window, :code:`tab` a new tab, :code:`os_window`