Page MenuHomePhabricator

Preview change from external local editors
Closed, InvalidPublic



I code large Lua modules in my local computer, using JEdit, and I would an easier way to test them 100 times each day.

Who would benefit

Any Lua coder to try his/her code, specialy central modules which will be larger than present ones.
Also to change any large content in any external edit tools better adapted at each case : images, sounds, fonts...

Proposed solution

Mediawiki servers able to preview a module, a page or a content.
The final validation and the Mediawiki options rest in present Mediawiki editor with all environment details.

Event Timeline

Rical created this task.Jan 21 2017, 4:26 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 21 2017, 4:26 PM

Which code base does this task refer to? Adding additional project tags welcome.

Tgr added a subscriber: Tgr.Jan 22 2017, 7:47 PM

Are you asking for something like the external editor support that was removed in MediaWiki 1.22?

Rical added a comment.Jan 23 2017, 5:10 PM

External editor support seems interesting. But : I don't know technologies to implement this task, nor if that is adequate for JEdit.

Tgr added a comment.Jan 24 2017, 12:17 AM

Can you explain in more detail what you have in mind? Are you aware of TemplateSandbox? That might be doing already what you are asking for (I might be misunderstanding what you mean, though).

Anomie added subscribers: Qgil, Anomie.EditedJan 27 2017, 4:01 PM

@Qgil: I'm pretty sure there's nothing to do here for either MediaWiki-extensions-Scribunto or MediaWiki-extensions-TemplateSandbox. As far as I can tell this is a request for someone to make a plugin for JEdit that accesses the existing action API functionality.

Aklapper changed the task status from Open to Stalled.Jan 31 2017, 8:52 PM

Can you explain in more detail what you have in mind? Are you aware of TemplateSandbox? That might be doing already what you are asking for (I might be misunderstanding what you mean, though).

Setting task status to stalled until @Rical has clarified...

Rical added a comment.Feb 1 2017, 9:56 PM

My sought is, as in many IDE: Change many details in the code of a module (or of a wikitext) in JEdit in my computer, and try it in one clic.
Each time I would try it, 100 times each day, clic on the button "Try" in JEdit or in mediawiki "Preview" button. Then automatic:
Copy the new text from JEdit to the mediawiki change panel = <div class="ace_content" ... > and preview it in mediawiki.
I already searched in JEdit plugins but I don't found an adequate one, and I don't want lost search time nor delay my main job in sprint T135845.

Tgr added a comment.Feb 1 2017, 10:06 PM

What does "preview" mean in this context? The preview button in the wiki editor doesn't really tell you whether the module is working, does it?

Rical added a comment.Feb 1 2017, 10:35 PM

Now to try a change, I must select and copy the text in JEdit + move to the top of mediawiki test page + copy the text in the change panel + move to the button [ display the preview ] near "Title of the page" + clic the preview button.
All these actions also disturb my attention to the test I am tring.
All guerrit developpers have there own mediawikis configurations and a one clic button to try their changes.

Tgr added a comment.Feb 2 2017, 12:20 AM

Can you describe a real example, step-by-step, in full detail? It's hard to guess what your workflow is.

Jackmcbarn closed this task as Invalid.Feb 2 2017, 4:07 AM
Jackmcbarn added a subscriber: Jackmcbarn.

I understand what @Rical is saying. @Anomie is right that MediaWiki already does everything it has to for it to be feasible. All of the rest of the work has to be done on JEdit's side, and as such, this isn't our issue.

Rical added a comment.Feb 2 2017, 8:16 AM

OK, I will continue to search in JEdit plugins. Perhaps I will ask them an adapted solution.

Rical removed a subscriber: Rical.Jul 21 2017, 9:54 AM