just like this,this software is notepad++: ![image](https://user-images.githubusercontent.com/25424316/215050347-b028ce73-de78-4...) but now in geany。When searching in multiple files, the search string is not highlighted in the search results, which makes it difficult for people to quickly see the search string. ![image](https://user-images.githubusercontent.com/25424316/215050920-244656c8-32e3-4...)
Geany does not search the files itself, instead it uses the `grep` program (as the blue line at the start of the results shows) which has been optimised for decades to search lots of files quickly. The output of grep is shown in the results pane. Unfortunately grep does not provide any indication of which characters in the output matched, so there is no way for Geany to highlight them.
Actually, `grep --color=always` gives you exactly the information that would be needed for this. The matched characters would be surrounded by `\033[0;31m` and `\033[0m`. But relying on this would be hacky at best and could easily break with various grep implementations.
But relying on this would be hacky at best and could easily break with various grep implementations.
Yes, thought of this before replying, but `--color=` is not [POSIX grep](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html). Also the grep command is configurable, it might not even be grep, although it will need to accept the same basic options as grep does.
Actually, gives you exactly the information that would be needed for this. The matched characters would be surrounded by and . But relying on this would be hacky at best and could easily break with various grep implementations.`grep --color=always``\033[0;31m``\033[0m`
How do I configure additional parameters when using Search in Folders? My parameter will be garbled when searching ![Uploading image.png…]()
Actually, `grep --color=always` gives you exactly the information that would be needed for this. The matched characters would be surrounded by `\033[0;31m` and `\033[0m`. But relying on this would be hacky at best and could easily break with various grep implementations.
![image](https://user-images.githubusercontent.com/25424316/216778425-a13b7b9f-2f31-4...) How do I configure additional parameters when using Search in Folders? My parameter will be garbled when searching.
@lzh1043060917 you have used the right method, although I don't know what the `'`s are for?
But adding the option to grep almost certainly won't help, the compiler widget is not a terminal, it is unlikely to interpret escape sequences. AFAIK "somebody" needs to add code to Geany to recognise the escape sequences and convert to Pango markup which should be recognised by the widget.
github-comments@lists.geany.org