From 3b21635f7bf5a96afed74f5950220cd508b977b3 Mon Sep 17 00:00:00 2001 From: Christoforos Date: Wed, 20 Jul 2022 19:47:24 +0300 Subject: [PATCH] keyboard shortcuts --- README.md | 27 ++++++++++++++++++++++----- config.json | 2 +- nautilus_copy_path.py | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2dbc985..dfc576f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # Installation -## [AUR](https://aur.archlinux.org/packages/nautilus-copy-path/) +## [AUR](https://aur.archlinux.org/packages/nautilus-copy-path/) 1. `yay -S nautilus-copy-path` or `yaourt -S nautilus-copy-path` 2. Restart the Nautilus (`nautilus -q`) @@ -32,15 +32,27 @@ Arch `sudo pacman -S python-nautilus python-gobject` ## 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](config.json) example: + ```json { "items": { @@ -52,6 +64,11 @@ example: "clipboard": true, "primary": true }, + "shortcuts": { + "path": "C", + "uri": "U", + "name": "D" + }, "language": "auto", "separator": ", ", "escape_value_items": false, @@ -59,8 +76,8 @@ example: } ``` +## Currently supported languages -## Currently supported languages - Arabic - Chinese - Danish @@ -90,6 +107,6 @@ example: [English Translation](translations/en.json) 2. Translate the values in the new file -3. Add information in the README in the section *Currently supported languages* about new language +3. Add information in the README in the section *Currently supported languages* about new language 3. Create Pull Request with the new translation diff --git a/config.json b/config.json index 79f287c..08edd76 100644 --- a/config.json +++ b/config.json @@ -11,7 +11,7 @@ "shortcuts": { "path": "C", "uri": "U", - "name": "N" + "name": "D" }, "language": "auto", "separator": ", ", diff --git a/nautilus_copy_path.py b/nautilus_copy_path.py index bc5213a..8656542 100644 --- a/nautilus_copy_path.py +++ b/nautilus_copy_path.py @@ -28,7 +28,7 @@ def __init__(self): "shortcuts": { "path": "C", "uri": "U", - "name": "N" + "name": "D" }, "language": "auto", "separator": ", ",