I want to be able to change the behaviour of double click to select a single word when underscores are used as word separators. Currently if I double click `this_is_a_test` in geany the whole entire sentence is selected. I want to be able to double click and select only the words in it. This isn't a problem for dashes `this-is-a-test` double clicking any word in this test selects only the word. I read through #492 but that seemed to be for keyboard interactions not mouse interactions.
Works here for C (and dashes don't work). This is a per language setting in the language filetypes file.
@elextr this was in just a normal text file aka no filetype. I tried all the steps in the other mentioned bug report but double click for me still includes underscores. I'll double check when I get home though i n case I missed a step.
Same for text file (filetype `None`) here. Check the filetype in the status bar. Maybe you have edited your `filetypes.common`?
I got it working turns out I'd left the `_` in `wordchars`. For anyone finding this in the future you need to add characters to `wordchars` for selections. Sorry for the noise and thank you for the help.
Closed #3068.
github-comments@lists.geany.org