aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/cannot_preview_shortcuts.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-30 13:41:19 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-30 13:41:19 -0400
commit354d22e27b4d9cb8207e038de4f342545435d2c6 (patch)
tree748615018538b1672fd3784600b2b4ae3138f985 /doc/bugs/cannot_preview_shortcuts.mdwn
parent8f5723e1d572664ecac4d0aeed079ab3365719cc (diff)
downloadikiwiki-354d22e27b4d9cb8207e038de4f342545435d2c6.tar
ikiwiki-354d22e27b4d9cb8207e038de4f342545435d2c6.tar.gz
don't rely on plugin load order when determining generated directives
Instead, shortcuts will explicitly be marked as such when registered, and listdirectives can filter them out.
Diffstat (limited to 'doc/bugs/cannot_preview_shortcuts.mdwn')
-rw-r--r--doc/bugs/cannot_preview_shortcuts.mdwn7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/bugs/cannot_preview_shortcuts.mdwn b/doc/bugs/cannot_preview_shortcuts.mdwn
index 7c830898d..d7045b2dc 100644
--- a/doc/bugs/cannot_preview_shortcuts.mdwn
+++ b/doc/bugs/cannot_preview_shortcuts.mdwn
@@ -8,3 +8,10 @@ Shortcuts such as \[[!google foo]] do not work when previewing pages.
>> still works, but it relies on the fact that the `listdirectives` `checkconfig`
>> hook is called before the `shortcut` `checkconfig` hook.
>> -- [[Will]]
+
+>> The order plugins are loaded is effectively random. (`keys %hooks`).
+>> So I've made shortcuts pass a 'shortcut' parameter when registering
+>> them, which listdirectives can grep out of the full list of directives.
+>> That may not be the best name to give it, especially if other plugins
+>> generate directives too. Seemed better than forcing shortcut's
+>> checkconfig hook to run last tho. --[[Joey]]