Skip to content

Rename file/directory option #329

@rjroy

Description

@rjroy

The FileTree should have a Rename option on files and directories.

It should open a dialog that allows entering the new name. The new name should be restricted to alphanumeric with - and _. This could mean the existing name could not be typed, but this keeps it in line with the rest of the vaults. For files, the extension must be preserved (a .png stays a .png).

Once confirmed:

  • The file should be renamed within the vault.
  • Then all references within *.md files should be updated. A reference can only be one of the following formats:
  • [[file-name]] - this flavor does not include the extension but could include the path [[vault/path/file-name]]
    • In this case changing it to just the new file name is valid
  • [Short](vault/path/file-name.md) this flavor should be the full vault path including extension.
    • In this case changing it to the new full path is valid. The extension should be preserved.
    • The short description text should not be edited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions