]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/contrib/shortcuts/discussion.mdwn
web commit by VictorMoral
[ikiwiki.git] / doc / plugins / contrib / shortcuts / discussion.mdwn
1 Ah, this is something I've been meaning to look into adding for a while.
2
3 I think it might be a good idea to make the page that configures the
4 shortcuts be a regular page in the wiki, as was done with the smilies
5 plugin. Of course, it would need to avoid abuse since anyone could edit it
6 then (unless it were locked).
7
8 The other thing that I wondered as I looked at this is, why add a new
9 syntax for the shortcuts? It would be less complex, and probably easier to
10 implement if it used an existing syntax. The shortcuts could just use a
11 preprocessor directive:
12
13         \[[shortcut dbug 30303]]
14
15 If that's not short enough, it would be possible to register a preprocessor
16 directive per shortcut, yeilding this syntax:
17
18         \[[dbug 30303]]
19
20 Unless I'm missing something and a "walf expression" is something already
21 standard across wikis, this approach seems cleaner and easier to learn for
22 ikiwiki users.
23
24 --[[Joey]]
25
26 Update: I've added a "shortcut" plugin that works as described above.
27 --[[Joey]]
28
29 ----
30
31 Ops ! I'm late. Following your suggestions i'm rewriting my module and this morning it is functional. My apologies for don't reply. Should be discard my module ? 
32
33 --[[VictorMoral]]
34
35