Live data from Hacker News

Show HN: Ov – feature rich terminal pager

github.com

51–53 of 53 posts

Re: Show HN: Ov – feature rich terminal pager

#51
Looks like posting this to Hacker News got it packaged for Nixpkgs¹! I had to add it via package override when the article came out, but it's since been added to Nixpkgs. :)

If you're a NixOS newbie and you don't want to wait for the PR to land, you can add it with a package override by pasting in the function body from the PR and prepending a `with` expression for the original Nixpkgs used in the override, like:

  nixpkgs.config.packageOverrides = superPkgs: {
    ov = with superPkgs; buildGoModule rec {
      pname = "ov";
      version = "0.13.0";
      
      meta = with lib; {
        description = "Feature-rich terminal-based text viewer";
        homepage = "https://noborus.github.io/ov";
        license = licenses.mit;
        platforms = platforms.linux ++ platforms.darwin;
      };
    };
  };
Hopefully in a week or two, Nixpkgs will provide another convenient way for Linux and macOS users to quickly try out this new pager! I know I'll be following along to see how it develops. :)

--

1: https://github.com/NixOS/nixpkgs/pull/209034

Re: Show HN: Ov – feature rich terminal pager

#52

I'm surprised there aren't more pagers besides `less` and `more`. Alternatives I've found online: - https://linux.die.net/man/1/most (multiple files/windows at once) - https://github.com/sharkdp/bat (uses `less` under the hood, syntax highlighting and git diffs) - https://linux.die.net/man/1/lesskey (add parameters to `less`) - https://github.com/ivanov/kanten (looks abandoned) - "Just use vim" (and vim's paging is r…

pspg ( https://github.com/okbob/pspg ) is wonderful for tabular data.

Re: Show HN: Ov – feature rich terminal pager

#53
post #20

hey OP, nice tool. can we use $HOME/config/ for the config file? keeps the home clean.

There is a --config flag to specify the location[1] but I agree it should be in $XDG_CONFIG_HOME by default. [1] https://github.com/noborus/ov/blob/master/main.go#L207

$XDG_CONFIG_HOME is now default. thank you.
Post reply on HN