zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.74k stars 3.14k forks source link

Add ability to take code snippet screenshots #17181

Open Magpiny opened 2 months ago

Magpiny commented 2 months ago

Check for existing issues

Describe the feature

Add the ability to take beautiful code snippets screenshots the neovim way as done by codesnap.nvim neovim extension. Also leave it to the user to add extra details/configs to the screenshots for example the codesnipet can display developer name, flags, emojis, optionally show file name and/or file path and adding user themes and fonts for the code snippets. Screenshots of Code snippets can be taken using a combination of keys e.g CTRL+SHIFT+S or CTRL+S+S or any other combination of keys you see fit

If applicable, add mockups / screenshots to help present your vision of the feature

CurrencyF

Magpiny commented 2 months ago

Please add code snippets capturing as a zed baked in feature #17181 @notpeter do you remember our conversation from X?

sudsarkar13 commented 2 months ago

Yeah please add snippets feature

keithrowell commented 1 month ago

I need this, It's the last thing I go to VSCode for. That doesn't bother me as much when people ask how I made such a beautiful code screenshot. I have to tell them VSCode Codesnap extension. I'd rather say Zed code screenshot extension :)

mistricky commented 1 month ago

Hi guys, I'm the author of CodeSnap.nvim, so glad to hear that you enjoy CodeSnap.nvim, actually, I'm working on CodeSnap which is a pure Rust library for generating code snapshots, which is more powerful, flexible and beautiful than CodeSnap.nvim. And I have plan to refactor CodeSnap.nvim to use CodeSnap library in the future, so please stay tuned!

And also, I will provide other editor plugins using CodeSnap library in the future, so you can use CodeSnap in your favorite editor, Zed is an amazing editor, and the Zed code snapshot plugin is also in my development plan, but I'm not sure when I can finish it, if someone interested in CodeSnap, you can using CodeSnap library to create code snapshot Zed plugin by yourself, and I'm glad to help you if you have any questions. :)

image