Feature Request: Add option to "Copy File Name"

2 min read Original article ↗

I want to suggest adding a new option to "Copy File Name" ( along with its extension ).

Reasons for wanting this feature
I spend a lot of time searching through my codebase for references to a given file. Although there is an option to "Reveal in Finder" and then "Find File References" I want to be able to quickly copy just the file's name along with its file extension so that I can quickly paste that into other places like for example the search.

Other important use cases are - generally we name things semantically so often in the same folder we'll have a particular file name .tsx and a corresponding .scss. Allowing one to quickly copy the files name would enable the creation of a new file with the same name but a different extension easier.

I'm sure there are other use-cases I haven't thought but this is one thing that I face multiple times on a daily basis so I wanted to suggest adding it as a feature.

Where this feature should appear
Add an option in all file related context menus -
• Right click on file name in Sidebar tree view
• Right click on file tab name in main editor