You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove is:open/is:closed issue search query with a click #2574
To see all issues (open and closed) you need to manually remove is:open/is:closed search query. Maybe add "All" next to "Open", "Closed", with or without counter, to remove this query with a click?
i also like to remove the is:pr and is:issue and leave the sort:updated-desc:
the one click link under the search bar reset it to is:pr is:open if i am in PR :(
There is an useful UserScript for that: GitHub Latest.
Here's some untested code, probably 80% of the feature:
constcurrentQuery=newURLSearchParams(location.search).get('q')??select('#js-issues-search').value;for(constlinkofselect.all('open, close')){constlinkSearchParams=newURLSearchParams(link.search);constlinkQuery=linkSearchParams.get('q');if(linkQuery===currentQuery){linkSearchParams.set('q',linkQuery.replace(/is:open|is:closed/,'').trim())link.search=String(linkSearchParams);return;// The next link won't match this condition for sure}}
That sounds good, but the downside of this approach is that it is silent. You need to read changelog or stumble on this change by accident to know that now it's working.
That sounds good, but the downside of this approach is that it is silent. You need to read changelog or stumble on this change by accident to know that now it's working.
We have a lot of features like that. This specific feature can be replicated without buttons (i.e. just select and delete those 7 characters from the query) so it would make even more sense as "hidden" shortcut.
Adding a button for every feature (ours or GitHub’s) will just create a cluttered site.
clicking Open (or Closed) will removeis:open (or is:closed)
If this is implemented, I would suggest to alter the closed icon.
If you select an author, label or any other dropdown, it is checked with an ✔ (check).
Currently, the closed status has that same ✔ (check) icon. Which confuses me; is the closed status now checked or not?!
Maybe just removing both icons, and prepending the ✔ (check) icon when it is selected.
Interesting point, I wouldn't mind removing the icons altogether simply to reduce noise and add space for a possible is:merged toggle in the future (open / closed / merged)
Activity
muescha commentedon Nov 30, 2019
i also like to remove the
is:prandis:issueand leave thesort:updated-desc:the one click link under the search bar reset it to
is:pr is:openif i am in PR :(jerone commentedon Nov 30, 2019
@muescha commented on Nov 30, 2019, 1:58 AM GMT+1:
There is an useful UserScript for that: GitHub Latest.
fregante commentedon Nov 30, 2019
Also https://github.com/sindresorhus/show-all-github-issues or
fregante commentedon Nov 30, 2019
I think we can just replace the selected Open or Closed link:
In this case, the Open links to the same page you're on, which is useless.
On https://github.com/sindresorhus/refined-github/issues, the Open link should be replaced from:
to:
Here's some untested code, probably 80% of the feature:
rahgurung commentedon Dec 10, 2019
Open button will show all the queries this ways (which I don't felt intuitive), I think adding a all button is much better.
fregante commentedon Dec 10, 2019
freganteWhat happens? The
author:fregantefilter is removed.This is the same behavior I'm suggesting here: clicking Open (or Closed) will remove
is:open(oris:closed)Open/Closed are filters after all and all the filters in that list act exactly the same way: clicking a selected filter removes it.
mikhaelkh commentedon Dec 10, 2019
That sounds good, but the downside of this approach is that it is silent. You need to read changelog or stumble on this change by accident to know that now it's working.
fregante commentedon Dec 10, 2019
We have a lot of features like that. This specific feature can be replicated without buttons (i.e. just select and delete those 7 characters from the query) so it would make even more sense as "hidden" shortcut.
Adding a button for every feature (ours or GitHub’s) will just create a cluttered site.
jerone commentedon Dec 10, 2019
If this is implemented, I would suggest to alter the closed icon.
If you select an author, label or any other dropdown, it is checked with an ✔ (check).
Currently, the closed status has that same ✔ (check) icon. Which confuses me; is the closed status now checked or not?!
Maybe just removing both icons, and prepending the ✔ (check) icon when it is selected.
fregante commentedon Dec 11, 2019
Interesting point, I wouldn't mind removing the icons altogether simply to reduce noise and add space for a possible
is:mergedtoggle in the future (open / closed / merged)issuehunt-oss commentedon Jan 22, 2020
@fregante has funded $15.00 to this issue.
muescha commentedon Jan 30, 2020
i would suggest to have:
1,353 All | 80 Open | 1,273 Closedor
80 Open | 1,273 Closed | 1,353 Allissuehunt-oss commentedon Mar 31, 2020
@sindresorhus has rewarded $13.50 to @karlheitmann. See it on IssueHunt