-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open any file (by path) that exists in specific branch/ref #2515
Comments
mogelbrod
changed the title
Open arbitrary file (path) in specific branch/ref
Open any file (by path) that exists in specific branch/ref
Feb 22, 2023
Found a similar issue after some extensive searching: #708 |
@mogelbrod I'm going to close this as a duplicate of #708 and agree this would be a useful feature |
eamodio
added
duplicate
and removed
feature
New feature or request
triage
Needs to be looked at
labels
Mar 17, 2023
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
mogelbrod
added a commit
to mogelbrod/vscode-gitlens
that referenced
this issue
Jul 23, 2023
mogelbrod
added a commit
to mogelbrod/vscode-gitlens
that referenced
this issue
Nov 16, 2023
mogelbrod
added a commit
to mogelbrod/vscode-gitlens
that referenced
this issue
Nov 29, 2023
mogelbrod
added a commit
to mogelbrod/vscode-gitlens
that referenced
this issue
Dec 16, 2023
mogelbrod
added a commit
to mogelbrod/vscode-gitlens
that referenced
this issue
Dec 30, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
Similarly to the issue Quickly show current file on other branch #646 I'm used to work in vim using the fugitive plugin to, amongst other things, easily open up a specific file in a specific branch using
:Gedit {ref}:{filePath}
. I'm guessing that this command is basically a proxy of thegit show {ref}:{filePath}
git command. The closest I've come with Gitlens is to use thegitlens.openFileRevisionFrom
/gitlens.openRevisionFile
commands, but they only seem to work with the active file and therefore appear unusable when one wants to open a file that doesn't currently exist in the working directory.Ideally there would be a command that first lets the user pick a branch/ref and then show a quickpick window with all files in the repository for that given ref (to allow for autocompletion/fuzzy matching). Upon selection it would then open the corresponding version of that file.
If there's interest for this from the maintainers I'd be happy to look into implementing a proof of concept.
Thanks in advance!
The text was updated successfully, but these errors were encountered: