lxqt / qtermwidget

The terminal widget for QTerminal
https://lxqt.github.io
GNU General Public License v2.0
485 stars 247 forks source link

Expose wordCharacters property to QTermWidget API #531

Closed ahigerd closed 4 months ago

ahigerd commented 5 months ago

A feature that QTerminal is missing, which is present in gnome-terminal, is the ability to configure which characters are considered "word" characters for the purposes of double-click selection. (Feature request)

QTermWidget has internal support for configuring those characters, inherited from Konsole, but its public API provides no way to do so. This PR adds wordCharacters() const and setWordCharacters() to QTermWidget in order to support this feature.