https://bugs.kde.org/show_bug.cgi?id=432533
Bug ID: 432533
Summary: Fuzzy / "nearby" search in files
Product: kate
Version: 19.12.3
Platform: Other
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: search
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
I manage a large collection of notes in form of text files in a git repository.
>From time to time, when I would like to find something, I remember two keywords
which are not exactly next to each other; and also the order of the words is
unknown.
For this use case a "nearby" or "near each other" search (which also should
work over more than one line) would be very helpful.
This is a possible regex (but it only works for a single line):
(word1.{1,150}word2)|(word2.{1,150}word1)
This works on the command line:
rg -i --multiline --multiline-dotall 'word1.{1,150}word2|word2.{1,150}word1'
Additionally, I tried to configure this as External Tool, but got this output
Running external tool: Find nearby
- Executable:rg
- Arguments : -i --multiline --multiline-dotall
'word1.{1,150}word2|word2.{1,150}word1'
- Input :
Finished with exit code: 1
(Plus, I see no way to pass the words I am searching for to the External Tool)
--
You are receiving this mail because:
You are watching all bug changes.