sindresorhus/refined-github

Add a Go to file button on forks #4459

kidonng posted onGitHub

<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a REAL URL where the feature should appear. e.g. Do you want a feature to appear on the main page of a repo? Paste a link to a repo -->

I don't know why, but apparently GitHub doesn't provide the Go to file button on forks (and the shortcut won't work either, unless with Refined GitHub), even though the feature is actually available.

Example: https://github.com/zen-kernel/zen-kernel


We could… but <kbd>t</kbd> already works

posted by fregante almost 4 years ago

But we can do better than the status quo. Sure t works, but that's only for those who know the shortcut. And people may be mislead into thinking that it doesn't work because there's no Go to file button on the page.

posted by kidonng almost 4 years ago

I imagine this can be part of repo-wide-file-finder.

  • find a file tree toolbar
    • if there's already a find file button, do nothing (improvement over current implementation)
    • else add the button (this issue)
  • if no file tree toolbar we append a hidden find file button with the hotkey (same as current implementation)
posted by kidonng over 3 years ago
  • if there's already a find file button, do nothing (improvement over current implementation)

How is it an improvement? I think that if a data-hotkey element already exists it's already excluded

posted by fregante over 3 years ago

How is it an improvement? I think that if a data-hotkey element already exists it's already excluded

My bad, I didn't saw the exclude.

But I think the button on forks is back, it may be a GitHub issue, so closing.

(Should have provided a screenshot when opening the issue though...)

Screen Shot 2021-08-05 at 21 11 25

posted by kidonng over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests