Skip to content

Plural lnhash views: lnhashview_files/lnhashview_cells take several targets - #39

Open
ncoop57 wants to merge 5 commits into
mainfrom
lnhashview-files
Open

Plural lnhash views: lnhashview_files/lnhashview_cells take several targets#39
ncoop57 wants to merge 5 commits into
mainfrom
lnhashview-files

Conversation

@ncoop57

@ncoop57 ncoop57 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The lnhash views take one or more targets under the plural name, mirroring the fastcore PR (AnswerDotAI/fastcore#887):

  • lnhashview_files(*paths, ...): several files get # file <path> group headers (the same grammar as multi-target file_exhash output); a single path renders bare
  • lnhashview_cells(path, *cell_ids, ...): same for cells, absorbing the old single-cell form (headers use the resolved cell id)

Breaking changes: lnhashview_file and lnhashview_cell are renamed to the plurals (no aliases), and start/end are keyword-only, applied per target. The lnhashview CLI has its own argv path and is unaffected.

Changes

  • python/exhash/__init__.py: both views loop their targets; single-target output is unchanged from the old singulars
  • python/exhash/skill.py and README.md: names and docs updated
  • tests: multi-target tests run red-green, test names follow the plurals

@ncoop57
ncoop57 marked this pull request as ready for review August 2, 2026 22:34
@ncoop57
ncoop57 requested a review from jph00 August 2, 2026 22:34
@ncoop57 ncoop57 changed the title Add lnhashview_files for viewing several files with headers lnhashview_file takes several paths via *args Aug 3, 2026
@ncoop57
ncoop57 marked this pull request as draft August 3, 2026 18:29
@ncoop57 ncoop57 changed the title lnhashview_file takes several paths via *args Singular lnhash views take several targets via *args; retire lnhashview_cells Aug 3, 2026
@ncoop57
ncoop57 marked this pull request as ready for review August 3, 2026 18:51
@ncoop57 ncoop57 changed the title Singular lnhash views take several targets via *args; retire lnhashview_cells Plural lnhash views: lnhashview_files/lnhashview_cells take several targets Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant