Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse double click does not select leading and trailing slashes #2481

Open
4njul1 opened this issue Apr 9, 2024 · 5 comments
Open

Mouse double click does not select leading and trailing slashes #2481

4njul1 opened this issue Apr 9, 2024 · 5 comments

Comments

@4njul1
Copy link

4njul1 commented Apr 9, 2024

Version, Operative system
CherryTree v1.1.2 on Ubuntu v22.04.4

Describe the bug
When I select text with leading and trailing slashes with a mouse double click the first and last slash are not selected.
For example a double mouse click on /foo/bar/ will only select foo/bar.

Thank you for your work on this great software, I use it daily!

@gitvectors
Copy link

On Ubuntu 22.04 I use mouse triple click in CT 1.1.0.

@4njul1
Copy link
Author

4njul1 commented Apr 10, 2024

Triple click selects the entire line for me. If I for example want to change the path in a command, I have trouble selecting it with mouse clicks.

@giuspen
Copy link
Owner

giuspen commented Apr 19, 2024

I would have advised to try and configure in the preferences dialog which characters are included with the double click; the fact though that the middle slash is included and the others are not doesn't seem right, I'll have a look

@giuspen
Copy link
Owner

giuspen commented Apr 19, 2024

I had a look, the non alphanumeric characters are stripped on purpose from the beginning/end.
We have to consider for example the case of having the dot configured for selection, when you double click on
"one.two." you likely don't want the trailing dot selected.
One solution is to hardcode a list of characters that we don't want to strip from the beginning/end, another is to hardcode the only characters that we want to strip from the beginning/end, the third possibility is to allow configurability of not only one list of characters but two.
Comments welcome.

@4njul1
Copy link
Author

4njul1 commented Apr 26, 2024

Thanks for having a look into it!
I see that in some cases it would make sense to strip these characters from the beginning or end of string.
I think a configurable list would be great! I often select absolute paths where it would be nice to have the leading slash included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants