Skip to content

Is there a way to make renaming a file start with no text other then the extension? #1079

Closed Locked Answered by sxyazi
SafriXV asked this question in 1. Q&A
Discussion options

You must be logged in to vote

You can bind a key for example R to do this:

{ on = [ "R" ], run = "rename --empty=stem --cursor=start" }

When you click R, it will empty the filename then move the cursor to start. See https://yazi-rs.github.io/docs/configuration/keymap#manager.rename for details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SafriXV
Comment options

Answer selected by SafriXV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants