As I've only created this for personal use, I hardcoded my environment preferences there - I've tested it only on Linux and with vim as an editor. It's written in Perl and the source code is on Github, feel free to lurk around and modify to your taste if you feel like it: https://github.com/dot-sent/FlightGearWikiClient
Example of interactive edit session:
- Code: Select all
~/FlightGearWikiClient/apps/Perl$ ./editor.pl
*** Welcome to FlightGear Wiki editor ***
Available commands: help login read edit quit
editor (not logged in) [help]> help
Available commands: help login read edit quit
Synopsis: help [command]
Print help for given command. If no command given, print this help.
editor (not logged in) [help]> login Dot_sent
Enter password (won't be displayed) >
Logging in...
Successfully logged in as Dot_sent.
editor (Dot_sent) [help]> edit Dot_sent/Test_Editor
The page 'Dot_sent/Test_Editor' does not exist. Create new page? y/n [y]> y
Enter the title of page to copy (blank for empty) >
<=== vim opens here
1 == Test page ==
2
3 Plain text.
4
5 [http://example.com External link]
~
~
"temp.wiki" 5L, 68C written
<=== vim closed here
Enter summary for your edit [Edited via FlightGear Wiki editor]>
Your edit has been saved. Check it out at http://wiki.flightgear.org/Dot_sent/Test_Editor :)
editor (Dot_sent) [help]> quit
~/FlightGearWikiClient/apps/Perl$
Currently editor supports:
- reading articles (in wiki markup)
- logging into Wiki
- editing existing articles
- adding new articles (with possibility to copy source text from already existing article)
Future plans:
- Translate some more articles to Russian, as I've spent already quite some time working on this editor
- Write a version of the client library in JS
- Create a Chrome/Firefox plugin to enable in-browser edit through API with some additional comfort functions (automatically copy source from English article when starting a new translation, automatically add {{BeingTranslated}} etc.)