Does the search user.rb in:path do what you want to do? Alternatively there is also this search filename:user.rb

Found on: https://help.github.com/articles/searching-code/

Answer from Orangenhain on Stack Overflow
🌐
HackerNoon
hackernoon.com › a-quick-shortcut-for-quickly-navigating-in-github-repositories-8874200c4f65
A quick shortcut for quickly navigating in Github repositories | HackerNoon
April 1, 2018 - If you go to a GitHub repository and press T in your keyboard, you can then start typing the name of the file that you want to open. This way you are able to go to specific files as fast as your typing rather than having to go to that particular ...
Discussions

How to CTRL-F within a repository?
You have several options. Search Box (top left) Click it Press s Via Command Line (CTRL/CMD + K) "Go to file"-button More on reddit.com
🌐 r/github
2
3
December 2, 2022
Keyboard shortcut to commit new file on Github

Maybe this will help.

It seems to only work when the summary or field description is active

https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/overview/keyboard-shortcuts

More on reddit.com
🌐 r/learnprogramming
1
1
September 8, 2021
How to recover/reset github recovery codes.
Instructions for recovering your account can be found here. https://help.github.com/en/github/authenticating-to-github/recovering-your-account-if-you-lose-your-2fa-credentials More on reddit.com
🌐 r/github
1
2
January 28, 2020
Roms Megathread 4.0 HTML Edition 2021
pokemon links on this dont work More on reddit.com
🌐 r/Roms
5195
14745
March 15, 2021
🌐
Our Code World
ourcodeworld.com › articles › read › 398 › keyboard-shortcuts-for-github-that-you-probably-didn-t-know-existed
Keyboard shortcuts for Github that you probably didn't know existed | Our Code World
February 20, 2017 - If you press the T key, you will open the file finder that allows you to search a file by its name in the source code of the repository. If you press the L key, you will open the go to line menu.
🌐
Sara Ford's Blog
saraford.net › 2017 › 01 › 12 › how-to-open-a-file-by-typing-the-file-name-directly-from-the-github-repo-page-012
How to open a file by typing the file name directly from the GitHub repo page – 012
January 5, 2017 - Notice how in the previous image all I had to type was “main” and the file finder found three files using partial matching. I didn’t have to specify which folder these files resided in. The search was exhaustive throughout the repo. To recap, to search for a file via the keyboard, press the letter ‘t’ and then start typing the name of your file.
🌐
GitHub
docs.github.com › en › get-started › accessibility › keyboard-shortcuts
Keyboard shortcuts - GitHub Docs
For more keyboard shortcuts, see the CodeMirror documentation. If you view a code file in a repository using the Code view and click on any line in the file, you will see a cursor.
🌐
Test Double
testdouble.com › home › insights › github shortcut commands that’ll speed up your code reviews
GitHub shortcut commands that’ll speed up your code reviews
May 6, 2025 - Ross Brandes brought up one of the most time-saving features GitHub has to offer. Press t to open up a file search window. Just start typing and GitHub instantly filters the repo’s file tree to find exactly what you need.
🌐
GitHub
github.blog › home › news & insights › the library › introducing the file finder
Introducing the File Finder - The GitHub Blog
December 17, 2019 - These days, though, I find myself reading most new code in my browser on GitHub. And I really miss cmd-T. So, I did the only thing that made sense: I added cmd-T to GitHub. Try it out: just hit t on any repo’s file or directory view.
🌐
UseTheKeyboard
usethekeyboard.com › github
Keyboard shortcuts for Github → UseTheKeyboard
A visual cheat-sheet for the 80 keyboard shortcuts found on Github.com
Find elsewhere
🌐
Keycombiner
keycombiner.com › collections › github
GitHub Keyboard Shortcuts
A list of keyboard shortcuts for GitHub. Search and filter shortcuts to find what will speed up your workflow. See all combinations mapped onto a virtual keyboard. Add these shortcuts to your personal collections to build your knowledge base.
🌐
Greasy Fork
greasyfork.org › en › scripts › 17504-find-file-shortcut-github
Find File Shortcut (GitHub)
February 28, 2016 - Adds a keyboard shortcut to use GitHub's find file feature
🌐
GitHub
docs.github.com › en › enterprise › 2.15 › user › articles › finding-files-on-github
Finding files on GitHub - GitHub Help
You can also open the file finder by pressing t on your keyboard. For more information, see "Keyboard shortcuts."
🌐
GitHub
github.com › orgs › community › discussions › 4687
Shortcut key (`CTRL + ;`) for jumping to "Go to file"? · community · Discussion #4687
I use Visual Studio a lot, where CTRL + ; is a shortcut key for jumping to find a file by name. I wonder if, when opening a repository, that same shortcut could switch me straight into the "Go to file" view, i.e. just click the button.
🌐
GitHub
docs.github.com › en › free-pro-team@latest › github › searching-for-information-on-github › finding-files-on-github
Finding files on GitHub - GitHub Docs
In the “Go to file” search bar, type the name of the file or directory you'd like to find. Alternatively, if there is no "Go to file" search bar, click Go to file, then type the name of the file or directory you'd like to find.
🌐
Jimmydc
blog.jimmydc.com › github-keyboard-shortcuts
Github Keyboard Shortcuts - Swashbuckling with Code
Just a quick tip here that most programmers I meet haven’t seen before so I thought it’d be cool to share. Github has a handy little reminder of keyboard shortcuts if you type ”?“. But that isn’t even the coolest part. If you press ”t” while in a repository, it opens up the file ...
🌐
Greasy Fork
greasyfork.org › en › scripts › 17504-find-file-shortcut-github › code
Find File Shortcut (GitHub) - Source code
// ==UserScript== // @name Find File Shortcut (GitHub) // @namespace chriskim06 // @description Adds a keyboard shortcut to use GitHub's find file feature // @include https://github.com/*/* // @version 1.6 // @grant none // @locale en // ==/UserScript== document.querySelector('html').addEventListener('keydown', function(e) { if (e.shiftKey && e.which === 80 && e.target.nodeName !== 'INPUT') { var url = window.location.href.match(/(https:\/\/github\.com\/[A-Za-z0-9_-]+\/[A-Za-z0-9_-]+)/); if (url) { var branchMenu = document.getElementsByClassName('btn btn-sm select-menu-button js-menu-target css-truncate')[0]; if (branchMenu) { var branch = branchMenu.getElementsByClassName('js-select-button css-truncate-target')[0]; if (branch) { window.location.href = url[1] + '/find/' + branch.innerHTML; } } } } });
🌐
Today I Learned
til.hashrocket.com › posts › 00ggnd36j8-search-github-faster-with-shortcuts
Search Github Faster with Shortcuts - Today I Learned
November 7, 2017 - Now Github has a projects tab on each repository. Ever the completist, here's the shortcut for that tab: gb.
🌐
GitHub
gist.github.com › 5351933
Shortcuts · GitHub - Gist
Shortcuts. GitHub Gist: instantly share code, notes, and snippets.
🌐
DEV Community
dev.to › github › how-to-navigate-the-github-web-without-a-mouse-3enf
How to navigate the GitHub web without a mouse - DEV Community
February 23, 2022 - The Command Palette is designed to make it easy for you to navigate GitHub, search, and run commands:
🌐
MakeUseOf
makeuseof.com › home › programming › github keyboard shortcuts cheat sheet for windows and mac
GitHub Keyboard Shortcuts Cheat Sheet for Windows and Mac
June 24, 2021 - When using GitHub for programming, make use of these keyboard shortcuts for Windows and Mac, available in a free PDF.