stevearc / oil.nvim

Neovim file explorer: edit your filesystem like a buffer
MIT License
3.36k stars 91 forks source link

feature request: Copy file name and path to clipboard #423

Closed shashankshetty1996 closed 1 week ago

shashankshetty1996 commented 2 weeks ago

Did you check existing requests?

Describe the feature

Overview:

Similar to the functionality available in popular IDEs like VSCode, implementing the option to copy file paths directly from the file explorer can greatly enhance user experience and productivity. This feature aims to provide users with the convenience of effortlessly copying the filename, absolute path, and relative path of a file for various use cases.

Detailed Functionality:

Benefits:

Implementation Details:

Provide background

What is the significance of this feature?

strongly desired

Additional details

No response

stevearc commented 2 weeks ago

There is some documentation at :help oil-actions about the built-in actions you can easily use as keymaps. Take a look at :help actions.yank_entry

shashankshetty1996 commented 1 week ago

Under :help oil-actions I found copy_entry_filename and copy_entry_path actions. Thanks for the update @stevearc