Code Monkey home page Code Monkey logo

Comments (7)

Frederisk avatar Frederisk commented on May 28, 2024

Re-open? No no, just click preview button or execute the command again. The content of WebView will be refreshed.

from wikitext-vscode-extension.

McGeifer avatar McGeifer commented on May 28, 2024

I may have expressed myself a little unclearly. I use VS Code with two windows side by side, the wiki "code" on the left and the preview window on the right. This means that the preview button is no longer visible. Using Ctrl + Shift + V will refresh the preview page but will also jump to the beginning of the page so you always need to scroll down to the place where you did you changes. I was wondering if this could be improved.

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on May 28, 2024

You mean you open two windows at the same time instead of two tabs? If there are two tab pages, if the active tab page is source code editing, the button will appear again.

It may be difficult to automatically jump to the active editing position. The conversion from Wikitext to HTML relies on external APIs from your host, and I have no way to get a handle through the API to locate the context.

For an alternative method, you can open another tab and only preview that part.

from wikitext-vscode-extension.

McGeifer avatar McGeifer commented on May 28, 2024

With two open tabs, clicking the button will refresh the page 👍
But would it be possible to auto update the preview every x seconds or "simply" when typing in new stuff?

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on May 28, 2024

In fact, I considered the automatic refresh a long time ago. But as you just said, Refreshing the page will cause the page to return to the top. It means that if is regularly executed, the user maybe repeatedly interrupted by this action.

On the other hand, if it's refreshed with user's text input, then the access to the APIs may become very frequent, so that the speed limit is reached shortly.

In summary, There is no good idea to achieve this function currently.

from wikitext-vscode-extension.

McGeifer avatar McGeifer commented on May 28, 2024

Sounds reasonable, thanks for the information (and the nice tool of course).

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on May 28, 2024

This issue will remain open, in order to provide references for others. But this feature may not be added in the near future.

from wikitext-vscode-extension.

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.