mistricky / codesnap.nvim

📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim
MIT License
473 stars 15 forks source link

[Feat] use auto-generate filename when the filename is not specified #72

Closed mistricky closed 2 months ago

mistricky commented 2 months ago

When the filename of save_path is not specified, for instance:

save_path = "~/Pictures/"
-- or
save_path = "~/Pictures"

The filename will be replaced with an auto-generate filename based on the CodeSnap_y-m-d_at_h:m:s rule.

Which means after snapshot, the file will be save in ~/Pictures/CodeSnap_y-m-d_at_h:m:s.png