lxqt / qtermwidget

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

Expose wordCharacters property to QTermWidget API #531

Closed ahigerd closed 9 months ago

ahigerd commented 9 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.