-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow opening file instead of diff #1651
Comments
This is the default behavior for Gitscope on IntellliJ, and I find it to be incredibly helpful there. It lets me use the current list of diffs from the main branch as a workspace that contains only the files I'm working on for the current change. With the need to click on a small icon to open the file instead of the diff, it makes me think about opening a file more carefully, and slows me down. |
Sounds like a good enhancement. Thanks! |
The VSCode git extension has an option called "git.openDiffOnClick" that does exactly what this feature request describes. It would be nice if GitLens had this too. |
@marcoapcaldas No, because it's about the default: both the diff and the file icons are available, but the diff is the default when you click on it, and I'd much prefer it be the file. I'm constantly accidentally opening the diff window, immediately closing it, and then having to focus to click the tiny file icon, which takes me out of my flow. |
I'm trying to find which files I should work on to make this feature, but I hadn't sucess. Could you give me some tips @eamodio ? |
Given that the old PR is more than a year old, I have submitted another PR to fix this issue #3583 |
When clicking on the filename in "Search & Compare", it opens a diff by default. To open the file itself one needs to right-click and select "Open File". Would be nice to have a setting to open files by default. This is similar to microsoft/vscode#36885, but for GitLens panels.
The text was updated successfully, but these errors were encountered: