feat: rename a page will rename corresponding namespace pages and files (#2283)

* feat: rename a page will rename corresponding namespace pages

and files.

* enhance: jump to namespace page instead of the [[page]] itself

* namespace: create prefix ns pages instead of pages themselve

* fix: only rename files when namespace prefix matches
This commit is contained in:
Tienson Qin
2021-06-28 22:15:01 +08:00
committed by GitHub
parent b5f63d0d4b
commit e43cf125f6
11 changed files with 97 additions and 22 deletions

View File

@@ -278,7 +278,7 @@
(not (string/starts-with? p "../"))
(not (string/starts-with? p "./"))
(not (string/starts-with? p "http")))
(string/split p #"/")))
(util/split-namespace-pages p)))
refs)
(remove string/blank?))
refs (->> (distinct (concat refs children-pages))