From a3ecc79f0dfca8693808291e61e4227d971e102e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Jun 2020 09:31:42 +0530 Subject: [PATCH] Dont actually need -- since kitty's option processing code is smart enough to stop looking for options after the first non-optional argument --- 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 b80af9238..f89c47e4b 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 b606755b5..fe256cb28 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`