Cleanup previous PR

Allow disabling hyperlinking of rg output. Also parse
--kitten=hyperlink=... form of CLI args.
This commit is contained in:
Kovid Goyal
2022-08-30 07:41:14 +05:30
parent 49f8c0eae6
commit 89a2545855
3 changed files with 45 additions and 18 deletions

View File

@@ -35,6 +35,12 @@ mouse anywhere in the current command to move the cursor there. See
Detailed list of changes
-------------------------------------
0.26.2 [2022-08-30]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- hyperlinked_grep kitten: Allow control which parts of rg output are hyperlinked (:pull:`5428`)
- ssh kitten: Fix executable permission missing from kitty bootstrap script (:iss:`5438`)
0.26.1 [2022-08-30]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -74,13 +74,15 @@ to :program:`rg`. How to do that varies based on the shell:
To learn more about kitty's powerful framework for customizing URL click
actions, see :doc:`here </open_actions>`.
By default, this adds hyperlinks for several parts of ripgrep output: the
per-file header, match context lines, and match lines. You can control which
items are linked with a :command:`--kitten hyperlink` flag. For example,
By default, this kitten adds hyperlinks for several parts of ripgrep output:
the per-file header, match context lines, and match lines. You can control
which items are linked with a :command:`--kitten hyperlink` flag. For example,
:command:`--kitten hyperlink=matching_lines` will only add hyperlinks to the
match lines. :command:`--kitten hyperlink=file_headers,context_lines` will
link file headers and context lines but not match lines.
:command:`--kitten hyperlink` may be specified multiple times.
match lines. :command:`--kitten hyperlink=file_headers,context_lines` will link
file headers and context lines but not match lines. :command:`--kitten
hyperlink=none` will cause the command line to be passed to directly to
:command:`rg` so no hyperlinking will be performed. :command:`--kitten
hyperlink` may be specified multiple times.
Hopefully, someday this functionality will make it into some `upstream grep
<https://github.com/BurntSushi/ripgrep/issues/665>`__ program directly removing