summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rename.pm
AgeCommit message (Collapse)Author
2010-02-12add section informationJoey Hess
2009-12-14rename: Fix some utf-8 problems.Joey Hess
The crux of the problem is that the cgi object has raw values not converted to utf-8, and rename was using its fields. Also fixed a missed place where the form object did not get its fields utf-8 encoded.
2009-07-20remove prototype from renamehookJoey Hess
Recursive calls make perl whine about protypes, and it wasn't adding any value.
2009-06-06Merge commit 'upstream/master' into pub/pointrigeri
Conflicts: debian/changelog debian/control Signed-off-by: intrigeri <intrigeri@boum.org>
2009-05-21support longname for page types in commands and renameJoey Hess
Also, sort the list of page types.
2009-03-27no need to use CORE::rename since I renamed the rename functionJoey Hess
2009-03-27rename function for clarity, formatting improvementsJoey Hess
2009-03-27simplifiyJoey Hess
2009-03-27move dedup code into function, simplifyJoey Hess
2009-03-08rename: remove duplicates that hook functions may have added to @torenameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08rename: moved subpages addition to a rename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08rename hook: run once per file to be renamedintrigeri
... as Joey suggested on todo/need_global_renamepage_hook This hook is applied recursively to returned additional rename hashes, so that it handles the case where two plugins use the hook: plugin A would see when plugin B adds a new file to be renamed. The full set of rename hashes can no longer be changed by hook functions, that are only allowed to return any additional rename hashes it wants to add. Rationale: the correct behavior of the recursion would be hard, if not impossible, to define, if already considered pages were changing on the run. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27rename hook: instead of modifying the passed-by-name array, return a copyintrigeri
This is intended to solve Joey's concerns expressed on http://ikiwiki.info/todo/need_global_renamepage_hook/, i.e. the need to make it possible to use this hook from external plugins. A plugin using this hook still can add/modify/remove elements of the @torename array. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27revert renamepage's hook original nameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26only pass named parameters to the canrename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26add mising hooks and fix syntax errorJoey Hess
2009-01-13Merge commit 'upstream/master' into prv/pointrigeri
2009-01-06rename: Show full names of affected pages.Joey Hess
2009-01-06refactorJoey Hess
2009-01-01Pass src, srcfile, dest and destfile to the canrename hook.intrigeri
This is not needed by the use I'm doing of it, but seems more consistent to me. Future users of this hook may need this data to make their mind. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01rename: pass the CGI and session to the rename hookintrigeri
The po plugin remame + canrename hook combination will need this. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01rename: implemented new canrename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01Merge commit 'upstream/master' into prv/pointrigeri
2008-12-30the rename hook can now change the list of pages to renameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30renamed the renamepage hook to renamelink, added rename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-23finalise version 3.00 of the plugin apiJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-12-17rename: Fix double-escaping of page name in edit box.Joey Hess
titlepage normally escapes, but so does formbuilder.
2008-10-02remove, rename: Allow acting on attachments as a page is being created.Joey Hess
2008-10-01fix subpage rename bug with indexpagesJoey Hess
If indexpages is enabled, then foo/index.mdwn will look like a subpage of foo, so an additional check is needed to avoid trying to rename it twice.
2008-09-29use newpagefileJoey Hess
2008-09-29support indexpages when renaming pagesJoey Hess
Note that the page filename code used here and in editpage are identical..
2008-09-27Export pagetitle, titlepage, linkpage.Joey Hess
2008-09-27pagetype is exportedJoey Hess
2008-09-23rename: Hide type field from rename form when renaming attachments.Joey Hess
2008-09-23multiple rename support is workingJoey Hess
most edge cases seem handled too
2008-09-23Merge branch 'master' into tovaJoey Hess
2008-09-23rename, remove: Don't rely on a form parameter to tell whether the page ↵Joey Hess
should be treated as an attachment.
2008-09-23factor out fixlinksJoey Hess
2008-09-23factor out do_renameJoey Hess
2008-09-23add checkbox to rename subpages tooJoey Hess
2008-09-23layoutJoey Hess
2008-08-07use srcfile/destfileJoey Hess
avoids a commit message of "renamed foo to foo"
2008-08-07avoid link fixup if page name stayed the sameJoey Hess
2008-08-07page file type rename patch from willuJoey Hess
2008-08-03add plugin safe/rebuild info (part 2 of 3)Joey Hess
(brain.. melting..)
2008-07-23foldageJoey Hess
2008-07-23fixup editpage links on renameJoey Hess
2008-07-23link fixup on rename workingJoey Hess
2008-07-22add a list of broken links after the renameJoey Hess