Bug 449434

Summary: whole word
Product: [Applications] kate Reporter: courtens
Component: searchAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: kare.sars
Priority: NOR    
Version First Reported In: 21.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: missing option

Description courtens 2022-01-31 21:32:31 UTC
Created attachment 146118 [details]
missing option

SUMMARY

I do not see a way to do a "whole word match" search. Somehow that option is missing. Is this normal?
Comment 1 Kåre Särs 2022-02-01 06:00:31 UTC
Hi,

The search plugin only supports plain-text and regular-expression modes. I can see from the screenshot that the match-case and regular-expression tool-buttons have very dark icons and are barely visible :(

With regular-expressions you get the "whole word" search with adding "\b" before and after the word like: "\bFooBar\b".

As you can se, it is really easy to get the whole word with just a little regular-expressions, so I think there is not a big reason to add yet another button or option for that... (When you enable regular-expressions, you also get a context menu in the search field with common regular-expressions)

I hope this helps,
  Kåre
Comment 2 courtens 2022-02-01 19:43:46 UTC
That is very helpful information. I think adding a "more" button that would explain these advanced search options would be helpful. Like how would one do a search for the full word "post" cap sensitive?
Comment 3 courtens 2022-02-02 15:06:50 UTC
(In reply to Kåre Särs from comment #1)
> I can see from the screenshot that the match-case and regular-expression
> tool-buttons have very dark icons and are barely visible :(

Yes - that icon is not working for the theme I selected. I could never have found it.

How to do a search is very helpful information. I think adding a "more" button that would explain these advanced search options would be helpful.