Skip to content

Commit

Permalink
feat: add the --hovered option to the remove and rename commands (
Browse files Browse the repository at this point in the history
#82)

Co-authored-by: sxyazi <[email protected]>
  • Loading branch information
hankertrix and sxyazi authored Jun 28, 2024
1 parent 4f7c7e2 commit 61a7cb1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/configuration/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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.

Expand Down

0 comments on commit 61a7cb1

Please sign in to comment.