rafaelmardojai / share-preview

Test social media cards locally
GNU General Public License v3.0
101 stars 16 forks source link

The text entry needs a clear button #67

Open ferdnyc opened 10 months ago

ferdnyc commented 10 months ago

People have been steadily requesting keyboard shortcuts and other typing enhancements, but I wanted to go the other way.

When the text entry field is filled with a URL, there's no way to clear it quickly and easily with the mouse (no, Context menu → Select All; Context Menu → Delete does not count as quick and easy), should one wish to restore the initial blank canvas in preparation for future URL typing/pasting.

Something like Qt's QLineEdit.clearButtonEnabled, which automatically shows a clear icon at the end of the input area whenever it's non-empty, would be cool. Of course, GtkEntry doesn't seem to have anything quite so convenient, and you're already using that part of the widget to display the "Go"/"Submit" button... :man_shrugging: