;; -*- coding: utf-8; -*- 2023-09-24 emacs 29, vc-dir-mode keys. HHHH--------------------------------------------------- Major mode for VC directory buffers. Marking/Unmarking key bindings and actions: m - mark a file/directory - if the region is active, mark all the files in region. Restrictions: - a file cannot be marked if any parent directory is marked - a directory cannot be marked if any child file or directory is marked u - unmark a file/directory - if the region is active, unmark all the files in region. M - if the cursor is on a file: mark all the files with the same state as the current file - if the cursor is on a directory: mark all child files - with a prefix argument: mark all files U - if the cursor is on a file: unmark all the files with the same state as the current file - if the cursor is on a directory: unmark all child files - with a prefix argument: unmark all files VC commands VC commands in the C-x v prefix can be used. VC commands act on the marked entries. If nothing is marked, VC commands act on the current entry. Search and Replace S - searches the marked files Q - does a query replace on the marked files M-s a C-s - does an isearch on the marked files M-s a C-M-s - does a regexp isearch on the marked files If nothing is marked, these commands act on the current entry. When a directory is current or marked, the Search and Replace commands act on the child files of that directory that are displayed in the *vc-dir* buffer. Key Binding TAB vc-dir-next-directory C-k vc-dir-kill-line RET vc-dir-find-file C-o vc-dir-display-file SPC vc-dir-next-line + vc-pull - negative-argument 0 .. 9 digit-argument < beginning-of-buffer = vc-diff > end-of-buffer ? describe-mode D vc-root-diff G vc-dir-ignore I vc-log-incoming L vc-print-root-log M vc-dir-mark-all-files O vc-log-outgoing P vc-push Q vc-dir-query-replace-regexp S vc-dir-search U vc-dir-unmark-all-files d vc-dir-clean-files e .. f vc-dir-find-file g revert-buffer h describe-mode i vc-register l vc-print-log m vc-dir-mark n vc-dir-next-line o vc-dir-find-file-other-window p vc-dir-previous-line q quit-window u vc-dir-unmark v vc-next-action x vc-dir-hide-up-to-date DEL vc-dir-unmark-file-up S-SPC vc-dir-previous-line C- vc-dir-next-directory C- vc-dir-previous-directory vc-dir-previous-directory vc-dir-menu mouse-face * % vc-dir-mark-by-regexp * r vc-dir-mark-registered-files % m vc-dir-mark-by-regexp b c vc-create-branch b l vc-print-branch-log b s vc-switch-branch C-c C-c vc-dir-kill-dir-status-process M-{ vc-dir-previous-directory M-} vc-dir-next-directory M-DEL vc-dir-unmark-all-files M-s a C-s vc-dir-isearch M-s a C-M-s vc-dir-isearch-regexp