Mediawiker

A plugin for Sublime Text editor that adds possibility to use it as Wiki Editor on MediaWiki-based sites like Wikipedia and many other.

OTHER License

Stars
138
Committers
10

Bot releases are hidden (Show)

Mediawiker - Show gutters, preview fix, events fix

Published by tosher over 7 years ago

  • New option mediawiker_show_gutters - possibility to turn of gutters showing;
  • Fixed: plugin's events run without checking view;
  • Fixed: Page preview command not works on OSX.
Mediawiker - Notifications fix 2

Published by tosher over 7 years ago

  • Fixed: incorrect notification command import.
Mediawiker - Notifications fix

Published by tosher over 7 years ago

  • Fixed: notifications check while page opening.
Mediawiker - Fixes

Published by tosher over 7 years ago

  • Fixed: variables popup;
  • Fixed: error Unable to decode Packages/Mediawiker/img/gutter_h1.png;
  • Fixed: authorization with Chrome's cookies;
  • Fixed: save page messages in plugin's panel.
Mediawiker - Show unsaved changes

Published by tosher over 7 years ago

  • New command: Show unsaved changes - shows differencies between local and server versions. Thanks to scholer for command Page diff vs. server version from his fork, the new command is based on it;
  • Allowing unvalued attributes in Syntaxhighlight tags. Thanks to smanolloff for pull-request.
Mediawiker - Talk page access

Published by tosher over 7 years ago

  • New command: Open talk page - for fast way to open talk pages;
  • Possibility to open talk page from popups.
Mediawiker - Popup settings

Published by tosher over 7 years ago

  • New global option mediawiker_popup_type with possible values of auto (default value - to show popups with autohide), manual (to show popups without autohiding), off (do not show popups globally);
  • New tab option Turn off popups - not show popups in current tab. This option can be set with Configurator;
  • Now, popup will hide on typing.
Mediawiker - Symbol list fix

Published by tosher over 7 years ago

  • Fixed: Templates and other non-headings staff showing in Symbol list.
Mediawiker - Empty user settings fix

Published by tosher over 7 years ago

  • Fixed error with empty User settings.
Mediawiker - Many more

Published by tosher over 7 years ago

Mediawiker 3.3.0

  • New mediawiki markup parser, used for all commands.

Changelog

  • Plugin's changelog was moved to Preferences / Package Settings / Mediawiker / Changelog;
  • Changelog will be shown in human readable format;
  • It can be called by new command Changelog too.

Note Original data for changelog saved in Changelog.mediawiki in mediawiki format inside the plugin's folder.

Commands changes

  • New command Move page for moving/renaming pages;
  • New commands Show red links, Hide red links. Also, possibility to show red links in automatic mode, based on site parameter show_red_links, default: false (maybe slow on some pages with many links);
  • Search command results will be shown in mediawiki format instead of markdown;
  • Cli - fixed opening pages with national characters in title;
  • Fold - fixed headings folding - for example, folding of heading with level 2 - will folds all headings with 3, 4, 5 levels inside;
  • Add/edit wiki site was removed;
  • Configurator:
    • New option to add new wiki site;
    • Human readable option names instead of parameters based names;
    • Many fixes and improvements.
  • Page preview:
    • Used static file mediawiker_preview_file.html in User folder for preview html generation;
    • Tab (view) option Autoreload ('''Generate a preview after each Nth change''') - calls automatic generation of preview on every Nth change, without opening page in browser. By default, this parameter has value 0 - autogeneration not processed and page will be opened on every Page preview command call;
    • When option Autoreload is set to value more than 0 - in the status bar will display the number of changes that were made;
      • Mediawiki:Common.css - included in the preview result to support custom css rules from wiki site.
  • Post page - fixed double entry of postfix in the summary message (defined by mediawiker_summary_postfix);
  • Commands Show internal links, Show external links now based on native Mediawiki API.

'''Live preview scenario''':

  • With autoreload as 0 call Page preview - page will be opened in browser.
  • With Configurator change Generate a preview after each Nth change option in '''Tab options''' - preview will be regenerated after each Nth change.

Note In browser autoreloading can be processed by extensions like Auto Reload (Firefox) - just point changes trigger to preview file.

Note Commands Show red links, Hide red links and option Autoreload for command Page preview are available in Sublime Text 3 only.

