From c572eb4ac69adaefbe6d6c2a82fcfc200aad423d Mon Sep 17 00:00:00 2001 From: toonn Date: Sat, 24 Jul 2021 18:38:04 +0200 Subject: commands: Change precedence of clipboard managers `wl-copy` used to take precedence over `xclip` and `xsel` but this can cause problems. So let's try the other way around, maybe Wayland users are less likely to have `xclip` and `xsel` installed than the other way around. Fixes #1861 --- ranger/config/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 0b61b6e4..301f97de 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1968,7 +1968,7 @@ class yank(Command): ['pbcopy'], ], } - ordered_managers = ['pbcopy', 'wl-copy', 'xclip', 'xsel'] + ordered_managers = ['pbcopy', 'xclip', 'xsel', 'wl-copy'] executables = get_executables() for manager in ordered_managers: if manager in executables: -- cgit 1.4.1-2-gfad0 From 733b6e4ea94a0045e5d163109d758eb2b37391c0 Mon Sep 17 00:00:00 2001 From: toonn Date: Sat, 24 Jul 2021 18:49:50 +0200 Subject: commands: Yank, add missing mode to docstring --- ranger/config/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 301f97de..2076dea3 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1933,7 +1933,7 @@ class linemode(default_linemode): class yank(Command): - """:yank [name|dir|path] + """:yank [name|dir|path|name_without_extension] Copies the file's name (default), directory or path into both the primary X selection and the clipboard. -- cgit 1.4.1-2-gfad0