Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Clear field (X) button for Search location #742

Open
nexushoratio opened this issue Jun 20, 2024 · 0 comments
Open

FR: Clear field (X) button for Search location #742

nexushoratio opened this issue Jun 20, 2024 · 0 comments

Comments

@nexushoratio
Copy link
Contributor

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant