-
Notifications
You must be signed in to change notification settings - Fork 30.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
Improve diff editor title when comparing files #4144
Comments
I thought about replacing the path with something shorter if it is actually a substring of the tmp path (e.g. $tmp/). |
@joaomoreno we used to have what you suggest and I always felt it was hard to read what exactly is being compared so I chose the easiest thing that could possibly work and just show 2 full paths. the issue here is the ugly tmp path, I did not hear complaints otherwise. |
Nah, how do you think I got so many points on SO: http://stackoverflow.com/questions/30139597/visual-studio-code-is-there-a-compare-feature-like-that-plugin-for-notepad ;) |
I still think in any case it would help to replace the long tmp path with something short. |
Examples where imho it does not work: Comparing a workspace local file to out of workspace Comparing root level file to other file @stevencl @bgashler1 maybe you have some ideas |
@joaomoreno I also think in your case it makes no sense to show xyz_monkey.txt, I think it would make more sense to allow for the --diff parameter to set a label for the left hand side so that the context from where this file is from becomes clear (e.g. the commit hash or message). |
+1 on labels, git even supports that such that it would appear as |
Closing in favour of #4452 |
Related to #3954
Maybe we could use the subtitle part to show the folders, like:
tK4ZY9_monkey.txt ↔ monkey.txt - /private/var/folders/lr/b36df5dx0y7cy_mywg5r623800000gn/T, /Users/joao/Work/fakeproject
The text was updated successfully, but these errors were encountered: