Default search field for issues is:issue state:open lacks an extra space, causing users to accidentally type right after state:open, creating invalid query
#213837
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Hi @hsandt, Thanks for sharing the screenshots. The comparison between GitHub Issues and Discussions makes the problem very clear. I agree that the Issues search field should behave consistently with the Discussions search field. When a default query is prefilled, it should include a trailing space so users can immediately continue typing without accidentally modifying an existing search qualifier. For example:
The same behavior should apply to other prefilled queries, such as This might seem like a minor UI detail, but it directly affects everyday usability, especially for users who frequently search and filter issues. It would be great if the GitHub team could investigate whether this was introduced by the recent Advanced Search update and apply a consistent fix across all prefilled search queries. Thanks for documenting this with screenshots! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Issues
Body
In GitHub issues, the default search is
is:issue state:openwithout a trailing space. This means that a user clicking on the right of the field, or selecting the field and navigating to the end with right arrow or End key will end up right afterstate:openand will start typing inside the state field unless they remember to add a space.This leads to queries like
is:issue state:opencolliderwhich is of course invalid.This happens to me almost every time, and another user @simon-abbott mentioned this in the Advanced Search for Issues Public Preview #148716 thread:
https://github.com/orgs/community/discussions/148716#discussioncomment-11905778
This does not happen in GitHub Discussions which have a proper trailing space:
and I don't remember having this issue in the past either on Issues, so I suspect that the new advanced syntax update removed the trailing space (regression).
In addition, other prefilled queries like
is:issue state:closedhave the same issue, so if this is fixed, it should be fixed universally by adding a space after any prefilled query.EDIT: thinking about it, since it used to work and still works with a trailing space in Discussions, I think this behavior should be classified as Bug rather than Product feedback. I can manually rewrite the heading of this post but not the labels, so I'll let the mods reclassify this issue if needed.
Guidelines
All reactions