Add option to save only selected lines to file
As mentioned by @aokulovich in https://github.com/variar/klogg/issues/234#issuecomment-750871104_
Looks like in version Built 2020-12-24 from 576b91d it saves the whole file instead of selected lines. Is this behaviour expected?
will this work on selected or marked lines or both options? Will this work for very large selections? I have a common use case where i want to delete lines from very large text files. It would be useful to have an "inverse selection" option or a mutli-select option for selecting several continuous sections (usually done with ctrl-click and ctrl-shift-click). then i could save all lines excluding the unwanted ones to a new file, effectively deleting lines from a very large file!
Currently klogg is saving the content of either file view or filtered view. So for your usecase it should be possible to fiter the file using some regex and save filtered results to a separate file using the context menu in the buttom view.
my use case can be selecting a 10MB block of text so I guess the easiest way would be by line numbers
Should be in 23.06 builds