Bug 449434 - whole word
Summary: whole word
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: search (other bugs)
Version First Reported In: 21.08.1
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-31 21:32 UTC by courtens
Modified: 2022-02-02 15:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
missing option (87.15 KB, image/png)
2022-01-31 21:32 UTC, courtens
Details

Note You need to log in before you can comment on or make changes to this bug.
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.