Coder Social home page Coder Social logo

Comments (15)

tosher avatar tosher commented on June 8, 2024 2

Please, try the new 3.0.8 version.

from mediawiker.

tosher avatar tosher commented on June 8, 2024 1

Very very restricted preview is possible - it will be local generated page, not preview on wiki site.
I'll commit the changes soon..

from mediawiker.

tosher avatar tosher commented on June 8, 2024 1

Already - all user setting must be defined in Preferences/Package Settings/Mediawiker/Settings - User - it's standard sublime's rule (default settings|user settings).

from mediawiker.

tosher avatar tosher commented on June 8, 2024 1

@Kristinita - with the same effect - no. Wiki page generation - it's a real request to wiki api. I don't want to generate on-the-fly ddosing :) Markdown preview - local process, mediawiki - not.
But, i'll think on preview with one local file..

from mediawiker.

Kristinita avatar Kristinita commented on June 8, 2024

Great work!

Whether it is possible to make that when updatings a plugin the lines "mediawiki_site" weren't removed?

"mediawiki_site":
    {
        "English wikipedia": { "host": "en.wikipedia.org", "path": "/w/", "pagepath": "/wiki/", "username": "", "password": "", "domain": "" },
        "Russian wikipedia": { "host": "ru.wikipedia.org", "path": "/w/", "pagepath": "/wiki/", "username": "", "password": "", "domain": "" },
        "Mediawiki": { "host": "www.mediawiki.org", "path": "/w/", "pagepath": "/wiki/", "username": "", "password": "", "domain": "" },
        "Циклопедия": { "host": "cyclowiki.org", "path": "/w/", "pagepath": "/wiki/", "username": "Саша_Черных", "password": "MyPassword", "domain": "" },
    },

I had to re-enter the line of those sites with which I work. Thanks.

from mediawiker.

Kristinita avatar Kristinita commented on June 8, 2024

Thanks, I asked a stupid question.

Is it possible to carry out a preview in a one tab? Now each preview opens in a new tab, in the browser many tabs can be open.

from mediawiker.

reagle avatar reagle commented on June 8, 2024

I'm not sure how this feature works, so I went to try it and got this error:

Error loading scope:text.html: Unable to find syntax file for scope text.html in Packages/Mediawiker/MediawikiNG.tmLanguage
Error loading scope:source.ini: Unable to find syntax file for scope source.ini in Packages/Mediawiker/MediawikiNG.tmLanguage
Error loading scope:source.actionscript: Unable to find syntax file for scope source.actionscript in Packages/Mediawiker/MediawikiNG.tmLanguage
Error loading scope:source.latex: Unable to find syntax file for scope source.latex in Packages/Mediawiker/MediawikiNG.tmLanguage
Error loading scope:source.tsql: Unable to find syntax file for scope source.tsql in Packages/Mediawiker/MediawikiNG.tmLanguage
Error loading scope:source.postscript: Unable to find syntax file for scope source.postscript in Packages/Mediawiker/MediawikiNG.tmLanguage
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 568, in run_
    return self.run(edit, **args)
  File "/home/reagle/.config/sublime-text-3/Packages/Mediawiker/mediawiker.py", line 1371, in run
    html = sitecon.parse(text=text, title=mw.get_title(), disableeditsection=True).get('text', {}).get('*', '')
TypeError: parse() got an unexpected keyword argument 'disableeditsection'
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 568, in run_
    return self.run(edit, **args)
  File "/home/reagle/.config/sublime-text-3/Packages/Mediawiker/mediawiker.py", line 1371, in run
    html = sitecon.parse(text=text, title=mw.get_title(), disableeditsection=True).get('text', {}).get('*', '')
TypeError: parse() got an unexpected keyword argument 'disableeditsection'

from mediawiker.

tosher avatar tosher commented on June 8, 2024

@reagle, just restart the sublime text.. internal mwclient library was updated and require restart of ST

from mediawiker.

tosher avatar tosher commented on June 8, 2024

@Kristinita, nope, unfortunately Sublime Text can't to control browser window - it's just system call to open url in default browser...

Ctrl+w - for fast tabs closing :)

from mediawiker.

reagle avatar reagle commented on June 8, 2024

@tosher, confirmed. Is it odd that the preview command is in sublime's palette and not the mediawikier specific one?

from mediawiker.

tosher avatar tosher commented on June 8, 2024

This command is the mediawiker's function, which makes request to wiki's API for rendering page in html.

from mediawiker.

Kristinita avatar Kristinita commented on June 8, 2024

@tosher, whether you in the future plan to make a plug-in so that it was possible to preview without resaving, reload of the page and reload page in the browser? For example, as writing text on Markdown by means of OmniMarkupPreviewer:

Markdown OMP

from mediawiker.

reagle avatar reagle commented on June 8, 2024

@tosher, I meant that I'd expect to see the command by hitting window+w (mediawikir's commands) rather than ctrl+shift+p (sublime's palette). (Or it should at least / also be in mediawikir's commands.)

from mediawiker.

tosher avatar tosher commented on June 8, 2024

@reagle, hmm, this command is available in ST's palette as Mediawiker: Page preview and in Mediawiker's palette as Page preview (last command, before snippets).
If you have redefined version in your user's config, please remove it, or move the string with this command from default config (if you need custom version of menu).

from mediawiker.

reagle avatar reagle commented on June 8, 2024

@tosher, that fixed it, thanks!

from mediawiker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.