Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differences with CodeSnap.nvim #7

Open
daUnknownCoder opened this issue Jun 4, 2024 · 5 comments
Open

Differences with CodeSnap.nvim #7

daUnknownCoder opened this issue Jun 4, 2024 · 5 comments
Labels
question Further information is requested

Comments

@daUnknownCoder
Copy link

codesnap.nvim

@SergioRibera
Copy link
Owner

SergioRibera commented Jun 11, 2024

@daUnknownCoder

Sorry, I was a bit busy, the main differences I think between CodeShot.nvim and CodeSnap.nvim are:

  • Codeshot can take a snapshot using the theme you have configured in neovim (or use one that sss_code comes with by default) (image 0).
  • There is a difference in highlighting concept, CodeShot has more of a Focus approach and CodeSnap has more of a line selection approach.
  • Codeshot does not have a Breadcrumbs system because you could place it as a title in the windows bar (even use a custom function to generate a dynamic or smart title).
  • A feature I'm working on is to render the identation, similar to ibl, so CodeShot will soon receive this feature. (Currently I have just integrated this feature into the PR [Code] Add indent and hidden characters render sss#49)
  • Both can copy to the clipboard directly and in the case of CodeShot you can customize the command to execute.
  • CodeShot has more flexibility in terms of backgrounds, you can have a solid color, a gradient (only 2 colors, for now) or an image (image 1).
  • CodeShot allows you to have a code background as flexible as the background surrounding the code block (image 2).

0
image

1
image

2
image

I hope this has solved your doubt, if you find any other outstanding difference feel free to add it 😄

@SergioRibera SergioRibera changed the title difference from: Differences with CodeSnap.nvim Jun 11, 2024
@SergioRibera SergioRibera added the question Further information is requested label Jun 11, 2024
@SergioRibera SergioRibera pinned this issue Jun 11, 2024
@daUnknownCoder
Copy link
Author

what about speed? like how much time does it take to generate the image? like codesnap requires a few seconds and it uses some skia engine to generate images, before 0.1 release they used some rust library to do that (it was slow)...

@SergioRibera
Copy link
Owner

SergioRibera commented Jun 12, 2024

what about speed? like how much time does it take to generate the image?

I have no idea about this and I would not like to do a benchmarking between the two as they are usually very variable and subjective.

like codesnap requires a few seconds and it uses some skia engine to generate images, before 0.1 release they used some rust library to do that (it was slow)...

Well, unlike CodeSnap, CodeShot (or sss_code for that matter), generates the image pixel by pixel using the image-rs crate, At the moment it doesn't even take me a second to generate an image, so I'd say it's Blazing Fast!!

@Archdsenna
Copy link

Archdsenna commented Sep 11, 2024

Codeshot can take a snapshot using the theme you have configured in neovim

Does it mean the code color in the screenshot is consistent with the code color displayed by nvim?

@SergioRibera
Copy link
Owner

Does it mean the code color in the screenshot is consistent with the code color displayed by nvim?

This is indeed the idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants