You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is log output. It doesn't seem relevant though, as it's always printed for some reason.
warning: queue 0x7fa058000ca0 destroyed while proxies still attached:
zwp_primary_selection_offer_v1@4278190080 still attached
wl_data_offer@4278190081 still attached
zwp_primary_selection_device_v1@48 still attached
zwp_primary_selection_device_manager_v1@43 still attached
wl_data_device@47 still attached
wl_data_device_manager@45 still attached
wl_seat@44 still attached
wl_registry@42 still attached
warning: queue 0x558df7ffb3b0 destroyed while proxies still attached:
wl_buffer@56 still attached
wl_buffer@58 still attached
wl_shm_pool@60 still attached
xdg_wm_base@25 still attached
wl_output@16 still attached
zwp_text_input_manager_v3@15 still attached
wl_output@14 still attached
xdg_activation_v1@13 still attached
wl_subcompositor@12 still attached
zwp_relative_pointer_manager_v1@11 still attached
zwp_pointer_constraints_v1@10 still attached
wl_seat@9 still attached
wl_shm@8 still attached
wp_fractional_scale_manager_v1@7 still attached
wp_viewporter@6 still attached
zxdg_decoration_manager_v1@5 still attached
wl_compositor@4 still attached
wl_registry@2 still attached
The text was updated successfully, but these errors were encountered:
I tried implementing this myself but ran into a serious issue. Moving the cursor from the start of a file to the end of a file is seriously really slow. The bottle neck can be found in the TextEditor's layout and draw functions. I only looked into the layout function because the problem seems to lie within cosmic_text. Specifically, the TextEditor layout function calls the iced graphics text editor update function which then calls cosmic_text editor shape_as_needed function.
The problem with shape_as_needed is that it calculates and caches the layout of all the lines which haven't been cached. Of course, this is an issue because if we jump from the start of a 1000 line file to the end, we only really see the last 30 or so lines depending on the size of the editor. Yet, the layout of more than 900 unseen lines are being computed.
Also, as previously mentioned the draw function is also really slow during this process. I haven't looked into it too much, but I'm pretty sure it has to do with the internal.editor.highlight() call.
Currently a select all feature could be implemented but it'd be unusable unless there's a way to get around the unnecessary processing.
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Here's an SSCCE. Try typing in the text field and pressing Ctrl + A.
What is the expected behavior?
It should select all the text in the text editor.
Version
master
Operating System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered: