vim-silicon icon indicating copy to clipboard operation
vim-silicon copied to clipboard

Padding not generating :(

Open Gander7 opened this issue 5 years ago • 6 comments

Silicon works from terminal. Generates https://gyazo.com/ba12e6d4a824e29814262c5e817fc31d (Expected from vim as well)

vim-plug install worked, but when I generate an image, the image is cropped to the window.

Image generated from :Silicon https://gyazo.com/27d269b5bc46746b72da8be913dcaf7a

It doesn't seem to be taking into account pad-vert or pad-horiz. The values match the defaults specified in the readme. I updated the values to ridiculous values for testing in my .vimrc

let g:silicon={}
let g:silicon["shadow-offset-x"]=400
let g:silicon["shadow-offset-y"]=300
let g:silicon["pad-vert"]=500
let g:silicon["pad-horiz"]=250

Same result as previous export using :Silicon

Gander7 avatar Nov 14 '19 14:11 Gander7

Thanks for the issue, I will investigate in the weekend

segeljakt avatar Nov 14 '19 22:11 segeljakt

Strange, with those settings, I'm getting this output image: image

What version are you running?

$ silicon --version
silicon 0.2.6

segeljakt avatar Nov 15 '19 22:11 segeljakt

silicon 0.2.6 :( I'm running it on Ubuntu 18.04 bionic [Ubuntu on Windows 10] Are there any other dependencies or configs I can check?

Gander7 avatar Nov 18 '19 15:11 Gander7

Could you try run this in the terminal:

echo "int main() {}" | silicon --shadow-offset-x 400 --shadow-offset-y 300 --pad-vert 500 --pad-horiz 250 --language c --output test.png

And see how the output looks

segeljakt avatar Nov 18 '19 16:11 segeljakt

Command ran: https://gyazo.com/d16ff94c3346b3f4402cf04cfb490cbd

Output: https://gyazo.com/6af149a78e92c403e371affaed492d44

Gander7 avatar Nov 18 '19 16:11 Gander7

Could it be something in my .vimrc?

Can be found here. Just updated it this morning.

Gander7 avatar Nov 18 '19 16:11 Gander7