copyclipboard
copyclipboard
is a command-line tool that allows you to copy the structure of a folder and the contents of specific file types to your clipboard. This can be especially useful when working with repositories and sharing the structure and code with others.
Installation
To install copyclipboard
, simply run:
pip install copyclipboard
Usage
Once installed, you can use the copyclipboard command in your terminal.
Copy All File Types
By default, the tool will copy the structure and contents of all files in your repository:
copyclipboard
Copy Specific File Types
You can specify the file types you want to copy using the --extensions option:
copyclipboard --extensions .py .yaml
This will also update your configuration file in ~/.copyclipboard_config with the specified extensions.
Manual Configuration
If you prefer, you can manually edit the configuration file located at ~/.copyclipboard_config
to specify which file types should be copied.