Skip to content

WikiPageRename does not update links in non-root directory files #170

@digital-carver

Description

@digital-carver

Description

Running :WikiPageRename on a file changes its name and links to it from files in the wikiroot directory, but doesn't seem to update links in files in any subdirectories of it.

MWE

With:

❯ tree testwiki
testwiki
├── index.md
└── subf
    ├── File.md
    └── things.md

where testwiki/index.md contains a line [subFile](subf/File.md), and testwiki/subf/things.md contains a line [File](File.md).

  1. Run :WikiPageRename on File.md
  2. Choose the new name as NewFile

Expected:
Both lines are changed to link to NewFile.md now.

Actual result:
The file is renamed correctly and the line in testwiki/index.md changes to [subFile](subf/NewFile.md), but the line in testwiki/subf/things.md doesn't change.

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