Connection

  • Site connections manager was rewritten;
  • Connection to wiki site with Firefox cookies was improved with realtime update on cookies changes (browser_cookie3 library was changed).

Settings

  • All settings in configuration have the same prefix mediawiker_, old settings without this prefix or with prefix mediawiki_ will be replaced automatically.
  • Some setting will be removed:
    • mediawiki_search_syntax - now, mediawiki format will be always used;
    • mediawiker_preview_file - static file mediawiker_preview_file.html will be used always;
    • mediawiker_config_html - use mediawiker_css_html instead. All css properties can be replaced with custom values.

Note mediawiker_css_html used only in Configurator currently.

Syntax Highlighting

  • Fixed incorrect matching of the inline markup tags in template without parameter's names;
  • Fixed many errors with embedded source scopes.

Popups

  • Image size in popups can be changed with mediawiker_popup_image_size, default 300px;
  • Popups for tables;
  • Red links support in popups;
  • Fixes of links, templates popups.
Mediawiker - Connection improvements, image preview, many fixes

Published by tosher almost 8 years ago

Connection

  • Refactoring, fixes;
  • Fixed: connection timeout, retry operations;
  • More asynchronous non-blocking operations.

Syntax highlighting (ST3)

  • Fixed: heading with attributed html tags inside;
  • Fixed: file links with internal links or formatting styles inside.
  • More syntax tests

Popups

  • Images preview inside popups (can be switched off by mediawiker_show_image_in_popup option in settings);
  • Fixed: popups for multi templates in line.

Other

  • Fixed: Correct display of the content of headers containing html tags;
Mediawiker - Output panel, fixes

Published by tosher almost 8 years ago

  • Fixed: removed prints html data in ST's console when using Configurator;
  • Fixed: requirement of the site parameters "username", "password" when using cookies autorization type;
  • New: plugin messages will be shown in plugin's output panel by default, intead of status string. It can be turned off by new use_status_messages_panel option;
  • New: optional global parameters mediawiker_firefox_cookie_files, mediawiker_chrome_cookie_files for manual setup pathes to browser's cookies - value can be a string or a list of strings;
  • New: Optional site configuration option retry_timeout to define http connection timeout (in seconds).
Mediawiker - Cookies authorization, configurator refactoring

Published by tosher almost 8 years ago

  • ST3 Authorization on wiki sites using browser's cookies (Firefox, Chrome), based on Browsercookie packet 1, 2 with some modifications for compatibility.
    • New option: authotization_type - "oauth" / "cookies" / "login", default "login";
    • New option: cookies_browser - "firefox" / "chrome", default "chrome";
  • ST3 Configurator was refactored, all external dependencies were removed.
Mediawiker - Dependency & Highlighting fixes

Published by tosher almost 8 years ago

  • ST3 Syntax highlighting fixes.
  • ST3 Lost dependency fix: pygments.
Mediawiker - Configurator, Async publishing

Published by tosher almost 8 years ago

  • Deprecation warnings from mwclient were suppressed.
  • New popup configurator for most important settings (Configurator command).
  • Asynchronous page publishing.
Mediawiker - Autocomplete fix

Published by tosher about 8 years ago

  • #95 fix
Mediawiker - Syntax fix

Published by tosher about 8 years ago

  • #93 fix
Mediawiker - Definition lists fix

Published by tosher about 8 years ago

  • Definition lists fix
Mediawiker - Page preview fix

Published by tosher about 8 years ago

Page preview fix

Mediawiker - Sublime-syntax, OAuth, HTTPS, Comments

Published by tosher about 8 years ago

Mwclient library update

  • Mwclient internal library was partly synced with latest original version.

Syntax highlighting

  • New highlighting scheme with new sublime-syntax engine (for ST3) as a default scheme.
    • Improvements in highlighting
    • Tests for validation (syntax_test_mediawikerng.mediawiki)
    • Old tmLanguage versions for ST2 compatibility only - needs to set correct value in configuration (Mediawiki_ST2.tmLanguage or MediawikiNG_ST2.tmLanguage).

Comments

  • Folding/Unfolding html comments
  • Show comments texts in popup box
    • Some magic words are supported: TODO, NOTE, WARNING.

OAuth authorization

HTTPS as default proto

  • For sites without https support, option "https": false is required.
Related Projects