|
From: | Dmitry Gutov |
Subject: | bug#60578: xref-query-replace-in-results doesn't replace truncated lines |
Date: | Thu, 5 Jan 2023 22:10:07 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
Hi! On 05/01/2023 19:52, Juri Linkov wrote:
1. (setq xref-search-program 'ripgrep) 2. (setq xref-search-program-alist '((ripgrep . "xargs -0 rg <C> -M 200 --max-columns-preview --null -nH --no-heading --no-messages -g '!*/' -e <R>"))) where "-M 200 --max-columns-preview" is added to default settings. Then 'C-x p g' shows matches on truncated lines before the text "[... omitted end of long line]". But 'r' (xref-query-replace-in-results) skips these matches that are displayed on truncated lines.
What if you remove "-M 200 --max-columns-preview" from the invocation arguments, and instead customize xref-truncation-width to whatever value you want? E.g. the same -- 200.
Does replacement work then?
[Prev in Thread] | Current Thread | [Next in Thread] |