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
Copy button doesn't show (and other file-related features) #3945
This issue is very complex. Basically any time you navigate from a file selection any feature that needs to run does not.
This includes not just features that are within the file box. Even fork-to is affected.
I don’t think so, that area is not updated when navigating the files, so the RG changes aren't lost nor do they need to be re-applied.
This issue is very complex
This issue just means that we can't rely on has-rgh to deduplicate our features. Fixing this would mean making features.add aware of which features need to be run on filelists as well and having their own filelist-has-rgh file.
I think it's easier to just use per-feature checks on filelist features, as described in #3968 (comment)
I'm afraid we'll have to drop has-rgh, or at least figure out how many features are affected by this bug.
As a temporary solution, once again, my suggestion still works. The alternative (dropping has-rgh) would mean that, if we forget to handle deduplication, we'll end up with duplicates. Whereas in the current situation, if we don't catch these issues, the features just silently fail. I prefer the latter, probably. 🤷♂️
navigation through Octotree does pair nicely with Refined GitHub
+1
I've been using the paid version of Octotree for a few months now, and it works great. RGH features are correctly enabled whenever navigating between files, there's no need to reload the page.
Afaik it seems to use the native GH navigation (or at least some kind of AJAX navigation) because the page is never fully reloaded.
I think I know why it works with octotree: they load the whole page as GitHub used to do before. The issue here doesn’t apply because GitHub replaces part of the page, leaving has-rgh untouched.
@yakov116 that’s an interesting solution, which basically standardizes what we already do manually inside init in some cases.
Either way I’d like this issue fixed before the next release, so if no one opens a PR with their solution I will
Yeah, either one could work. It could even be merged with the existing deduplication key: deduplicate: 'selector' for your suggestion and deduplicate: true for the current behavior (equivalent to deduplicate: 'has-rgh')
onetimecould also be merged into the same property if it makes sense, since it's also used to avoid running multiple times, but naming the option might be tough. Maybe:
Activity
fregante commentedon Feb 5, 2021
I found this too. It appears after a refresh. It probably has something to do with Ajax navigation
yakov116 commentedon Feb 16, 2021
This issue is very complex. Basically any time you navigate from a file selection any feature that needs to run does not.
This includes not just features that are within the file box. Even
fork-tois affected.fregante commentedon Feb 21, 2021
I don’t think so, that area is not updated when navigating the files, so the RG changes aren't lost nor do they need to be re-applied.
This issue just means that we can't rely on
has-rghto deduplicate our features. Fixing this would mean makingfeatures.addaware of which features need to be run on filelists as well and having their ownfilelist-has-rghfile.I think it's easier to just use per-feature checks on filelist features, as described in #3968 (comment)
fregante commentedon Feb 21, 2021
These comments will also have to be dropped as part of this PR
https://github.com/sindresorhus/refined-github/blob/61bfebbb2be4007c4b9a89b1e4c6cacea5123c31/source/features/download-folder-button.tsx#L42
https://github.com/sindresorhus/refined-github/blob/61bfebbb2be4007c4b9a89b1e4c6cacea5123c31/source/features/download-folder-button.tsx#L25
yakov116 commentedon Feb 21, 2021
When going to a single file fork-to is supposed to link to the file on the fork. (Maybe I am mixing up feature nanes)
fregante commentedon Feb 22, 2021
Ah crap, you may be right. The URL isn't updated.
It appears that the issue affects every feature on files and filelists. Another example:
forkedtorgh-feature-descriptionsenabled 😕I'm afraid we'll have to drop
has-rgh, or at least figure out how many features are affected by this bug.As a temporary solution, once again, my suggestion still works. The alternative (dropping
has-rgh) would mean that, if we forget to handle deduplication, we'll end up with duplicates. Whereas in the current situation, if we don't catch these issues, the features just silently fail. I prefer the latter, probably. 🤷♂️kidonng commentedon Apr 3, 2021
Just FYI, navigation through Octotree does pair nicely with Refined GitHub (sadly they are closed source now, so it doesn't help much).
3 remaining items
cheap-glitch commentedon Apr 5, 2021
+1
I've been using the paid version of Octotree for a few months now, and it works great. RGH features are correctly enabled whenever navigating between files, there's no need to reload the page.
Afaik it seems to use the native GH navigation (or at least some kind of AJAX navigation) because the page is never fully reloaded.
yakov116 commentedon Apr 5, 2021
I have never used octo but am I correct they only need to monitor the tree part of github? We need to monitor the whole page.
What about about we add a config called
repeatWhereNotExist: 'selector here'and do a select.exists on run?I know this is a bit manual but it can work until we find a good solution.
kidonng commentedon Apr 7, 2021
If you are referring to ovity/octotree#490, that has been fixed a long time ago.
It certainly does, but we won't know exactly how now 🤷♀️
fregante commentedon Apr 8, 2021
I think I know why it works with octotree: they load the whole page as GitHub used to do before. The issue here doesn’t apply because GitHub replaces part of the page, leaving
has-rghuntouched.@yakov116 that’s an interesting solution, which basically standardizes what we already do manually inside init in some cases.
Either way I’d like this issue fixed before the next release, so if no one opens a PR with their solution I will
yakov116 commentedon Apr 8, 2021
Exactly my thought.
Do you like my idea? or do you want another idea.
fregante commentedon Apr 9, 2021
Yeah, either one could work. It could even be merged with the existing deduplication key:
deduplicate: 'selector'for your suggestion anddeduplicate: truefor the current behavior (equivalent todeduplicate: 'has-rgh')yakov116 commentedon Apr 9, 2021
I want to finish up my other PR(s) so your free to take this. If not I can try sometime next week.
fregante commentedon Apr 9, 2021
onetimecould also be merged into the same property if it makes sense, since it's also used to avoid running multiple times, but naming the option might be tough. Maybe:yakov116 commentedon Apr 11, 2021
What about
https://github.com/softvar/enhanced-github/blob/master/src/background.js
fregante commentedon Apr 12, 2021
There's no deduplication there, they're just tracking the URL in an unnecessarily-complex way (we do the same by just listening to
pjax:end)fregante commentedon May 28, 2021
show-whitespaceseems to be missing too