AdamRaichu / vscode-zip-viewer

An extension which allows for the manipulation of zip files in VS Code.
https://marketplace.visualstudio.com/items?itemName=AdamRaichu.zip-viewer
MIT License
14 stars 1 forks source link

Configurable Preview Size #103

Open AdamRaichu opened 8 months ago

AdamRaichu commented 8 months ago
          Similar for me

What I mostly use this plugin for is: go into a zip file , copy a piece of code using "preview"

I'd like to have a lot bigger preview I'd like to have a button near "get preview", "open temporary" in a new tab Thanks

Originally posted by @giac-fab in https://github.com/AdamRaichu/vscode-zip-viewer/issues/101#issuecomment-2035633390

AdamRaichu commented 7 months ago

API to use for open temp: https://code.visualstudio.com/api/references/vscode-api#workspace.openTextDocument

cs-shadowbq commented 6 months ago

Would be nice to add some more CSS markup to

var t = document.createElement("textarea");

Simple additions like adding class names, then bake in additional the CSS in /media/ZipEditor.css

t.className = "NewStyledTextarea";

I do like the

resize: vertical;

Would be nice to add real VSCode extension settings block for custom markup.

AdamRaichu commented 6 months ago

Would be nice to add some more CSS markup to

var t = document.createElement("textarea");

Simple additions like adding class names, then bake in additional the CSS in /media/ZipEditor.css

t.className = "NewStyledTextarea";

I do like the

resize: vertical;

Would be nice to add real VSCode extension settings block for custom markup.

https://github.com/AdamRaichu/vscode-zip-viewer/blob/b857177cead1a32b972c8442bf762c9b0bdbbc4d/media/ZipEditor.css#L20-L26

The textarea is already set to resize: vertical, but I do think that custom CSS would probably be the easiest way to implement this. I'll take a look.