Skip to content

Revert "Add copy button in AbstractNavigationWidget"

Igor Kushnir requested to merge work/nav-widget-no-auto-clipboard into master

When text is selected in a navigation widget (e.g. editor tooltip, Code Browser tool view, Quick Open or Outline item details), KDevelop automatically copies the selection to clipboard. The copying occurs continuously while the user selects text, so clipboard history ends up containing not only the final selection, but also all intermediate selections - all but one character, all but two characters, ..., the first selected character.

This behavior not only clutters clipboard history with useless entries, but can also quickly overwrite useful clipboard entries if the clipboard manager limits its history size. The auto-copy feature is unexpected and undocumented. It is also redundant on most GNU/Linux and *BSD systems, because primary selection works perfectly in X11 and sort of works in most modern Wayland compositors. If someone needs to copy text from a navigation widget on other operating systems, the feature can be reintroduced but in the widget's context menu, where it would be discoverable and not clutter clipboard history.

This reverts commit dadaf131.

BUG: 486656
FIXED-IN: 5.15.240800

Merge request reports