Design: leave paging to less(1)?
From what I see this tool is doing two things: markdown parsing/formatting and paging.
Why not just do md formatting and leave the rest for less? That way users are free to use a pager of choice (or none at all) and you don't need to duplicate the functionality of less.
Thoughts?
I’m planning on adding -o flag for simply format the buffer and output it to file if anyone wants to use other pager or no pager at all.
Honestly, the reason that flag wasn’t in the functionality is because I’m not too familiar with the syntax and functionality of less/more.
I would prefer if it would respect PAGER variable
Syntax of less commands is not hard - you can get inspiration from pspg - https://github.com/okbob/pspg. Is good to know a less functionality because defacto it is UNIX (Linux) standard - so it is good to respect keyboard commands, options, .. It is good source of inspiration, although it is not based on ncurses.
I think so the decision to use or not to use less is not easy. Less is great pager - but it is generic pager. It cannot to support special formats, special searching, walk through document structure.
The point is one can use PAGER or pipe it to a printer or grep it or whatever.
Syntax of less commands is not hard - you can get inspiration from pspg - https://github.com/okbob/pspg. Is good to know a
lessfunctionality because defacto it is UNIX (Linux) standard - so it is good to respect keyboard commands, options, .. It is good source of inspiration, although it is not based on ncurses.I think so the decision to use or not to use
lessis not easy. Less is great pager - but it is generic pager. It cannot to support special formats, special searching, walk through document structure.
Thanks for the resources!
Update on current todo list:
- Piping capability
- Line fold/wrap on white space
- Optimized resizing
Meanwhile, anyone have any idea about Mac OS? There is an issue where A_ITALIC macro not detected while compiling.
I have access to macOS can try to create a macbrew port
I have access to macOS can try to create a macbrew port
That would be greatly appreciated!