View/copy full path of file (Changes or History tab)
See original GitHub issueDescription
In history mode, view/copy complete file path if it’s longer than the given screenspace. View screenshot. Copying gives me src/main/webapp/WEB-INF/views/web/p…/manage.jsp
See #2801 for more context.
GitHub Desktop version: 0.9.1
OS version: 10.12.6
Actual behavior:
Reproduces how often: 100%
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
How to view or copy the full path of a folder or file. | Sony USA
Click the Start button and then click Computer, click to open the location of the desired folder, and then right-click to the right...
Read more >View a file's version history – Figma Help Center
Keep track of changes you've made to your files with version history. Explore a timeline of events dating back to the file's creation....
Read more >Making git diff --stat show full file path - Stack Overflow
On doing git diff --stat some files are listed with full path from repository base but some files are ...
Read more >Restore an earlier document version in Pages on Mac
View, copy, and restore an earlier version · Edit the current version: Click the thumbnail on the left, make your changes, then click...
Read more >AlternateStreamView - View/Copy/Delete NTFS Alternate Data ...
Fixed bug: AlternateStreamView didn't display alternate streams attached to the root folder of the search. Added 'Add Header Line To CSV/Tab-Delimited File' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @Amabel for running with @niik’s suggestion. Seems reasonable to me. I think the only change I’d recommend is to be a bit more explicit about what exactly is being copied just to make sure people don’t think this would copy the contents of the file somehow. In this case, I think “Copy File Path” would work with the same casing as the other things in the context menu. Feel free to go ahead and open a PR and we’ll address any additional feedback there.
Hey @artivilla. Our component for rendering file paths doesn’t, as you’ve noticed, rely on css to perform truncation. CSS currently only supports truncating text at the end whereas we really wanted a more intelligent truncation for paths where the beginning and end is usually the most important bits.
In this case I think we could add a context menu as well as a hotkey (Cmd/Ctrl+C) when focused on an item to copy the full path. I’ve added this to the design review project to get some more thoughts on this.