summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 80d510d..233019b 100644
--- a/init.lua
+++ b/init.lua
@@ -90,6 +90,11 @@ function doc.add_entry_aliases(category_id, entry_id, aliases)
end
end
+-- Same as above, but only adds one alias
+function doc.add_entry_alias(category_id, entry_id, alias)
+ doc.data.categories[category_id].entry_aliases[alias] = entry_id
+end
+
--[[ Functions for internal use ]]
function doc.formspec_core(tab)