Debian Package Tracker
Register | Log in
Subscribe

zsv

tabular data swiss-army knife CLI

Choose email to subscribe with

general
  • source: zsv (main)
  • version: 1.4.4-1
  • maintainer: Azeem Sajid (DMD)
  • arch: any
  • std-ver: 4.7.4
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • testing: 1.4.4-1
  • unstable: 1.4.4-1
versioned links
  • 1.4.4-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • zsv
  • zsv-dev
action needed
11 new commits since last upload, is it time to release? normal
vcswatch reports that this package seems to have new commits in its VCS but has not yet updated debian/changelog. You should consider updating the Debian changelog and uploading this new version into the archive.

Here are the relevant commit logs:
commit 8266d962bcbd670b5bb6b01dd4c95e5bd98c4592
Author: Azeem <azeem.sajid@gmail.com>
Date:   Wed Nov 11 15:40:14 2026 +0500

    ci: install apt-utils on Ubuntu 26.04 runner (#708)
    
    Signed-off-by: Azeem Sajid <azeem.sajid@gmail.com>

commit 9b0b9c529cfcf92e991e6311d0a3ca48cadb4561
Author: liquidaty <info@liquidaty.com>
Date:   Wed Nov 11 00:17:12 2026 -0800

    jq: add -r for raw output; free each raw string result (#707)
    
    -r is now an alias for --raw-output: a string result prints as its decoded
    text, without quotes or escapes, one result per line. The raw path in
    jv_to_json_func freed nothing, so memory grew with every string printed
    (about 44 MB peak on an 81 MB JSON Lines file, against 6 MB in JSON
    mode); it now frees the value and writes through write1 for any writer.
    
    Argument handling:
    - options may appear anywhere, so `jq -r FILTER FILE` works; the first
      other argument is the filter (-1 or -(.a) included; "--name" or
      "-<letter>" is reported as an unrecognized option), the next the file
    - -r with --csv is an error rather than ignored
    - a surplus argument is reported as unexpected, not as an option
    - a repeated -o closes the earlier file
    - a file that cannot be opened is reported once
    - no trailing newline when the filter produces no results
    - usage lists the options
    
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

commit 1465644f7168a3425f20e94dcb005e23a50f176e
Author: liquidaty <info@liquidaty.com>
Date:   Tue Nov 10 23:48:47 2026 -0800

    sheet: insert and delete rows and columns with <ctrl>o (#706)
    
    In normal and edit mode, <ctrl>o followed by a key changes the file's
    structure:
    
      o / O    insert an empty row below / above the cursor
      d d, d r delete the cursor's row
      c / C    insert an empty column right / left of the cursor
      d c      delete the cursor's column
    
    The commands :insert-row [above], :delete-row, :insert-column [left]
    and :delete-column do the same. An inserted row has as many cells as
    the header, and the cursor moves to its first visible data cell. The
    header row can be deleted, or a row inserted above it. Pending cell
    edits move with their rows and columns, and nothing is written to the
    file until :w. Each operation rewrites the data to a temporary file,
    so its cost grows with the file's size.
    
    Derived views (filter, sort, pivot, :sql), help, and extension buffers
    refuse these operations, as does :compare for columns. Saving a file
    whose first row is blank warns that reopening it skips that row.
    
    Also fixes existing bugs:
    - the :compare cell attribute table was not resized when the screen
      buffer grew, so highlighting read and wrote past its end
    - the row index treated a header at offset 0 as unrecorded, shifting
      rows by one, and recorded the last row one byte late, so a rewritten
      header-only file could not be read back
    - after a reload with fewer rows, the screen kept showing (and
      allowed editing) rows that no longer existed
    - a blank first row was dropped when a rewritten data file was reread
    
    Adds a unit test for the row index and tmux tests for each operation,
    its refusals, ragged rows, the column limit, and large files.
    
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

commit 6684b32f0de7ce8148a847952e6dc37bbf40a8b1
Author: liquidaty <info@liquidaty.com>
Date:   Sat Nov 7 14:12:21 2026 -0800

    sheet: find previous with N, and wrap n/N at the data ends (#705)
    
    * sheet: find previous with N, and wrap n/N at the data ends
    
    'N' searches backward from the cursor cell; 'n' searches forward as
    before. Either direction wraps when it runs off the end of the data and
    reports vim's message: "search hit BOTTOM, continuing at TOP" forward,
    "search hit TOP, continuing at BOTTOM" backward.
    
    As in vim, the primary scan skips the cursor cell and the wrap scan
    includes it, so a sole match is found again with the wrap message and
    the cursor stays. A search from the header row starts at the top of the
    data, and a data file's own "Row #" column is not searched.
    
    File-backed and in-memory buffers share one row-major range scan. A
    backward search walks the rows nearest the cursor a screen buffer at a
    time when the row index is ready; a failed read reports "Find failed"
    rather than claiming no match.
    
    Co-Authored-By: Claude Code <noreply@anthropic.com>
    
    * sheet: align find-previous chunks to the row index
    
    A backward search walked its prefix in screen-buffer-sized chunks, but
    each chunk started at an arbitrary row, and zsv_index_seek_row() can only
    seek to an index block boundary: it re-parsed up to 1023 rows before every
    chunk. Start each chunk on a ZSV_INDEX_ROW_N boundary, where the seek is
    constant time. Results are unchanged.
    
    Use one predicate for the parser-to-screen column offset in the find
    path, and drop a dead NULL allowance. Pin the hidden-column skip on the
    backward leg: with City hidden, N stays on the visible AccentCity match
    instead of moving to the hidden column. The chunk test's seam needle
    moves to row 1024, the last row of a block.
    
    Co-Authored-By: Claude Code <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude Code <noreply@anthropic.com>

commit 2e2181930f68b6b83da69eb19d24636393d15408
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Nov 2 10:38:36 2026 +0500

    build(deps): bump cross-platform-actions/action from 1.6.0 to 1.7.0 (#704)
    
    Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 1.6.0 to 1.7.0.
    - [Release notes](https://github.com/cross-platform-actions/action/releases)
    - [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
    - [Commits](https://github.com/cross-platform-actions/action/compare/v1.6.0...v1.7.0)
    
    ---
    updated-dependencies:
    - dependency-name: cross-platform-actions/action
      dependency-version: 1.7.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 19e33ec7dcbfcd2345409fd8e66209f170c10244
Author: liquidaty <info@liquidaty.com>
Date:   Wed Oct 28 12:49:57 2026 -0700

    Eol fixes 20261028 (#703)
    
    * Fix trailing escaped quote at EOF in compat parser
    
    A quoted cell whose closing quote is the final byte of input left
    ZSV_PARSER_QUOTE_PENDING unresolved, so zsv_finish de-escaped the cell
    interior including that quote: "a""" parsed as a"" instead of a".
    Resolve the pending quote as the closing quote at EOF and clamp
    scanned_length so cell_dl takes its easy path. The change is confined
    to zsv_finish.
    
    Add a no-eol-5 echo regression fixture covering the reported input.
    
    Co-Authored-By: Claude Code <noreply@anthropic.com>
    
    * Fix final cell byte loss at parse_bytes chunk boundary
    
    When a zsv_parse_bytes chunk ends immediately after a quoted cell's
    opening quote, zsv_finish consulted scanner->last, which holds the
    previous chunk's final byte, and skipped the virtual closing quote.
    The final cell then lost its last byte (abc became ab). Test the
    cell's actual last byte instead.
    
    Add test_eof_quote_chunk covering both engines.
    
    Co-Authored-By: Claude Code <noreply@anthropic.com>

commit 44d9cc1e571ddcdbbcb8f4e263b02741aa83c6b2
Author: liquidaty <info@liquidaty.com>
Date:   Mon Oct 26 17:43:54 2026 -0700

    fix desc -C missing arg handling (#702)

commit 0d1be33802e6a3f2f341ad8bf81a41b92f57a050
Author: Azeem <azeem.sajid@gmail.com>
Date:   Sun Oct 25 11:04:11 2026 +0500

    pkg(debian): `control` and `watch` files improvements [skip ci] (#701)
    
    Signed-off-by: Azeem Sajid <azeem.sajid@gmail.com>

commit 733718a25022857aed511e360ce8d41818295032
Author: liquidaty <info@liquidaty.com>
Date:   Mon Oct 19 21:36:29 2026 -0700

    utils: temp files fall back to /tmp, and a failed directory is named (#700)
    
    With TMPDIR unset, zsv_get_temp_filename() created its file in the
    current directory, and a failure printed nothing, so callers reported
    "Out of memory!". A read-only working directory with TMPDIR unset
    therefore failed every command that needed a temp file.
    
    On POSIX the function now tries $TMPDIR, then /tmp (not on wasi), then
    the current directory. Each directory that fails is reported as
    "cannot create temporary file in <dir>: <system error>", a fallback that
    succeeds warns, and errno is the last failure's. On Windows a strdup()
    failure removes the file GetTempFileName() created, and both failure
    paths set errno.
    
    Callers that printed "Out of memory!" or overwrote errno with ENOMEM
    after a failure (cli_ini, dirs_from_json, ext_example) now leave the
    report to the helper.
    
    test-temp-filename covers the directory order, empty TMPDIR, each
    fallback, the final failure's errno and message, and a read-only TMPDIR.
    
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

commit fcc2a40cd31696d00f825a5c5b3d9acfc2478931
Author: liquidaty <info@liquidaty.com>
Date:   Mon Oct 19 09:26:42 2026 -0700

    Sheet hide columns (#699)
    
    * sheet: add commands :hide-column and :unhide-column
    
    Hiding is a view setting of one buffer: the screen buffer keeps every column, and the
    grid, the cursor, the column search (`|`, `\`) and find (`/`, `n`) skip the hidden ones
    while the data, the saves and the transformations keep every column. `:hide-column`
    with no argument hides the column under the cursor; with arguments it hides every
    column whose header matches any of them, matched case-insensitively (ASCII), with `*`
    standing for any run of characters and double quotes for names with spaces.
    `:unhide-column` unhides every hidden column, or the ones named. While a buffer has
    hidden columns the footer shows `[N hidden]` at its right-hand end (`[Nh]` on a narrow
    terminal), and the help screen and docs list both commands.
    
    The row-number column cannot be hidden: sheet's own, or the `Row #` column a filter,
    sort or pivot result (or any data file whose first column is `Row #`) starts with.
    zsvsheet_ui_buffer_rownum_cols() is the one definition, shared with edit mode. A command
    that would leave no data column on screen is refused. A filter, sort or pivot result
    opens as a new buffer with every column visible; `:w` saves every column.
    
    The hidden set lives in the ui_buffer (app/sheet/hidden-columns.c: an ascending index
    set with the visible-column walks and the name matcher, host-unit-tested in
    app/test/test_sheet_hidden_columns.c), the commands in app/sheet/hide.c, and the
    display, movement and geometry changes in app/sheet.c. The display derives each cell's
    screen slot by counting the visible columns, so cursor movement, the footer cell,
    compare and edit mode see the same columns the grid draws.
    
    The procedure argument cap rises from 5 to 16 so a command can name more columns
    (procedure.c sizes its token array from the same constant). The lexer keeps single
    quotes as ordinary characters, so SQL string literals reach :sortexpr as typed
    (test-sheet-sortexpr-quoted), and passes isspace() an unsigned char. A host unit test
    (app/test/test_sheet_lexer.c) pins the lexer's quoting, escaping and rejection rules.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    
    * sheet: keep handler error messages up past the next input tick
    
    The main loop clears the footer's display-channel text on every getch(), which
    returns every 0.2 s (halfdelay) even with no key pressed. A handler that reported an
    error through zsvsheet_priv_set_status() therefore showed it for at most 0.2 s: find's
    "Not found", "Column not found", a bad find pattern, :open errors, a filter pattern
    error, "Invalid command", the compare spec errors, and the main loop's "Unexpected
    error!". These now go to the buffer's status (zsvsheet_ui_buffer_set_status[f]), as
    :w, the edit messages and :hide-column already do, so they stay for the status-message
    timeout (4 s by default) or until a newer status replaces them.
    
    test-sheet-status-persists waits a second before comparing, which fails on the old
    code. Three goldens recorded the erased message: test-sheet-find-after-filter and
    test-sheet-regex-filter now end on the error they provoke, and test-sheet-regex-find's
    last stage shows the cursor cell in the whole-cell overlay, as the error fills the
    footer.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    
    * test: settle test-sheet-hide-11 on the whole-cell overlay
    
    The 20-column terminal cannot show the cursor value in the footer, so the
    overlay replaces the grid 1 s after the last key. The old golden was the
    screen before the overlay, which a slow runner can miss. Wait past the
    overlay and compare the settled screen.
    
    Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
    
    * sheet: draw footer text with addstr rather than printw
    
    Some ncurses builds (Ubuntu 22.04's 6.3, for one) format printw() output
    in a buffer sized to the screen. The footer was cleared by printing 256
    padded columns, which crashed the sheet at startup on a terminal of fewer
    than 256 cells, such as 20x5. Clear the line with clrtoeol() and draw the
    status, prompt and typed text with addstr(), which does no formatting.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    
    * ci: run FreeBSD job on 14.5
    
    The FreeBSD 13 package repository has been removed from
    pkg.FreeBSD.org, so pkg install fails on the 13.2 VM.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

commit e0297632575c269c8659c49f02aeb71666903f50
Author: Azeem <azeem.sajid@gmail.com>
Date:   Wed Oct 14 15:54:39 2026 +0500

    pkg(debian): add `debian` directory (#698)
    
    Signed-off-by: Azeem Sajid <azeem.sajid@gmail.com>
Created: 2026-02-17 Last update: 2026-11-16 18:31
news
[rss feed]
  • [2026-10-19] zsv 1.4.4-1 MIGRATED to testing (Debian testing watch)
  • [2026-10-14] Accepted zsv 1.4.4-1 (source) into unstable (Azeem Sajid) (signed by: Alex Myczko)
  • [2026-03-14] zsv 1.3.0-4 MIGRATED to testing (Debian testing watch)
  • [2026-03-09] Accepted zsv 1.3.0-4 (source) into unstable (Azeem Sajid) (signed by: Alex Myczko)
  • [2026-03-08] Accepted zsv 1.3.0-3 (source) into unstable (Azeem Sajid) (signed by: Alex Myczko)
  • [2026-03-07] Accepted zsv 1.3.0-2 (source) into unstable (Azeem Sajid) (signed by: Alex Myczko)
  • [2026-02-17] Accepted zsv 1.3.0-1 (source arm64) into unstable (Debian FTP Masters) (signed by: Alex Myczko)
bugs [bug history graph]
  • all: 0
links
  • homepage
  • lintian
  • buildd: logs, reproducibility, cross
  • popcon
  • browse source code
  • other distros
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 1.3.0-4

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing