Skip to content
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

Closed
mogelbrod opened this issue Feb 22, 2023 · 3 comments
Closed

Open any file (by path) that exists in specific branch/ref #2515

mogelbrod opened this issue Feb 22, 2023 · 3 comments

Comments

@mogelbrod
Copy link
Contributor

mogelbrod commented Feb 22, 2023

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 the git show {ref}:{filePath} git command. The closest I've come with Gitlens is to use the gitlens.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!

@mogelbrod mogelbrod added feature New feature or request triage Needs to be looked at labels Feb 22, 2023
@mogelbrod 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
@mogelbrod
Copy link
Contributor Author

Found a similar issue after some extensive searching: #708

@eamodio
Copy link
Member

eamodio commented Mar 17, 2023

@mogelbrod I'm going to close this as a duplicate of #708 and agree this would be a useful feature

@eamodio eamodio closed this as completed Mar 17, 2023
@eamodio eamodio added duplicate and removed feature New feature or request triage Needs to be looked at labels Mar 17, 2023
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2023
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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants