plasma-applet-commandoutput icon indicating copy to clipboard operation
plasma-applet-commandoutput copied to clipboard

Implement showing stderr as the tooltip

Open fatalis opened this issue 6 years ago • 5 comments

Optionally as Qt's subset of HTML4

fatalis avatar Jun 05 '18 17:06 fatalis

Fixing an issue, please don't merge

fatalis avatar Jun 06 '18 12:06 fatalis

Nevermind, not related to my code

com.github.zren.commandoutput/contents/ui/lib/ConfigPage.qml:25:2: QML Loader: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
com.github.zren.commandoutput/contents/ui/lib/ConfigCheckBox.qml:11:11: Unable to assign [undefined] to bool

fatalis avatar Jun 06 '18 12:06 fatalis

There's Kargos that has a specific "syntax" for showing text in a popup.

https://store.kde.org/p/1173112/

I'm a bit worried with abusing the stderr io stream for this. What if we had a mode for showing line 2+ in the tooltip (or popup)?

As for the richtext setting, won't it be Text.AutoText by default?

http://doc.qt.io/qt-5/qml-qtquick-text.html#textFormat-prop

Zren avatar Jun 06 '18 13:06 Zren

I tried AutoText and it wasn't working with something like <table><tr><td>test</td><td>test2</td></tr></table>. Also, setting it to PlainText makes newlines appear as newlines instead of having to use <br>.

stderr was completely ignored and unused so I figured I'd use it. If they don't want it in the tooltip they can just redirect it, or a setting can be implemented.

fatalis avatar Jun 06 '18 13:06 fatalis

Close this if you want, switching to kargos.

fatalis avatar Jun 06 '18 14:06 fatalis