[Home]GlobalSearchAndReplace

MeatballWiki | RecentChanges | Random Page | Indices | Categories

A cross-site substitute command would be futile: one cannot simply mass-replace WelcomeRitual? with WelcomeNewcomer.
The script's ready for installation! Get it at http://home.student.uva.nl/johannes.gijsbers/gsar.tar.gz. I'll install it myself if you want to give me a login on the MeatballServer, but here's the things you should look out for if not:

About the script:

-- JohannesGijsbers


There's a problem with any interface that searches and replaces in many pages on one page. When the old string is a substring of the new string (e.g. FooBar? -> InFooBar?), the list doesn't change after saving. This can be solved for WikiWords by only matching the exact WikiWord, but not for arbritrary strings, so I came up with the following:

If the search string is a WikiWord only match the exact WikiWord. When the search string is not a WikiWord match the search string, with all the problems that has.

But this seems prone to confuse people in the case where the search string is not a WikiWord. So my question is, can anyone come up with a case where the search string is not a WikiWord? Otherwise I'm inclined to limit the search to WikiWords.

-- JohannesGijsbers


CategoryWikiTechnology


Interface sketch 1

MeatballWiki: GlobalSearchAndReplace

Search: [____________________________________________] (Submit)


LinkPattern1

[edit full text]

Paragraph above occurence.

Only the paragraph where search term appears. (Undo changes)

Paragraph below occurence.


LinkPattern2

[edit full text]

Paragraph above occurence.

First occurence of search term. (Undo changes)

Paragraph below first occurence.

Second occurence of search term. (Undo changes)

Paragraph below second occurence.


LinkPattern3

[edit full text]

Paragraph above occurences.

First occurence of search term. (Undo changes)
Second occurence of search term, which is one paragraph below first occurence. (Undo changes)

Paragraph below occurences.


(Submit)



Interface sketch 2

MeatballWiki: GlobalSearchAndReplace

Search: [____________________________________________] (Submit)


LinkPattern1 [Paragraph with search text.] [edit full text] (Undo)
LinkPattern2 [Paragraph with search text.] [edit full text] (Undo)
[Paragraph with search text.] (Undo)
LinkPattern3 [Paragraph with search text.] [edit full text] (Undo)
[Paragraph with search text.] (Undo)

(Submit)


Discussion

MeatballWiki | RecentChanges | Random Page | Indices | Categories
Edit text of this page | View other revisions
Search: