Setup:
Space should have page.md
, other.md
, image.png
and imageToMove.png
-
-
Save onespaceman/da4eaed2e6808e7342840c9f680ce84d to your computer and use it in GitHub Desktop.
- Simple rename -
page
tonewpage
- Rename with spaces -
newpage
topage with spaces
- To deeper folder -
page with spaces
tofolder/page
- To shallower folder -
folder/page
topage
-
- Batch rename -
page
tofolder/page
andother
tofolder/other
then prefix renamefolder/
tovery/deep/folder/
- Batch rename -
- Should link to
newpage
- Should link to
page with spaces
- Should link to
folder/page
- Should link to
page
- Should link to
very/deep/folder/page
[[page]] Wikilink to page [[page|Alias]] [[page@10]] Wikilink with position [[page@10|Alias]] [[page#MDLinks]] Wikilink with header [[page#MDLinks|Alias]] [[page$anchor]] Wikilink with anchor [[page$anchor|Alias]]
-
Should link to
/newpage
-
Should link to
/page with spaces
with <> brackets around the link -
Should link to
/folder/page
with no brackets -
Should link to
/page
-
Should link to
/very/deep/folder/page
Absolute to page Absolute with position Absolute with header Absolute with anchor -
Should link to
newpage
-
Should link to
page with spaces
with <> brackets around the link -
Should link to
folder/page
with no brackets -
Should link to
page
-
Should still link to
page
Relative to page Relative with position Relative with header Relative with anchor
- These links should never change [[image.png]] Wikilink to file [[image.png|Alias]] Absolute to file
1, 2, 3, 4. Should not change
5. Should change to ../../../image.png
Relative to file
- Should never change External link
- Simple rename -
page
tonewpage
- Rename with spaces -
newpage
topage with spaces
- To deeper folder -
page with spaces
tofolder/page
- To shallower folder -
folder/page
topage
- Batch rename -
page
tofolder/page
andother
tofolder/other
then prefix renamefolder/
tovery/deep/folder/
1, 2, 3, 4. These links should not change
5. Should link to very/deep/folder/other
[[other]] Wikilink to page
[[other|Alias]]
[[other@10]] Wikilink with position
[[other@10|Alias]]
[[other#MDLinks]] Wikilink with header
[[other#MDLinks|Alias]]
[[other$anchor]] Wikilink with anchor
[[other$anchor|Alias]]
1, 2, 3, 4. These links should not change
5. Should link to /very/deep/folder/other
Absolute to page
Absolute with position
Absolute with header
Absolute with anchor
1, 2. Should not change
3. Should change to ../other
4. Should change back to other
5. Should still link to other
Relative to page
Relative with position
Relative with header
Relative with anchor
- These links should never change [[image.png]] Wikilink to file [[image.png|Alias]] Absolute to file
1, 2. Should not change
3. Should change to ../image.png
4. Should change back to image.png
5. Should change to ../../../image.png
Relative to file
imageToMove.png is only linked to on this page. It should move along with this page
1, 2. Should not change
3. Should change to folder/imageToMove.png
and /folder/imageToMove.png
4. Should change back to imageToMove.png
and /imageToMove.png
5. Should change to very/deep/folder/imageToMove.png
and /very/deep/folder/imageToMove.png
[[imageToMove.png]]
Absolute to file
-
Should never change Relative to file
-
Should never change External link