Skip to content

feature request: move file/directory into new directory by renamingΒ #707

@DavidTelenko

Description

@DavidTelenko

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

When creating files we can write something like:

foo/bar/baz.txt

And it will create described tree πŸ”₯

foo
|>bar
  |>baz.txt

It would be awesome if we could do the same with already created files/directories

file.txt

Add foo/bar in front of the file.txt

foo/bar/file.txt

Result:

foo
|>bar
  |>file.txt

Unfortunately right now it just prints Filename cannot contain path separator in red virtual text 😒.

Provide background

There's obviously no sane way of adding path separators to filenames. So in the rename functionality of the plugin path separators can be just special cases which would just fallback to create+move behavior.

What is the significance of this feature?

strongly desired

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions