Skip to content

Rename Input Callback #1803

Open
@alex-courtis

Description

@alex-courtis

#1791 adds rename_root which presents the file without the absolute path, just the file name.

This is good UX and should also be applied to rename.

This change would be a break in existing functionality, however rename_full does provide most of the existing rename experience.

Change rename-file.lua fn to apply vim.fn.fnamemodify(node.absolute_path, ":t")) before presenting input.

Update: #1791 applies sane defaults, resolving the above, as well as adding configurable rename suggestion.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions