Skip to content

Configurable extension for Nautilus to copy path, URI, or name

License

Notifications You must be signed in to change notification settings

lucas-montes/nautilus-copy-path

 
 

Repository files navigation

Nautilus Copy Path/Name

ScreenShot

Installation

  1. yay -S nautilus-copy-path or yaourt -S nautilus-copy-path
  2. Restart the Nautilus (nautilus -q)

Manual installation

Install Dependencies

Fedora sudo dnf install nautilus-python python3-gobject

Ubuntu sudo apt install python3-nautilus python3-gi

Arch sudo pacman -S python-nautilus python-gobject

Download & Install the Extension

  1. git clone https://github.com/chr314/nautilus-copy-path.git

  2. cd nautilus-copy-path

  3. make install

  4. Restart the Nautilus (nautilus -q) if not seeing the options.

Uninstallation

  1. cd path/to/nautilus-copy-path

  2. make uninstall

  3. Restart the Nautilus (nautilus -q) if still seeing the options after uninstall.

Keyboard Shortcuts

Default Keyboard Shortcuts

Action Shortcut
Copy Paths Ctrl + Shift + C
Copy URIs Ctrl + Shift + U
Copy Names Ctrl + Shift + D

Configuration

configuration file: config.json

example:

{
  "items": {
    "path": true,
    "uri": true,
    "name": true
  },
  "selections": {
    "clipboard": true,
    "primary": true
  },
  "shortcuts": {
    "path": "<Ctrl><Shift>C",
    "uri": "<Ctrl><Shift>U",
    "name": "<Ctrl><Shift>D"
  },
  "language": "auto",
  "separator": ", ",
  "escape_value_items": false,
  "escape_value": false,
  "name_ignore_extension": false
}

Currently supported languages

  • Arabic
  • Chinese
  • Danish
  • English
  • Finnish
  • French
  • German
  • Greek
  • Italian
  • Japanese
  • Norwegian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Spanish
  • Swedish
  • Turkish
  • Vietnamese

Add new translations

Translations files are in translations directory

example: English Translation

  1. Copy the english translation file (en.json), the new file name must be the new language code (e.g. es.json)

  2. Translate the values in the new file

  3. Add information in the README in the section Currently supported languages about new language

  4. Create Pull Request with the new translation

About

Configurable extension for Nautilus to copy path, URI, or name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 89.8%
  • Makefile 10.2%