GNU bug report logs -
#49731
28.0.50; Filter xref results by filename
Previous Next
Reported by: Daniel MartÃn <mardani29 <at> yahoo.es>
Date: Sun, 25 Jul 2021 08:21:02 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 27.07.2021 23:51, Juri Linkov wrote:
>> I think that kind of search scoping in advance can be specially useful
>> when you are doing a grep-like search in the codebase, using either
>> grep, rgrep, project-find-regexp, or xref-find-apropos.
>
> Then in your comparison with grep, this is similar to grep options
> 'grep-find-ignored-directories' and 'grep-find-ignored-files'.
Except in reverse (inclusion, not exclusion) and tweakable at runtime
rather that through Customize.
>> I didn't have in mind implementing cumulative filters. I don't know if
>> people would need such advanced filtering of results.
>
> Earlier you compared this to flush-lines/keep-lines, and these commands
> are cumulative. But maybe xref filtering doesn't need to be cumulative
> when it will support specifying a regexp with alternatives '\|'.
I think ultimately it depends on the mental model the UI produces. In
the examples we've seen in other programs, you usually modify an input
field containing the previous search terms, so that makes it obvious the
existing filter would be replaced, rather than added to.
If the new prompt did that as well, it could work similarly.
This bug report was last modified 1 year and 49 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.