Repository navigation
Releases
Releases · iCaotix/obsidian-rich-csv
1.0.0
Full Changelog: 0.6.0...1.0.0
0.5.0
Type in the cell again on a phone, and keep off the navbar The cell dialog is gone. It was there because the software keyboard collapsed this view to nothing, but what actually fixed that was the floor under the table area — five rows, six with the filter row — and a floor holds for a cell just as it does for a filter box. Typing straight into the grid is the whole feel of a spreadsheet, and it is worth more than a dialog that solves a solved problem. What the dialog did for free was survive the keyboard. That opens after the tap that started the edit, and the table area is a few rows tall by the time it has, so the row being typed into can be below the bottom of it. The resize now scrolls that row back into view rather than recomputing the row window, which would empty the tbody and take the editor with it. The other end of the same box is the navigation bar, which floats over the view instead of taking space from it — so the summary row and the status bar sat underneath it. Obsidian publishes how much is covered as --view-bottom-spacing, the number its own table view keeps clear with, so that is padding under the whole view. Clamped at zero: it goes negative while the keyboard is up, because the bar has slid off the bottom of the screen with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0.4.0
Cut the documentation back to the parts that say why The README's sketch showed a status bar that lives at the bottom and no summary row; the lint section named two warnings where there are four; the Node-tested list had grown out of date. Those are now right. The rest is subtraction. A twelve-line comment explaining a one-line delegating method, a CSS note recounting which bug was reported, roadmap and format entries narrating what a feature used to be — none of it survives a reader asking what it is for. What states a reason stays. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0.3.0
Light the filter icon up while a column filter is set A filter can be hiding most of a file from behind a filter row that is collapsed, and the only thing that said so was "3 of 142 rows" at the opposite end of the view from the control that undoes it. The toolbar's filter toggle now wears the accent colour whenever any column filter has something in it, and its tooltip says how many and, when the row is hidden, that clicking shows them. The search box is deliberately not counted. It is in front of you with the text still in it, which is its own announcement; a filter has nothing of the sort. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0.2.0
Add a summary row along the bottom Sum, average, median, min, max, range, and the counts — all, values, empty, unique, and either of the last two as a percentage. One per column, chosen by clicking the footer cell, kept in the view state with everything else, and shown by a toolbar toggle that starts on for a file that was left with summaries set. They count `model.visible`, which is the rows the filter leaves rather than the rows the file has. That is the decision worth stating: a total of the whole file is a number you can get elsewhere and not the one you wanted when you typed something into a filter box. Filtering to this year and reading the sum is one action, the number always describes the table in front of you, and both the corner tooltip and the menu say which rows were counted when a filter is on. A numeric summary skips the cells that are not numbers rather than counting them as zero: a column of numbers with one `n/a` in it still has a sum, and an average that quietly counted the `n/a` as nothing would be wrong. A column with nothing numeric in it shows `—` and not `0`, since zero is a fact about data and there is no such fact there. An average is rounded to four decimals, because 10/3 shown to fifteen digits claims a precision the file has not got. Nothing is written, for the reason a totals row in a CSV is usually a bad idea: a file whose last line is `,,,42` is a file every other tool reads as one more row of data. The footer sticks to the bottom of the scroll container rather than to the end of the rows — a total you have to scroll to is one you have to go looking for — so scrollIntoView now keeps a row clear of both bars instead of only the header. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0.1.0
Fix four bugs from the second run in Obsidian Vertical scrolling did not work anywhere. renderBody emptied the tbody and only then read clientHeight and offsetHeight; those reads flush layout, and with the table collapsed to its header the browser saw a scroll container that no longer overflows and clamped scrollTop to zero. The next line read that zero back. Since this runs on every scroll event, the wheel moved the view down and the handler put it straight back. Everything is measured before the body is touched now, with a restore at the end for the cases where a filter or a delete really does make the document shorter. The empty-file message was a cell in a table whose width is the sum of its columns — 56px when there are none — so it was clipped to the row number gutter. It is a sibling of the table now, sticky at the left edge so a wide table cannot carry it off sideways, and the empty header bar goes with it. Cells could not hold a newline, because the editor was an input. It is a textarea that grows a row per line, floating over the rows below rather than pushing them down: the virtualised body places every row by multiplying one row height, and a row that grew mid-edit would put all of them in the wrong place. Shift+Enter is the textarea's own newline; the value is written as a quoted multi-line field, which parse and serialize already handled and there are now tests for. The filter row pinned on top of the column names instead of under them. `.rich-csv-filter-row th` lost on specificity to the `top: 0` in `.rich-csv-table thead th`, so both rows stuck at the same offset and the filter row, later in the DOM at the same z-index, painted over the names. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>