1
0

Make index page configurable

This commit is contained in:
Zef Hemel
2022-08-02 12:43:39 +02:00
parent b29b175b40
commit 7111fb6b1e
10 changed files with 81 additions and 25 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ functions:
command:
name: "Navigate: Home"
key: "Alt-h"
page: "index"
page: ""
# Hashtags
indexTags:
+2 -2
View File
@@ -101,7 +101,7 @@ export async function linkQueryProvider({
export async function deletePage() {
let pageName = await getCurrentPage();
console.log("Navigating to index page");
await navigate("index");
await navigate("");
console.log("Deleting page from space");
await deletePageSyscall(pageName);
}
@@ -201,7 +201,7 @@ export async function reindexCommand() {
// Completion
export async function pageComplete() {
let prefix = await matchBefore("\\[\\[[\\w\\s]*");
let prefix = await matchBefore("\\[\\[[^\\]]*");
if (!prefix) {
return null;
}