psemiletov / tea-qt

TEA text editor
https://tea.ourproject.org
GNU General Public License v3.0
88 stars 11 forks source link

word highlighting on doubleclick #12

Closed Smirftsch closed 6 years ago

Smirftsch commented 7 years ago

perhaps I missed it, but I couldn't find it- is there an option to enable word highlighting? Such as you double click a variable and it highlights all occasions of it?

And while on it- can custom highlight languages be enabled/added? I'd miss GLSL (and maybe UnrealScript).

psemiletov commented 7 years ago

The way to add custom language highlight is described at the TEA manual. In short, you need to put the highlighting module (based on some module from the TEA source) to $HOME/.config/tea/hls. About the word highlighting - good idea, but I need to think about :)

Smirftsch commented 7 years ago

Thank you! when looking for occurrences of a variable or checking for specific messages in a logfile, is word highlighting incredibly helpful, would be great if you could consider adding it :)

Smirftsch commented 6 years ago

Sorry, is this request still alive? :)

psemiletov commented 6 years ago

Look at "Search - Mark all found" menu item.

Smirftsch commented 6 years ago

Thank you! I compiled latest Git, but it doesn't seem to have any effect whatsoever, neither find nor double clicking on a word does something. How is it supposed to work?

psemiletov commented 6 years ago

It is supposed to work in a way described at the program manual, where all functions are described. Just put some word to the FIF (famous input field) and use "Search - Mark all found".

Smirftsch commented 6 years ago

I'm terribly sorry to stress this, it plain doesn't work for me. I haven't had the time in the last months to really check on that, so I was using as is. Now I just pulled the latest git but "Mark all found" plain does nothing. Edit: It actually does something I just realized- it also removes the already highlighted occurrence found by "search". I am on Debian buster right now, if that matters. I also tried deleting the tea folder in .config too to have a fresh start.

Other than that, the method you describe is way more circuitous than just double clicking on a word, could I ask you again to consider implementing it? It's really the only thing I am missing using this great editor.

psemiletov commented 6 years ago

Fixed with the last commit :) Thank you for the report!