ttscoff / mdless

MIT License
871 stars 39 forks source link

Display multiple sections with '-s' #86

Closed rwmitchell closed 1 year ago

rwmitchell commented 1 year ago

How difficult would it be to allow using '-s' or multiple values with '-s' to display multiple, but not all, sections in a file?

ttscoff commented 1 year ago

Not easy, but not impossible. I'll consider it for my next round of feature additions.

-Brett

On 31 May 2023, at 9:46, Richard Mitchell wrote:

How difficult would it be to allow using '-s' or multiple values with '-s' to display multiple, but not all, sections in a file?

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/mdless/issues/86 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

ttscoff commented 1 year ago

v2.8.1 allows multiple sections for most commands, including show, recent, today, etc. Will be available shortly.

rwmitchell commented 1 year ago

v2.8.1 ????

I have: mdless 1.0.32

ttscoff commented 1 year ago

Oh man, I misread this as a request for another utility, doing, and spent an hour making that happen. I’ll have to get back to this for mdless next time.

rwmitchell commented 1 year ago

That's funny. Not for you, of course.

I was trying to imagine all the other new features you had already added but not pushed.

ttscoff commented 1 year ago

Ok, for real this time. Version 1.0.33 now allows a comma separated list of sections to display, and will display them in the order specified, e.g. mdless FILENAME -s 2,3. Please test and let me know if it suits your needs.

rwmitchell commented 1 year ago

Looks great!! Thanks!