svgo-compressor
svgo-compressor copied to clipboard
Auto compress when right clicking 'Copy SVG Code'
Great plugin!
I noticed right clicking Copy SVG Code shows the original uncompressed code, however it would be great to override this somehow. The flexibility of having this as a quick 'SVG copy' with compression would be really useful.
- 1 on this @bomberstudios. The first thing I checked was if it also worked for 'Copy SVG Code'. Awesome stuff so far!
I used the 'Copy SVG Code' as an easy way to compare uncompressed code with the resulting compressed code, so I guess I forgot the most obvious use case 😅
I'll see what I can do, thanks for filing!
thanks @bomberstudios that is epic!
👍
Any update on this? This would come in super handy.
Yep, I could really use this to
Is anyone working on this? If not, I can dig deeper and get a PR ready.
Same should be the case when dragging (as opposed to hitting export) the SVG to, say, desktop.
I'd love this - I didn't realise that there was another way to export to SVG, so couldn't figure out why "the plugin didn't work".
I just wrote a plugin here https://github.com/chenxsan/copy-optimized-svg-code, you can copy optimized svg code with it :)
Inspired by the plugin from @chenxsan I just submitted a pull request (https://github.com/sketch-hq/svgo-compressor/pull/72) which adds a new menu-option and shortcut to copy the currently selected layer as SVG to the clipboard.
It will use the same settings as the existing plugin does.