Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eucaue/nautilus-extension-copy-file-contents
🚀 Nautilus Copy File Contents - A simple extension for Nautilus that lets you quickly copy the contents of a text file with one click. =D
https://github.com/eucaue/nautilus-extension-copy-file-contents
gtk nautilus nautilus-extension nautilus-python python
Last synced: 14 days ago
JSON representation
🚀 Nautilus Copy File Contents - A simple extension for Nautilus that lets you quickly copy the contents of a text file with one click. =D
- Host: GitHub
- URL: https://github.com/eucaue/nautilus-extension-copy-file-contents
- Owner: EuCaue
- License: gpl-3.0
- Created: 2024-10-20T01:56:06.000Z (25 days ago)
- Default Branch: master
- Last Pushed: 2024-10-30T18:03:59.000Z (14 days ago)
- Last Synced: 2024-10-30T19:18:29.738Z (14 days ago)
- Topics: gtk, nautilus, nautilus-extension, nautilus-python, python
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Nautilus Extension: Copy File Contents
Easily copy the contents of a text file! 😄
![Screenshot showing the option in the right-click menu](https://github.com/user-attachments/assets/7fb749a3-25ee-4eae-b644-00c07510c11d)## Why?
I often needed to copy the content of a file, and using the "preview" with
SPACE to copy it wasn’t the best for me. So, I decided to create
this small project to streamline the process and also learn more about
developing Nautilus extensions! 🚀## Dependencies
You'll need to install [nautilus-python](https://gitlab.gnome.org/GNOME/nautilus-python) for your distribution. 🙂
Optionally, for more advanced file type detection you may install [python-magic](https://github.com/ahupp/python-magic).
## Installation
```bash
make install
```or manually:
```bash
cp ./src/nautilus_copy_file_contents.py $HOME/.local/share/nautilus-python/extensions/
```## Uninstallation
```bash
make uninstall
```or manually:
```bash
rm $HOME/.local/share/nautilus-python/extensions/nautilus_copy_file_contents.py
```## Development/Debugging
To install the latest version, close all Nautilus instances and reopen it! 😄
```bash
export NAUTILUS_PYTHON_DEBUG=misc
make install && nautilus -q
nautilus
```Contributions are welcome! :heart: