question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate better UX for previewing things

See original GitHub issue

People use previewHtml for building UI which does’t work well. We should investigate different options~

We will tackle the problem from the other side: https://github.com/Microsoft/vscode/issues/22068#issuecomment-293903020

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:23
  • Comments:24 (15 by maintainers)

github_iconTop GitHub Comments

16reactions
smelukovcommented, Apr 10, 2017

Maybe the better solution is provided a possibility to build own UI inside a tab through DOM-access (like in Atom). Something like DOMContentProvider or like that… Or access to DOM of previewHtml

For example: if I want to insert an iframe inside a tab and get access to its contentWindow-property, then previewHtml is useless for this task. But if I’ll have access to DOM of a tab or to DOM of rendered HTML, then this task will have a simple solution.

4reactions
bpaserocommented, Sep 8, 2021

With https://github.com/microsoft/vscode/issues/132651 it is possible to split an editor into 2 in the same group:

image

While what is pushed now is limiting to opening the same editor side by side, https://github.com/microsoft/vscode/issues/36700 would allow this for any 2 editors.

There is nothing technical blocking us from simply putting a text file to the left and a preview editor to the right as this hack shows:

image

But there are some questions:

  • how would an extension API look like for markdown to open a preview like that
  • the preview editor is not syncing with the text document, so whatever magic we do there needs to expand to side-by-side-editors which probably needs extension API too
  • how would a user be able to trigger this UI, should it be another action in the editor toolbar for previewing or even be the default?
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Have Better UX Before UI Begins
Start UX Design with Research​​ The way users respond to UX research will inform the rest of the website design process. The team...
Read more >
Are link previews important? UX Research
What you put out there in your links just might be more important than you think.
Read more >
Preview design pattern
Previews make it easier for users to decide whether or not to commit to a change and thus invite safe exploration and playful...
Read more >
A preview of 36 things that a UX designer should know for ...
I think UX designers need to have the skills to judge data and play a more neutral role in the team. (Compared to...
Read more >
Providing Better UX Recommendations
Some problems have obvious solutions, so a very specific recommendation is appropriate. A simple example would be when a link leads to a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found