Comments (7)
Re-open? No no, just click preview button or execute the command again. The content of WebView will be refreshed.
from wikitext-vscode-extension.
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.
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.
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.
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.
Sounds reasonable, thanks for the information (and the nice tool of course).
from wikitext-vscode-extension.
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)
- There are always extra `"` in the preview HOT 3
- Error when pushing changes HOT 2
- can't pull page HOT 2
- Editing Scribunto module - Cannot read properties of undefined (reading 'join');
- Update the extensions to Web extensions
- Wikimedia Two-factor_authentication HOT 2
- Web Extension Error: `TypeError: Failed to fetch`
- Add basic authentication to settings. HOT 3
- Bracket highlighting not working in v3.7.0 HOT 11
- Credential requirement HOT 1
- Commands resolving to Not Found HOT 5
- Citation Snippets for free! HOT 1
- Treat `|}` as table closure only at start of line HOT 5
- Error on launching preview HOT 7
- Braces highlight mismatch HOT 2
- Highlight error caused by `{{` in the HTML tag HOT 1
- Bug: preview doesn't work HOT 7
- Better edit summaries? HOT 3
- Extension committing edits while logged out HOT 8
- Private wiki support? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikitext-vscode-extension.