Description
Tested versions
Godot v4.4.beta2, v4.3.stable
System information
Windows 11 (build 22631) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 32.0.15.6614) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 threads)
Issue description
A path will not be recognized when holding control and hovering over it if hovering over the part with a space.
You can see when it recognizes the path when the cursor changes to a hand and the path is underlined.
20250204-1906-49.6980214.mp4
The issue is in get_word_at_pos
in TextEdit, I think the initial word check fails so it doesn't check for the path.
This whole function should probably be refactored, since: quotes are hadcoded and don't use CodeEdit's string delimiter, non ascii word breaks are not recognized, and the name only mentions words and not paths.
This is used for CodeEdit symbol lookup for GDScript, so maybe it intentionally doesn't use unicode word breaks?
Steps to reproduce
- Add a string with a path with a space, such as
"res://test path"
. It does not need to exist, but it does need to be recognized as a path. - Hold control (cmd on mac I think) and hover over it with the mouse.
Minimal reproduction project (MRP)
N/A