totk-decompression (and recompression) extension for VSCodeThis tool uses https://github.com/TotkMods/Totk.ZStdTool to compress/decompress This extension is literally just a wrapper for it. The How to useRun any Follow the prompts on the bottom right of your screen. You must have the file you want to compress/decompress open in the text editor.Yes I know, this part is jank. But it's the only way I could figure out how to grab which file you are looking at. If you have a better way to do this please let me know. A bit more detailedAfter running either On the first run, it will open the You need to click There are three commands:
The first two are straight forward. The third one is just to re-init the extension. It might bug out on you, so I'm leaving this in for the first version. You can run these by pressing The file will be saved in the same directory as the input file. THIS WILL AUTOMATICALLY OVERWRITE PREXISTING FILES WITH THE SAME NAME. THIS IS YOUR WARNING. OtherIf the setup message box on the bottom right goes away, you probably have to reinstall the extension. Idk man. Coding is hard. Lol. If you get an Lots of this code is jank. If anyone wants to spruce it up, please do so. The github for it is https://github.com/remghoost/totk-decompression. Technically these should be merged into one command that automatically picks what to do depending on if the file ends in .zs. It'd be an easy fix, but I can't be bothered right now. It's currently Windows only. It could be converted to be able to run on Linux fairly easily. Also, I have no clue if people will even use this. I spent hours on it. Lmao. Well, it was a good learning experience regardless. |