Last 12 weeks · 0 commits
1 of 6 standards met
Advantages of a "pager" as a library: Make everything easily configurable: custom header and footer messages, keybindings Bidirectional communication: send events like "terminal resize" or key presses back to the application to trigger a redraw or other actions. A few advantages if we would use a builtin pager in : Have one consistent pager experience across all operating systems. No need to call external programs that might not be available. No special handling / bug fixing for different versions of . Consistent "quit if one screen" handling (#860, #1000, #717, #710, #681, #520, #415, #312, #271, #519, #376, #887, #943, #838, …) Handling of terminal resize events (#294, #322, #921, #1009) Open editor with a key press (#358, #464, #528, #697) Possibility to always draw the header at the top of the screen, even when scrolling down (#908) Builtin support (#457, #808) Special handling for multiple files? (press 'n' to go to the next file) Error handling: we could print errors/warnings in the footer of the pager, instead of in the background (#946) Better 'tab' handling (#980, #894) Handling of ANSI hyperlinks (#961) Disable style components via keypress. For example: switch off the side bar with a keypress - for easy copy&paste.
Repository: sharkdp/riffle. Description: A simple terminal pager (as a library) Stars: 46, Forks: 1. Primary language: Rust. Languages: Rust (100%). Open PRs: 0, open issues: 2. Last activity: 4y ago. Community health: 28%. Top contributors: sharkdp.