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.
This commit is contained in:
Alex Palaistras 2022-12-06 11:52:29 +00:00 committed by Youmu
parent 9149caf4a9
commit 37ac0701d8
1 changed files with 2 additions and 1 deletions

View File

@ -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