Last modified: 2014-09-02 00:26:20 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/260/ Reported by: binbot Created on: 2010-08-24 09:32:57 Subject: Introducing "more" in replace.py Original description: In solve\_sisambiguation.py I can use "more" option to see a wider environment of the selected text. Repeating this, I see more and more of the text. Would it be possible to implement this useful option in replace.py, too? Sometimes I need it very much, when the text is in a short line. I can open the article in editor or browser, but it is too slow, and not always necessary. Pressing "m" as in solve\_sisambiguation.py would be much faster.
A similar system is also implemented in unlink.py and category.py. What about creating a centralized function for that?
I am afraid it wouldn't be simple as the underlying displaying mechanisms are quite different. That's why I reported it and didn't solve yet. As far as I remember, in case of replace.py replaceExcept from textlib.py does the modification and returns new text, then the caller calls showDiff to display portion of old and new text and asks the user to decide whether or not to change. Perhaps shoDiff should be avoked repeatedly with another parameter. Solve_disambiguatin has a displaying mechanism on its own, no showDiff.