You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you're trying to solve
The --cursor option for the rename command will use the same behavior for both regular files and directories. Eg. rename --cursor=before_ext will always put the cursor before the file extension.
This is annoying when renaming directories containing period characters as word separators, as the periods do not usually indicate an extension.
Would you be willing to contribute this feature?
Yes, I'll give it a shot
Describe the solution you'd like
Introduce before_file_ext value for --cursor. This will behave as end for directories, and before_ext for a non-directory file.
This might not be ideal, as a user cannot chose between end and start for directory renaming.
Perhaps a new --cursor-directory option can be added, but this seems over-involved.
If this can be resolved with a simple configuration tweak, such as overloading keybinds or creating a simple plugin, then that might be preferable.
Additional context
This might be a problem which is too niche to introduce new behavior for. If so, I am happy to abandon this issue in favor of a creating a custom plugin.
I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please file a new issue and complete the issue template so we can capture all the details necessary to investigate further.
yazi --debug
outputPlease describe the problem you're trying to solve
The
--cursor
option for therename
command will use the same behavior for both regular files and directories. Eg.rename --cursor=before_ext
will always put the cursor before the file extension.This is annoying when renaming directories containing period characters as word separators, as the periods do not usually indicate an extension.
Would you be willing to contribute this feature?
Describe the solution you'd like
Introduce
before_file_ext
value for--cursor
. This will behave asend
for directories, andbefore_ext
for a non-directory file.This might not be ideal, as a user cannot chose between
end
andstart
for directory renaming.Perhaps a new
--cursor-directory
option can be added, but this seems over-involved.If this can be resolved with a simple configuration tweak, such as overloading keybinds or creating a simple plugin, then that might be preferable.
Additional context
This might be a problem which is too niche to introduce new behavior for. If so, I am happy to abandon this issue in favor of a creating a custom plugin.
Checklist
The text was updated successfully, but these errors were encountered: