ingress-intel-total-conversion icon indicating copy to clipboard operation
ingress-intel-total-conversion copied to clipboard

FR: Clear field `(X)` button for `Search location`

Open nexushoratio opened this issue 8 months ago • 0 comments

It is a common feature to have a button to clear a field.

  • GMail's internal search has one
  • MDN's search bar
  • GitHub's search bar

As an X Window's user, I am used to its standard double-click to select/middle-click to paste (and the last time I used anything else, I configured it to do the same).

Since the search text sticks around, to do a second search (assuming the next search is already selected), left-click the field, use Control+A to select all the text, then Delete to erase the text, finally middle-click pasting. It would be faster if I could left-click on a button to clear the field, then paste.

Related. there is no "clear results" button. To accomplish the same, one has to erase the current search text then hit Enter to erase the results. Against, a clear field button would make that process easier (either click button followed by Enter or having the click button clear the results).

None of the plugins that I have installed offer a clear-field feature, so I don't know if there is any prior-art in the code base or not (in particular, whether is is some simple thing that jQuery offers out of the box).

nexushoratio avatar Jun 20 '24 17:06 nexushoratio