charmbracelet / freeze

Generate images of code and terminal output 📸
MIT License
2.98k stars 50 forks source link

Lines from:to and filename in window frame. Maybe line numbers #77

Open ignishub opened 3 months ago

ignishub commented 3 months ago

Is your feature request related to a problem? Please describe. I want to integrate this app to my IDE/ NVIM and visualy choose which lines of code i want to share. Then copy to clipboard and send it via some messeneger. And it will be nice if reciever will see filename so he can know where to search

Describe the solution you'd like I need some configuration flags for this options

something like(we can make window title just a string and just pass it):

freeze --line.from=10 --line.to=20 --window.filename = true --numbers=true

Describe alternatives you've considered I considered to copy lines to temporary file and then process this temporary file with this app. But it will ruin line numbers and filename/path

isabelroses commented 3 months ago

You can see https://github.com/isabelroses/charm-freeze.nvim, where the line number persist properly. Though it would be nice to see the the option to add a filename to the window.

ignishub commented 3 months ago

You can see https://github.com/isabelroses/charm-freeze.nvim, where the line number persist properly. Though it would be nice to see the the option to add a filename to the window.

Thank you! Its great! But as you said it will be nice to see filename and even better line numbers in base tool. Because sometimes you want to use it just as cli