plugin:batchedit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:batchedit [2015-05-24 21:44] – pan One | plugin:batchedit [2024-02-12 13:12] (current) – New release dwp-forge | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BatchEdit | + | ====== BatchEdit |
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
author | author | ||
- | email : spambox03@mail.ru | + | email : dwpforge@gmail.com |
type : admin | type : admin | ||
- | lastupdate : 2009-02-14 | + | lastupdate : 2024-02-12 |
- | compatible : 2009-02-14, 2012-10-13 "Adora Belle" | + | compatible : Hrun, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum, Kaos |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
tags : search, replace, regexp, editing | tags : search, replace, regexp, editing | ||
- | screenshot_img: | + | |
- | downloadurl: | + | downloadurl: |
bugtracker : https:// | bugtracker : https:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
BatchEdit is an admin plugin that allows you to use regular expressions to search and replace text on DokuWiki pages. As it works with raw DokuWiki text, the plugin can be also used to modify markup of the pages. This can be very helpful when there are multiple pages with similar markup. For example, you can update pages created from a [[: | BatchEdit is an admin plugin that allows you to use regular expressions to search and replace text on DokuWiki pages. As it works with raw DokuWiki text, the plugin can be also used to modify markup of the pages. This can be very helpful when there are multiple pages with similar markup. For example, you can update pages created from a [[: | ||
+ | |||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
- | * [[https:// | + | * [[https:// |
===== User Interface ===== | ===== User Interface ===== | ||
- | {{ http://img132.imageshack.us/img132/7844/ | + | After installation BatchEdit shows up on the //Administration// page. When started, the plugin displays a form with four primary edit fields: |
- | After installation BatchEdit shows up on the //Administration// page. | + | {{ https://images2.imgbox.com/ |
- | When started, the plugin displays a form with four edit fields: | + | |
- | + | * //Search for// -- depending on selected options this can be plain text string, regular expression, or fully qualified regular expression including | |
- | | + | * //Replace with// -- the replacement |
- | * //Regular expression// --- fully qualified regular expression including | + | * //Edit summary// -- summary of the replacement. This field has the same purpose as the //Edit summary// field of the DokuWiki text editor. |
- | * //Replacement// --- the replacement pattern. For the syntax see [[phpfn>preg_replace]] documentation. | + | |
- | * //Summary// --- summary of the replacement. This field has the same purpose as the //Summary// field of the DokuWiki text editor. | + | |
Below the edit fields there are two buttons: | Below the edit fields there are two buttons: | ||
Line 45: | Line 46: | ||
* //Apply// -- replaces selected (see below) matches. If there are no selected matches it acts identical to the //Preview// button. | * //Apply// -- replaces selected (see below) matches. If there are no selected matches it acts identical to the //Preview// button. | ||
- | BatchEdit displays | + | {{ https:// |
+ | |||
+ | BatchEdit displays search | ||
After the replacement, | After the replacement, | ||
+ | |||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | BatchEdit uses two types of configuration options: | ||
+ | * User-specific options -- all options available on BatchEdit page are individual for each user. These options are stored in a browser cookie, so strictly speaking they are browser-specific. | ||
+ | * Global options -- can be modified on DokuWiki configuration page. They control aspects of BatchEdit operation, which are rarely (if ever) to be changed. | ||
Line 54: | Line 64: | ||
==== Performance ==== | ==== Performance ==== | ||
- | BatchEdit | + | BatchEdit |
- | ==== Page locking | + | ==== Concurrent page edits ==== |
- | While BatchEdit locks pages during replacement, there is still a small possibility for the data corruption. The replacement is performed in two stages: | + | Because of two-staged approach of Preview& |
- | - BatchEdit searches for the regular expression matches in all the pages. For every match the plugin records character | + | |
- | - On the second stage BatchEdit compares | + | |
- | If the page is modified between these two stages, BatchEdit | + | This verification still leaves a possibility that replacement |
==== Page lookup ==== | ==== Page lookup ==== | ||
- | BatchEdit uses DokuWiki page index to get the list of existing pages instead of going through the data directories. | + | BatchEdit uses DokuWiki page index to get the list of existing pages instead of going through the data directories. |
+ | |||
+ | This limitation | ||
===== Version History ===== | ===== Version History ===== | ||
- | ==== 2009-02-14 ==== | + | ==== 2024-02-12 ==== |
- | * Added //View// and //Edit// links to matched pages. | + | * Fixed compatibility with DokuWiki 2024-02-06 " |
- | ==== 2008-12-07 ==== | + | ==== 2023-06-16 ==== |
- | * Fixes in regular expression validation | + | * Added support for replacement |
+ | * Fixed compatibility with DokuWiki Jack Jackrum | ||
- | ==== 2008-10-27 ==== | + | ==== 2022-02-20 ==== |
- | * First public release | + | * Added option to replace [[https:// |
+ | * Added Portuguese localization | ||
+ | * Added Dutch localization | ||
+ | * Fixed Bootstrap conflict with jQuery tooltip | ||
+ | * Minor localization updates | ||
+ | ==== 2021-04-17 ==== | ||
- | ===== Bugs / Feature Requests ===== | + | * Fixed PHP 8.0 compatibility issues |
+ | * Fixed admin UI layout in Safari browser | ||
+ | * Fixed support of DokuWiki hosted in proxied subfolder | ||
+ | * Updated French translation | ||
+ | * Updated Russian translation | ||
- | Please report bugs or feature requests at the [[http:// | + | ==== 2020-07-31 ==== |
+ | * Fixed compatibility with DokuWiki Hogfather | ||
+ | * Russian translation update | ||
- | ===== Discussion ===== | + | ==== 2019-06-02 |
- | To replace plain text, enter it between quotation marks in the regular expression field, but not in the replacement field! | + | * Added Russian translation |
- | To use backslash in the regular expression field, it must be doubled (" | + | * German translation update |
- | ==== Syntax error on line 89 ==== | + | |
- | Added via the plugin manager. | + | ==== 2018-11-25 ==== |
- | Parse error: syntax error, unexpected ' | + | |
- | Back-paged and deleted the plugin. | + | * French translation update |
+ | * Minor fixes | ||
- | ---- | + | ==== 2018-08-18 ==== |
- | Let me guess: PHP4? --- // | + | * Major UI update |
+ | * Added global and per page check boxes to mark multiple matches | ||
+ | * Added various configuration options | ||
+ | * Added progress bar for long operations | ||
+ | * Performance optimizations for massive edits | ||
+ | * Added Chinese(Simplified) translation | ||
- | ==== PHP Warning on line 291 ==== | + | ==== 2018-02-11 |
- | Enter the following in the regexp field | + | |
- | ' | + | |
- | click on **Preview** and you get this warning: | + | |
- | PHP Warning: | + | |
- | --- //Anonymous 2009/09/25 17:09// | + | ==== 2017-12-09 ==== |
- | ---- | + | * Added examples for regular expression and replacement pattern fields |
+ | * Added French language translation | ||
+ | * Minor style fixes for new DokuWiki default template | ||
- | First of all it's an invalid regexp. You shouldn' | + | ==== 2014-05-24 ==== |
- | That said, it's, of course, not nice to throw PHP warnings | + | * Support common special characters |
+ | * Minor fixes | ||
+ | ==== 2009-02-14 ==== | ||
- | ==== Some tips ==== | + | |
- | first: this is a very usable plugin, thank you, Mykola! | + | |
- | when you use this plugin for the first time, consider this: | + | |
- | | + | |
- | * you may want to use a bookmarklet to tick all checkboxes when doing large batchedits (find one at [[http://www.howtocreate.co.uk/bookmarklets.html|this site]]) | + | |
- | * when creating a multiline replacement the batchedit form isn't usable (it's a text edit field, it allows only one line), you have to edit batchedit to create a textarea for replacement | + | |
- | ==== Suggestions for helping rookies | + | ==== 2008-12-07 |
- | Would you please be so kind and provide a simple example for both a DokuWiki text and a full set of parameters for your plugin, so that any non-regexpression expert can check if the plugin is properly installed? | + | * Fixes in regular expression validation |
- | The given example | + | |
- | // | + | |
- | Would you please be so kind and tell the rookie users, how to detect if the necessary PHP extension is loaded on his server. (a) by a look at conf/ | + | ==== 2008-10-27 ==== |
- | // | + | |
- | ---- | + | * First public release |
- | I believe that if you follow the links in the user interface description you will find enough information about both regexp syntax and the extension (it's a built-in one, no installation needed) | ||
+ | ===== Bugs and Feature Requests ===== | ||
- | ==== Bugs ==== | + | Please report |
- | + | ||
- | I have identified two bugs and solved them: | + | |
- | * various values don't get quoted when put into < | + | |
- | * line 593 should get replaced with | + | |
- | * '' | + | |
- | * checkboxes don't get checked automatically, | + | |
- | * line 489 should get replaced with | + | |
- | * '' | + | |
- | * checked=" | + | |
- | --- //[[odyx@debian.org|Didier ' | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | Thanks for the first one, but check boxes are unchecked on purpose. Regular expressions can sometimes cover more than was intended, so I wanted user to confirm every replacement to avoid unexpected results. --- [[user> | + | |
plugin/batchedit.1432496648.txt.gz · Last modified: 2015-05-24 21:44 by pan One