so apparently gemini generates actual files now. I completely missed whatever update announcement they had, but it's actually saving me...
The Old Workflow
Im pretty used to just grabbing code snippets from these tools but when it comes to structured data the workflow was always so bad. I do a lot of backend work and constantly need garbage data for seeding databases. you ask for 100 rows of fake user accounts and it gives you a massive markdown table. which looks nice, but then you have to manually highlight the whole thing, inevitably grab some of the chat text by mistake, paste it into google sheets, fix whatever column got mangled because of a weird comma, and then finally export it to a csv so your script can actually read it.
It's not hard it just sucks to do over and over when you're in the middle of something else.
A Literal Download Button
I was building out a postgres db a few nights ago and asked it to generate some mock data, and just typed "give it to me as a csv" at the end of the prompt. normally when you do this it just spits out raw comma separated text inside one of those black code blocks and you have to click the little copy icon and paste it into a blank file in your IDE.
but it just put a little downloadable file icon right in the chat.
I actually stared at it for a second. Clicked it, dropped the file straight into my project folder, ran my seed script and that was it.
I started messing around with it after that to see what else it supports. If you ask for python code and tell it you want the actual file, it hands you a .py file. Same with regular markdown or html. I think the docs said it does word files too but I haven't had a reason to test that.
It sounds so stupid to be excited about a literal download button but it really changes how I interact with it. I hate treating the chat window like a workspace. I just want the output so I can use it in my actual local environment. just cuts out the clipboard entirely. if you're still manually copying tables into excel like I was, just ask it for the file.
![[featured] Gemini Generate File](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbLrCHkGtd_nFEItALW_z42_Xfr1Xz7gHeIj8M7DmnKSnwvXhgz6OfsjGkTVTmQTpMppniideqm3cvsn-xiNgw3ak31msK2DxFIadDWr5DfaiB6ftTAiK8bu9c7W__vREGs49N7vElIHeqG-nf2UAzbs41oWxGADwrHC4xNtZDSLuMPF7TnIaoCtTid3KZ/w320-h213/gemini-file-gen-slide.webp)
