From 61a7cb17b7a259865cebe7284ed906d035b03b2f Mon Sep 17 00:00:00 2001 From: hankertrix <91734413+hankertrix@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:50:35 +0800 Subject: [PATCH] feat: add the `--hovered` option to the `remove` and `rename` commands (#82) Co-authored-by: sxyazi --- docs/configuration/keymap.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/configuration/keymap.md b/docs/configuration/keymap.md index 22688b97..119604c2 100644 --- a/docs/configuration/keymap.md +++ b/docs/configuration/keymap.md @@ -232,6 +232,7 @@ In the Android platform, you can only use it with the `--permanently` option, si | --------------- | -------------------------------------------------------------------- | | `--force` | Don't show the confirmation dialog, and trash/delete files directly. | | `--permanently` | Permanently delete the files. | +| `--hovered` | Always remove the hovered file regardless of the selection state. | ### `create` {#manager.create} @@ -245,16 +246,17 @@ Create a file or directory. Ends with `/` (Unix) or `\` (Windows) for directorie Rename a file or directory, or bulk rename if multiple files are selected (`$EDITOR` is used to edit the filenames by default). +- `--hovered`: Always rename the hovered file regardless of the selection state. - `--force`: Overwrite the destination file directly if it exists, without showing the confirmation dialog. -- `--cursor`: Specify the cursor position of the renaming input box. - - `"end"`: The end of the filename. - - `"start"`: The start of the filename. - - `"before_ext"`: Before the extension of the filename. - `--empty`: Empty a part of the filename. - `"stem"`: Empty the stem. e.g. `"foo.jpg"` -> `".jpg"`. - `"ext"`: Empty the extension. e.g. `"foo.jpg"` -> `"foo."`. - `"dot_ext"`: Empty the dot and extension. e.g. `"foo.jpg"` -> `"foo"`. - `"all"`: Empty the whole filename. e.g. `"foo.jpg"` -> `""`. +- `--cursor`: Specify the cursor position of the renaming input box. + - `"end"`: The end of the filename. + - `"start"`: The start of the filename. + - `"before_ext"`: Before the extension of the filename. You can also use `--cursor` with `--empty`, for example, `rename --empty=stem --cursor=start` will empty the file's stem, and move the cursor to the start.