Skip to content

Commit

Permalink
keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
chr314 committed Jul 20, 2022
1 parent d5c6cc9 commit 3b21635
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down Expand Up @@ -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": {
Expand All @@ -52,15 +64,20 @@ example:
"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
}
```

## Currently supported languages

## Currently supported languages
- Arabic
- Chinese
- Danish
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"shortcuts": {
"path": "<Ctrl><Shift>C",
"uri": "<Ctrl><Shift>U",
"name": "<Ctrl><Shift>N"
"name": "<Ctrl><Shift>D"
},
"language": "auto",
"separator": ", ",
Expand Down
2 changes: 1 addition & 1 deletion nautilus_copy_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self):
"shortcuts": {
"path": "<Ctrl><Shift>C",
"uri": "<Ctrl><Shift>U",
"name": "<Ctrl><Shift>N"
"name": "<Ctrl><Shift>D"
},
"language": "auto",
"separator": ", ",
Expand Down

0 comments on commit 3b21635

Please sign in to comment.