From 37ac0701d8de7677d4a54a4bcc69389044263701 Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Tue, 6 Dec 2022 11:52:29 +0000 Subject: [PATCH] Bring `arc-mode` bindings closer to defaults This commit changes the normal-mode binding for `C` to `archive-copy-file` (which extracts, or copies, the file under cursor to the filesystem) from `archive-chown-entry` (which changes the file owner), and adds a new binding for the latter on `O`. Understandably, `O` has a pre-existing meaning in Vi for normal mode, but is quite useless in `arc-mode`, since these buffers are declared read-only by default, and having them be read-write does nothing. The intention behind this commit providing a straightforward way for file extraction to happen in `arc-mode` under Evil, a (presumably) common operation. Additionally, these new bindings now mirror those used in Emacs for `arc-mode`, as well as Emacs and Evil bindings for `tar-mode`; these improvements are likely worth the user-facing change made. --- modes/arc-mode/evil-collection-arc-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modes/arc-mode/evil-collection-arc-mode.el b/modes/arc-mode/evil-collection-arc-mode.el index b49c43b..7392b37 100644 --- a/modes/arc-mode/evil-collection-arc-mode.el +++ b/modes/arc-mode/evil-collection-arc-mode.el @@ -58,9 +58,10 @@ "d" 'archive-flag-deleted "r" 'archive-rename-entry "x" 'archive-expunge + "C" 'archive-copy-file "M" 'archive-chmod-entry + "O" 'archive-chown-entry "P" 'archive-chgrp-entry - "C" 'archive-chown-entry ;; refresh "gr" 'revert-buffer