[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64531: [PATCH] Add new command vc-dir-copy-filename-as-kill
From: |
Eli Zaretskii |
Subject: |
bug#64531: [PATCH] Add new command vc-dir-copy-filename-as-kill |
Date: |
Sat, 08 Jul 2023 12:25:13 +0300 |
> From: Ivan Sokolov <ivan-p-sokolov@ya.ru>
> Date: Sat, 08 Jul 2023 10:51:53 +0300
>
> This new command is inspired by `dired-copy-filename-as-kill', but has a
> few differences, that can be easily reversed if there is such need.
>
> Changes:
> 1. even single filename is quoted;
> 2. filenames are relative by default, prefix makes them absolute;
> 3. value of prefix argument does not matter, in dired it has to be 0.
>
> I bound it to the `w' key because `w' is currently unbound in
> vc-dir-mode-map and it is what is used in dired.
Thanks. However, new commands should be called out in NEWS, and
commands that are important enough should also be mentioned in the
user manual.
> +(defun vc-dir-copy-filename-as-kill (&optional absolutep)
> + "Copy names of marked files (or file under cursor) into the kill ring.
This sentence is too general: it doesn't mention VC Dir, although
AFAIU it is specific to vc-dir.