Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nvimpager for openSUSE:Factory checked in at 2026-04-07 16:34:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nvimpager (Old) and /work/SRC/openSUSE:Factory/.nvimpager.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nvimpager" Tue Apr 7 16:34:47 2026 rev:5 rq:1344932 version:0.14.0 Changes: -------- --- /work/SRC/openSUSE:Factory/nvimpager/nvimpager.changes 2024-05-21 18:37:05.895827736 +0200 +++ /work/SRC/openSUSE:Factory/.nvimpager.new.21863/nvimpager.changes 2026-04-07 16:51:26.534831762 +0200 @@ -1,0 +2,6 @@ +Tue Apr 7 09:15:53 UTC 2026 - Michael Vetter <[email protected]> + +- Update to 0.14.0: + * Expose toggle_follow function for user mappings (#104) + +------------------------------------------------------------------- Old: ---- v0.13.0.tar.gz New: ---- v0.14.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nvimpager.spec ++++++ --- /var/tmp/diff_new_pack.zeY1mR/_old 2026-04-07 16:51:27.018851819 +0200 +++ /var/tmp/diff_new_pack.zeY1mR/_new 2026-04-07 16:51:27.018851819 +0200 @@ -1,7 +1,7 @@ # # spec file for package nvimpager # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: nvimpager -Version: 0.13.0 +Version: 0.14.0 Release: 0 Summary: Use nvim as a pager License: BSD-2-Clause ++++++ v0.13.0.tar.gz -> v0.14.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/.github/workflows/test.yml new/nvimpager-0.14.0/.github/workflows/test.yml --- old/nvimpager-0.13.0/.github/workflows/test.yml 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/.github/workflows/test.yml 2026-04-02 07:44:19.000000000 +0200 @@ -1,30 +1,32 @@ name: Run tests on: - - push - - pull_request + push: + pull_request: + schedule: + - cron: "0 0 1 * *" # every month jobs: - ubuntu-ppa: runs-on: ubuntu-latest strategy: matrix: - ppa-version: - # the ppa is currently on 0.7.2 but we need >=0.9 - #- stable - - unstable + ppa: + - false + - true steps: - - uses: actions/checkout@v3 - - name: install dependencies - run: | - sudo add-apt-repository -y ppa:neovim-ppa/${{ matrix.ppa-version }} - sudo apt-get update - sudo apt-get install -yqq --no-install-recommends neovim scdoc lua-busted - - name: Run the test suite - run: make test BUSTED='busted --exclude-tags=ppa,v10' - env: - TERM: dumb + - uses: actions/checkout@v6 + - name: activate the PPA for latest neovim + run: sudo add-apt-repository -y ppa:neovim-ppa/unstable + if: matrix.ppa + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install -yqq --no-install-recommends neovim scdoc lua-busted + - name: Run the test suite + run: make test BUSTED='busted --exclude-tags=ppa,v10' + env: + TERM: dumb appimage: runs-on: ubuntu-latest @@ -32,55 +34,69 @@ matrix: x: - version: v0.9.0 + file: nvim + hash: 0e1e6d53c6c8055de23bdb33f60bb64af0baf11390669c1b40ecbbf2c7a34547 tags: [appimage] - version: v0.10.0 + file: nvim + hash: 6a021e9465fe3d3375e28c3e94c1c2c4f7d1a5a67e4a78cf52d18d77b1471390 + tags: [appimage, v10] + - version: v0.11.0 + file: nvim-linux-x86_64 + hash: ca44cd43fe8d55418414496e8ec7bac83f611705ece167f4ccb93cbf46fec6c0 + tags: [appimage, v10] + - version: v0.12.0 + file: nvim-linux-x86_64 + hash: 7876b67462af08abdc884818b398b3e82907d6a4c89edfe7c6b1ff168eb7c4d6 tags: [appimage, v10] - version: nightly + file: nvim-linux-x86_64 tags: [appimage, v10] steps: - - uses: actions/checkout@v3 - - name: install dependencies - run: | - sudo apt-get update - sudo apt-get install -yqq --no-install-recommends scdoc lua-busted - - name: Download official neovim appimage - run: | - wget https://github.com/neovim/neovim/releases/download/${{ matrix.x.version }}/nvim.appimage{,.sha256sum} - sha256sum -c nvim.appimage.sha256sum - chmod +x nvim.appimage - ./nvim.appimage --appimage-extract - - name: Run the test suite - run: make test "BUSTED=busted --exclude-tags=${{ join(matrix.x.tags, ',') }}" - env: - TERM: dumb - NVIMPAGER_NVIM: squashfs-root/usr/bin/nvim - + - uses: actions/checkout@v6 + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install -yqq --no-install-recommends scdoc lua-busted + - name: Download official neovim appimage + run: | + wget --no-verbose https://github.com/neovim/neovim/releases/download/${{ matrix.x.version }}/${{ matrix.x.file }}.appimage + if [ -n '${{ matrix.x.hash }}' ]; then + echo ${{ matrix.x.hash }} ${{ matrix.x.file }}.appimage | sha256sum -c - + fi + chmod +x ${{ matrix.x.file }}.appimage + ./${{ matrix.x.file }}.appimage --appimage-extract + - name: Run the test suite + run: make test "BUSTED=busted --exclude-tags=${{ join(matrix.x.tags, ',') }}" + env: + TERM: dumb + NVIMPAGER_NVIM: squashfs-root/usr/bin/nvim macos: runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: install dependencies - run: | - brew update - brew install neovim scdoc luarocks - luarocks --local install busted - - name: Run the test suite - run: make test BUSTED="$HOME/.luarocks/bin/busted --exclude-tags=mac,v10" - env: - TERM: dumb + - uses: actions/checkout@v6 + - name: install dependencies + run: | + brew update + brew install neovim scdoc luarocks + luarocks --local install busted + - name: Run the test suite + run: make test BUSTED="$HOME/.luarocks/bin/busted --exclude-tags=mac,v10" + env: + TERM: dumb macos-nix: runs-on: macos-latest steps: - - name: Install Nix - uses: cachix/install-nix-action@v20 - - uses: cachix/cachix-action@v12 - with: - name: nix-community - - uses: actions/checkout@v3 - - name: Run the test suite via nix - run: nix build --print-build-logs + - name: Install Nix + uses: cachix/install-nix-action@v31 + - uses: cachix/cachix-action@v17 + with: + name: nix-community + - uses: actions/checkout@v6 + - name: Run the test suite via nix + run: nix build --print-build-logs nix: runs-on: ubuntu-latest @@ -96,14 +112,14 @@ - package: nightly update: false steps: - - name: Install Nix - uses: cachix/install-nix-action@v20 - - uses: cachix/cachix-action@v12 - with: - name: nix-community - - uses: actions/checkout@v3 - - name: Update the fake inputs - run: nix flake update - if: matrix.update - - name: Run the test suite with ${{ matrix.package }} neovim - run: nix build --print-build-logs '.#${{ matrix.package }}' + - name: Install Nix + uses: cachix/install-nix-action@v31 + - uses: cachix/cachix-action@v17 + with: + name: nix-community + - uses: actions/checkout@v6 + - name: Update the fake inputs + run: nix flake update + if: matrix.update + - name: Run the test suite with ${{ matrix.package }} neovim + run: nix build --print-build-logs '.#${{ matrix.package }}' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/flake.lock new/nvimpager-0.14.0/flake.lock --- old/nvimpager-0.13.0/flake.lock 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/flake.lock 2026-04-02 07:44:19.000000000 +0200 @@ -1,21 +1,5 @@ { "nodes": { - "flake-compat": { - "flake": false, - "locked": { - "lastModified": 1673956053, - "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -24,51 +8,11 @@ ] }, "locked": { - "lastModified": 1693611461, - "narHash": "sha256-aPODl8vAgGQ0ZYFIRisxYG5MOGSkIczvu2Cd8Gb9+1Y=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "7f53fdb7bdc5bb237da7fefef12d099e4fd611ca", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_2": { - "inputs": { - "nixpkgs-lib": "nixpkgs-lib" - }, - "locked": { - "lastModified": 1688466019, - "narHash": "sha256-VeM2akYrBYMsb4W/MmBo1zmaMfgbL4cH3Pu8PGyIwJ0=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "8e8d955c22df93dbe24f19ea04f47a74adbdc5ec", - "type": "github" - }, - "original": { - "id": "flake-parts", - "type": "indirect" - } - }, - "flake-parts_3": { - "inputs": { - "nixpkgs-lib": [ - "neovim", - "hercules-ci-effects", - "hercules-ci-agent", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1688466019, - "narHash": "sha256-VeM2akYrBYMsb4W/MmBo1zmaMfgbL4cH3Pu8PGyIwJ0=", + "lastModified": 1772408722, + "narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8e8d955c22df93dbe24f19ea04f47a74adbdc5ec", + "rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3", "type": "github" }, "original": { @@ -82,11 +26,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1681202837, - "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -95,96 +39,18 @@ "type": "github" } }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, - "locked": { - "lastModified": 1685518550, - "narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "haskell-flake": { - "locked": { - "lastModified": 1684780604, - "narHash": "sha256-2uMZsewmRn7rRtAnnQNw1lj0uZBMh4m6Cs/7dV5YF08=", - "owner": "srid", - "repo": "haskell-flake", - "rev": "74210fa80a49f1b6f67223debdbf1494596ff9f2", - "type": "github" - }, - "original": { - "owner": "srid", - "ref": "0.3.0", - "repo": "haskell-flake", - "type": "github" - } - }, - "hercules-ci-agent": { - "inputs": { - "flake-parts": "flake-parts_3", - "haskell-flake": "haskell-flake", - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1688568579, - "narHash": "sha256-ON0M56wtY/TIIGPkXDlJboAmuYwc73Hi8X9iJGtxOhM=", - "owner": "hercules-ci", - "repo": "hercules-ci-agent", - "rev": "367dd8cd649b57009a6502e878005a1e54ad78c5", - "type": "github" - }, - "original": { - "id": "hercules-ci-agent", - "type": "indirect" - } - }, - "hercules-ci-effects": { - "inputs": { - "flake-parts": "flake-parts_2", - "hercules-ci-agent": "hercules-ci-agent", - "nixpkgs": [ - "neovim", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1695684520, - "narHash": "sha256-yORqGB0i1OtEf9MOCCT2BIbOd8txPZn216CM+ylMmhY=", - "owner": "hercules-ci", - "repo": "hercules-ci-effects", - "rev": "91fae5824f5f1199f61693c6590b4a89abaed9d7", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "hercules-ci-effects", - "type": "github" - } - }, "neovim": { "inputs": { - "flake-compat": "flake-compat", "flake-parts": "flake-parts", - "hercules-ci-effects": "hercules-ci-effects", - "neovim-flake": "neovim-flake", - "nixpkgs": "nixpkgs_2" + "neovim-src": "neovim-src", + "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1695945818, - "narHash": "sha256-qOELV+8oAukFHOxezqEBpplwAfTNTpWkD9B2P+G76wE=", + "lastModified": 1775076062, + "narHash": "sha256-ruqxqJtdmNm/fmjuAdwtSBNcbBeMgE1hwELlUnAFgyU=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "6fb6984f0bf3fcd4fd1c375bf879c15f2770f8aa", + "rev": "215965fbe5b5dbd61bf33c8bda4a20c2b32c3df2", "type": "github" }, "original": { @@ -193,25 +59,17 @@ "type": "github" } }, - "neovim-flake": { - "inputs": { - "flake-utils": "flake-utils_2", - "nixpkgs": [ - "neovim", - "nixpkgs" - ] - }, + "neovim-src": { + "flake": false, "locked": { - "dir": "contrib", - "lastModified": 1696001834, - "narHash": "sha256-y2hYqOnxL7biN15t3pmhRn7RHZv7NHEln4zzL46dmCA=", + "lastModified": 1774915197, + "narHash": "sha256-yor+eo8CVi7wBp7CjAMQnVoK+m197gsl7MvUzaqicns=", "owner": "neovim", "repo": "neovim", - "rev": "9ed830a3ca5847a9152b91fca5e1eaf712bed55b", + "rev": "dbc4800dda2b0dc3290dc79955f857256e0694e2", "type": "github" }, "original": { - "dir": "contrib", "owner": "neovim", "repo": "neovim", "type": "github" @@ -219,45 +77,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1688322751, - "narHash": "sha256-eW62dC5f33oKZL7VWlomttbUnOTHrAbte9yNUNW8rbk=", + "lastModified": 1774701658, + "narHash": "sha256-CIS/4AMUSwUyC8X5g+5JsMRvIUL3YUfewe8K4VrbsSQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0fbe93c5a7cac99f90b60bdf5f149383daaa615f", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-lib": { - "locked": { - "dir": "lib", - "lastModified": 1688049487, - "narHash": "sha256-100g4iaKC9MalDjUW9iN6Jl/OocTDtXdeAj7pEGIRh4=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4bc72cae107788bf3f24f30db2e2f685c9298dc9", - "type": "github" - }, - "original": { - "dir": "lib", - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { - "locked": { - "lastModified": 1695806987, - "narHash": "sha256-fX5kGs66NZIxCMcpAGIpxuftajHL8Hil1vjHmjjl118=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "f3dab3509afca932f3f4fd0908957709bb1c1f57", + "rev": "b63fe7f000adcfa269967eeff72c64cafecbbebe", "type": "github" }, "original": { @@ -267,13 +91,13 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_2": { "locked": { - "lastModified": 1681465517, - "narHash": "sha256-EasJh15/jcJNAHtq2SGbiADRXteURAnQbj1NqBoKkzU=", + "lastModified": 1775036866, + "narHash": "sha256-ZojAnPuCdy657PbTq5V0Y+AHKhZAIwSIT2cb8UgAz/U=", "owner": "nixos", "repo": "nixpkgs", - "rev": "abe7316dd51a313ce528972b104f4f04f56eefc4", + "rev": "6201e203d09599479a3b3450ed24fa81537ebc4e", "type": "github" }, "original": { @@ -287,28 +111,13 @@ "inputs": { "flake-utils": "flake-utils", "neovim": "neovim", - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_2" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/flake.nix new/nvimpager-0.14.0/flake.nix --- old/nvimpager-0.13.0/flake.nix 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/flake.nix 2026-04-02 07:44:19.000000000 +0200 @@ -1,5 +1,5 @@ { - description = "Developmet flake for nvimpager"; + description = "Development flake for nvimpager"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; @@ -58,10 +58,11 @@ neovim-nightly = neovim.packages.${system}.default; default = callPackage {}; nightly = callPackage { neovim = neovim-nightly; }; + ldoc = pkgs.runCommandLocal "nvimpager-api-docs" {} + "cd ${self} && ${pkgs.luaPackages.ldoc}/bin/ldoc . --dir $out"; in { apps.default = flake-utils.lib.mkApp { drv = default; }; - packages = { inherit default nightly neovim-nightly; inherit (pkgs) neovim; }; - packages.ldoc = pkgs.runCommandLocal "nvimpager-api-docs" {} - "cd ${self} && ${pkgs.luaPackages.ldoc}/bin/ldoc . --dir $out"; + packages = { inherit default nightly ldoc neovim-nightly; inherit (pkgs) neovim; }; + checks = { inherit default nightly ldoc; }; }))); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/lua/nvimpager/ansi2highlight.lua new/nvimpager-0.14.0/lua/nvimpager/ansi2highlight.lua --- old/nvimpager-0.13.0/lua/nvimpager/ansi2highlight.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/lua/nvimpager/ansi2highlight.lua 2026-04-02 07:44:19.000000000 +0200 @@ -25,7 +25,7 @@ --- the names of neovim's highlighting attributes that are handled by this --- module ---- Most attributes are refered to by their highlighting attribute name in +--- Most attributes are referred to by their highlighting attribute name in --- neovim's :highlight command. local attributes = { [1] = "bold", @@ -52,7 +52,7 @@ --- values --- --- @param color_number integer -local function split_predifined_terminal_color(color_number) +local function split_predefined_terminal_color(color_number) local r = math.floor(color_number / 36) local g = math.floor(math.floor(color_number / 6) % 6) local b = math.floor(color_number % 6) @@ -158,7 +158,8 @@ --- --- @param string string function state:parse(string) - for token, c1, c2, c3 in tokenize(string) do + for _token, c1, c2, c3 in tokenize(string) do + local token = _token -- First we check for 256 colors and 24 bit color sequences. if c3 ~= nil then self[token] = hexformat_rgb_numbers(tonumber(c1), tonumber(c2), @@ -218,7 +219,7 @@ elseif colornr >= 8 and colornr <= 15 then -- high pallet colors color = colors[colornr] -- + 82 + 10 * (fgbg == "background" and 1 or 0) elseif colornr >= 16 and colornr <= 231 then -- color cube - color = hexformat_rgb_numbers(split_predifined_terminal_color(colornr-16)) + color = hexformat_rgb_numbers(split_predefined_terminal_color(colornr-16)) else -- grayscale ramp colornr = 8 + 10 * (colornr - 232) color = hexformat_rgb_numbers(colornr, colornr, colornr) @@ -342,7 +343,7 @@ return { hexformat_rgb_numbers = hexformat_rgb_numbers, run = ansi2highlight, - split_predifined_terminal_color = split_predifined_terminal_color, + split_predefined_terminal_color = split_predefined_terminal_color, state = state, tokenize = tokenize, } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/lua/nvimpager/cat.lua new/nvimpager-0.14.0/lua/nvimpager/cat.lua --- old/nvimpager-0.13.0/lua/nvimpager/cat.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/lua/nvimpager/cat.lua 2026-04-02 07:44:19.000000000 +0200 @@ -33,7 +33,7 @@ --- Compute the escape sequences for a 24 bit color number. --- --- @param color_number number a 24 bit color number ---- @param foreground boolean wether to return the escape sequences for fg or +--- @param foreground boolean whether to return the escape sequences for fg or --- bg colors local function color2escape_24bit(color_number, foreground) local red, green, blue = split_rgb_number(color_number) @@ -49,7 +49,7 @@ --- Compute the escape sequences for a 8 bit color number. --- --- @param color_number number an 8 bit color number ---- @param foreground boolean wether to return the escape sequences for fg or +--- @param foreground boolean whether to return the escape sequences for fg or --- bg colors local function color2escape_8bit(color_number, foreground) local prefix diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/lua/nvimpager/init.lua new/nvimpager-0.14.0/lua/nvimpager/init.lua --- old/nvimpager-0.13.0/lua/nvimpager/init.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/lua/nvimpager/init.lua 2026-04-02 07:44:19.000000000 +0200 @@ -1,7 +1,7 @@ --- Functions to use neovim as a pager. --- --- This code is a rewrite of two sources: vimcat and vimpager (which also ---- conatins a version of vimcat): +--- contains a version of vimcat): --- --- - Vimcat goes back to Matthew J. Wozniski and can be found at --- <https://github.com/godlygeek/vim-files/blob/master/macros/vimcat.sh> @@ -76,7 +76,7 @@ --- Check if a string uses poor man's bold or underline tricks --- --- Return true if all characters are followed by backspace and themself again ---- or if all characters are preceeded by underscore and backspace. Spaces +--- or if all characters are preceded by underscore and backspace. Spaces --- are ignored. --- --- @param line string @@ -98,7 +98,7 @@ return true end ---- Search the begining of the current buffer to detect if it contains a man +--- Search the beginning of the current buffer to detect if it contains a man --- page. local function detect_man_page_in_current_buffer() -- Only check the first twelve lines (for speed). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/lua/nvimpager/options.lua new/nvimpager-0.14.0/lua/nvimpager/options.lua --- old/nvimpager-0.13.0/lua/nvimpager/options.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/lua/nvimpager/options.lua 2026-04-02 07:44:19.000000000 +0200 @@ -5,5 +5,5 @@ git_colors = false, -- if the highlighting from the git should be used -- follow the end of the file when it changes (like tail -f or less +F) follow = false, - follow_interval = 500, -- intervall to check the underlying file in ms + follow_interval = 500, -- interval to check the underlying file in ms } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/lua/nvimpager/pager.lua new/nvimpager-0.14.0/lua/nvimpager/pager.lua --- old/nvimpager-0.13.0/lua/nvimpager/pager.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/lua/nvimpager/pager.lua 2026-04-02 07:44:19.000000000 +0200 @@ -10,7 +10,7 @@ local ansi2highlight = require("nvimpager/ansi2highlight") local follow_timer = nil -local function toggle_follow() +function nvimpager.toggle_follow() if follow_timer ~= nil then vim.fn.timer_pause(follow_timer, nvimpager.follow) nvimpager.follow = not nvimpager.follow @@ -42,7 +42,7 @@ map('<Down>', '<C-E>') map('k', '<C-Y>') map('j', '<C-E>') - map('F', toggle_follow) + map('F', nvimpager.toggle_follow) end --- Setup function for the VimEnter autocmd. @@ -69,7 +69,7 @@ if nvimpager.follow then -- turn follow mode of so that we can use the init logic in toggle_follow nvimpager.follow = false - toggle_follow() + nvimpager.toggle_follow() end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/lua/nvimpager/util.lua new/nvimpager-0.14.0/lua/nvimpager/util.lua --- old/nvimpager-0.13.0/lua/nvimpager/util.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/lua/nvimpager/util.lua 2026-04-02 07:44:19.000000000 +0200 @@ -2,7 +2,7 @@ local nvim = vim.api -- luacheck: ignore ---- Check if the begining of the current buffer contains ansi escape sequences. +--- Check if the beginning of the current buffer contains ansi escape sequences. --- --- For performance only the first 100 lines are checked. local function check_escape_sequences() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/makefile new/nvimpager-0.14.0/makefile --- old/nvimpager-0.13.0/makefile 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/makefile 2026-04-02 07:44:19.000000000 +0200 @@ -24,7 +24,7 @@ $(PREFIX)/share/man/man1/nvimpager.1 \ $(PREFIX)/share/zsh/site-functions/_nvimpager -nvimpager.1: SOURCE_DATE_EPOCH = $(shell git log -1 --no-show-signature --pretty="%ct" 2>/dev/null || echo 1716209952) +nvimpager.1: SOURCE_DATE_EPOCH = $(shell git log -1 --no-show-signature --pretty="%ct" 2>/dev/null || echo 1775108659) nvimpager.1: nvimpager.md sed '1s/$$/ "nvimpager $(VERSION)"/' $< | scdoc > $@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/nvimpager new/nvimpager-0.14.0/nvimpager --- old/nvimpager-0.13.0/nvimpager 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/nvimpager 2026-04-02 07:44:19.000000000 +0200 @@ -32,7 +32,7 @@ All further arguments are passed to neovim. But one has to add "--" if the first argument is an option in order to stop this script from - interpeting it. + interpreting it. If "-" or no files are given stdin is read. @@ -50,7 +50,7 @@ h) usage; description; exit;; p) mode=pager;; v) - version=$(git -C "$RUNTIME" describe 2>/dev/null) || version=0.13.0 + version=$(git -C "$RUNTIME" describe 2>/dev/null) || version=0.14.0 echo "$NVIM_APPNAME ${version#v}" exit ;; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/nvimpager.md new/nvimpager-0.14.0/nvimpager.md --- old/nvimpager-0.13.0/nvimpager.md 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/nvimpager.md 2026-04-02 07:44:19.000000000 +0200 @@ -132,10 +132,12 @@ - *<Down>* and *j* scroll the window down one line - *<Up>* and *k* scroll the window up one line - *F* toggles "follow mode" where nvimpager continuously loads changes to the - underlying file and scrolls to the bottom. This is usefull for watching log + underlying file and scrolls to the bottom. This is useful for watching log files. It is modeled after the *F* command in *less*(1) or the *-f* option of *tail*(1) +You can remap the lua function `nvimpager.toggle_follow` if you disabled the +default key mappings. # EXAMPLES diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/test/fixtures/diff2 new/nvimpager-0.14.0/test/fixtures/diff2 --- old/nvimpager-0.13.0/test/fixtures/diff2 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/test/fixtures/diff2 2026-04-02 07:44:19.000000000 +0200 @@ -3,8 +3,8 @@ --- a/test/helpers.lua +++ b/test/helpers.lua @@ -77,6 +77,7 @@ end - - -- Freshly require a nvimpager module, optinally with mocks + + -- Freshly require a nvimpager module, optionally with mocks -- +-- module: string -- the module name under lua/nvimpager to require -- api: table|nil -- a mock for the neovim api table (:help lua-api) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/test/helpers.lua new/nvimpager-0.14.0/test/helpers.lua --- old/nvimpager-0.13.0/test/helpers.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/test/helpers.lua 2026-04-02 07:44:19.000000000 +0200 @@ -81,7 +81,7 @@ handle:close() end ---- Freshly require a nvimpager module, optinally with mocks +--- Freshly require a nvimpager module, optionally with mocks --- --- @param module string -- the module name under lua/nvimpager to require --- @param api table|nil -- a mock for the neovim api table (:help lua-api) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/test/native_spec.lua new/nvimpager-0.14.0/test/native_spec.lua --- old/nvimpager-0.13.0/test/native_spec.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/test/native_spec.lua 2026-04-02 07:44:19.000000000 +0200 @@ -1,4 +1,4 @@ ---- Wrapper for test cases written with neovim's native assert funtions. +--- Wrapper for test cases written with neovim's native assert functions. --- @module test.native_spec -- Busted defines these objects but luacheck doesn't know them. So we diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nvimpager-0.13.0/test/unit_spec.lua new/nvimpager-0.14.0/test/unit_spec.lua --- old/nvimpager-0.13.0/test/unit_spec.lua 2024-05-20 14:59:12.000000000 +0200 +++ new/nvimpager-0.14.0/test/unit_spec.lua 2026-04-02 07:44:19.000000000 +0200 @@ -110,10 +110,10 @@ it("255,255,255 is white", function() test(255, 255, 255, '#ffffff') end) end) - describe("split_predifined_terminal_color", function() + describe("split_predefined_terminal_color", function() local ansi2highlight = require("nvimpager/ansi2highlight") local function test(col, exp_r, exp_g, exp_b) - local r, g, b = ansi2highlight.split_predifined_terminal_color(col) + local r, g, b = ansi2highlight.split_predefined_terminal_color(col) assert.equal(exp_r, r) assert.equal(exp_g, g) assert.equal(exp_b, b) @@ -389,7 +389,7 @@ local line = " N\bNA\bAM\bME\bE" assert.truthy(nvimpager._testable.detect_man_page_helper(line)) end) - it("works for non captial letters", function() + it("works for non capital letters", function() local line = "N\bNa\bam\bme\be" assert.truthy(nvimpager._testable.detect_man_page_helper(line)) end)
