frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A terminal spreadsheet editor with Vim keybindings

https://github.com/garritfra/cell
32•garritfra•3h ago
While speccing out this spreadsheet tool, I realized that I never had to think about the keybindings. It all just came naturally from Vim. Normal/insert/visual modes, hjkl navigation, dd/yy/p, :w, :q. The usual muscle memory works.

It supports CSV/TSV import and export, and a native .cell format that preserves formulas. The formula engine handles SUM, AVERAGE, COUNT, MIN, MAX, and IF with range references.

The codebase is a Cargo workspace: a pure cell-sheet-core library (no TUI dependency) and a cell-sheet-tui crate on top of ratatui. Early days, but it's usable.

To try it out: cargo install cell-sheet-tui

Feedback of any kind is greatly appreciated!

Comments

SilentEditor•2h ago
Cool project!

The Vim modal model feels almsot native for spreadsheets, and splitting the formula engine into a TUI-free core was prolly a great architectural choice.

How are you thinking about recalculation, dependency tracking, and undo/redo as the sheet grows, especially once multi-cell edits and larger CSVs start stressing the core?

garritfra•42m ago
Thanks!

Honestly, the current implementations are pretty naive — they pass the tests and feel snappy on the small sheets I work with, but they'd buckle pretty quickly under real load. Most of what you're asking about is already on the tracker; I opened a batch of issues citing your comment as the prompt.

Recalculation. Right now it's a full recalc on every edit: recalculate collects all formula cells, computes in-degrees across the whole formula set, topo-sorts, and evaluates top to bottom. The dirty flag gets propagated by mark_dirty but isn't actually used to prune work. It's also re-parsing every formula from its raw string on every pass. Two issues cover this: #8 introduces a batch boundary so paste/fill/CSV import trigger one recalc instead of N, and #7 adds criterion benches so we can actually tell whether the parser, the BFS, or the topo sort is the hotspot before optimizing. AST caching on Cell is the obvious next step once #7 confirms parsing dominates.

https://github.com/garritfra/cell/issues/8 https://github.com/garritfra/cell/issues/7

Dependency tracking. The bigger smell is in extract_deps — a range like SUM(A1:A1000) literally enumerates 1000 cell positions into the dep graph, with a HashSet per cell on each side. Fine at hundreds of cells, a disaster at hundreds of thousands. Range expansion is one of the bench cases in #7; the proper fix (interval-keyed deps so ranges stay first-class instead of fanning out) doesn't have its own issue yet — I should open one, since #7 only measures the problem.

Undo/redo. This is the worst offender right now. UndoEntry only had a single-cell variant until very recently; #12 added MultiCellEdit, but #13 tracks two destructive paths I missed — visual-mode d and p/P paste — that still don't push undo entries at all. #9 is the broader coalescing story (one dd = one undo, CSV import = one undo, etc.), tied to the batch mechanism from #8 so a single transaction produces a single undo entry. sort_by_column is also non-undoable today and belongs in that bucket.

https://github.com/garritfra/cell/issues/13 https://github.com/garritfra/cell/issues/9

Larger CSVs. Storage is HashMap<CellPos, Cell> — fine sparse but with overhead per cell; for very wide imports a column-oriented or arena layout would pay off. I haven't profiled it though, so this is speculative; the dependency-graph blowup will hurt before raw storage does. #7 includes a 100k-row CSV load case to put numbers on it.

And #10 is the meta-issue to lift all of this out of source comments and into actual architecture docs, which I probably should have done before posting.

https://github.com/garritfra/cell/issues/10

So: nothing here scales today, but the architecture splits cleanly enough that none of it needs a rewrite — AST caching, dirty-set recalc, range-aware deps, and grouped undo are the four threads, and most have issues attached.

WillAdams•1h ago
Was initially hopeful that this would rather than have A..B..C... and 1..2..3... for columns and rows would instead have one creating categories à la Javelin/Lotus Improv/Quantrix/Flexisheet --- give me that, and have a dynamic system for displaying a pane of formulae and one would have a _very_ nice tool.
garritfra•51m ago
Huh, I haven't thought about that yet, but I like it. I opened an issue to track this: https://github.com/garritfra/cell/issues/11

I'd have to look into the tools you mentioned to really understand all the details. Thanks!

WillAdams•23m ago
Thanks! I'm gratified!

I made a comment on that issue which hopefully will inform this --- I will note that while on the surface it's a great idea, the UI will be _very_ challenging and not being able to address it may make it not worth pursuing.

Alternately, maybe the correct approach would be some sort of hybrid where columns/rows can be named and then referred to using said names....

I really miss Lotus Improv, and can't afford Quantrix, and don't have the programming chops to resurrect Flexisheet, so I keep pestering folks about this, but in the meanwhile, I use pyspread....

marcyb5st•1h ago
Pretty cool project! Congrats.

QQ: does it support programmatic cell access/modifications?

Eg `cell file.cell --write A2 "42"` or `cell file.cell --read "=SUM(A1:A10)"`? Couldn't surmise that from the glimpse I gave the README, but it would be pretty cool for scripting stuff.

garritfra•1h ago
Love this idea! I created a GH issue for this: https://github.com/garritfra/cell/issues/6

I'll try to add this ASAP. :)

bytejanitor•1h ago
Looks very nice at first glance.

I have been looking for something like this for a long time. Maybe this has some potential to become somewhat popular.

Theaetetus•53m ago
This is great. I often want a low-latency, minimal-feeling option for this sort of thing. (And I get to use my Vim muscle memory less and less often these days!)

Really, thanks for making and sharing this; so far, I feel calm and happy when I'm using it.

garritfra•50m ago
Glad to hear that. Thanks for trying it out! If you have any feedback, I'd be more than happy to hear it.
slu•47m ago
Nice. I've been using https://github.com/andmarti1424/sc-im for a while now. It would be great with a comparison.
garritfra•25m ago
Cell is heavily inspired by this project. FWIW, I added a comparison chart to the README: https://github.com/garritfra/cell#comparison-with-sc-im
ximm•13m ago
I was working on something similar a while back (https://github.com/xi/spreadsheet) but ended up not using it. I just didn't end up being the first tool that came to mind when I was reaching for a spreadsheet. Not sure why.

I will definitely try out your tool and check if it works better to me.

Two random thoughts:

- In excel I often use the dragging feature, i.e. use a formula like $A2 + B$1 and then drag it in both directions. Does your tool have something similar?

- Another nice feature are visualizations. In my tool I added a bar() function that renders a value between 0 and 1 as a bar in the cell. Not sure how flexible that is, but I did have some fun with it.

Show HN: OSS Agent I built topped the TerminalBench on Gemini-3-flash-preview

https://github.com/dirac-run/dirac
99•GodelNumbering•2h ago•31 comments

Show HN: A terminal spreadsheet editor with Vim keybindings

https://github.com/garritfra/cell
32•garritfra•3h ago•13 comments

Show HN: I built a dual crossword puzzle where two crosswords share one grid

https://forkle.co.uk/
13•daveoshawrus•3h ago•11 comments

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
162•2DcAf•23h ago•42 comments

Show HN: YubiClicker, a clicker game that requires a physical security key

https://yubiclicker.com/
4•k3wl•2h ago•0 comments

Show HN: Turning a Gaussian Splat into a videogame

https://blog.playcanvas.com/turning-a-gaussian-splat-into-a-videogame/
221•yak32•4d ago•54 comments

Show HN: I built a reference site for the recurring hard problems in software

https://thehardparts.dev/
6•ludovicianul•3h ago•1 comments

Show HN: The Unix Magic poster, annotated (updated)

https://github.com/drio/unixmagic
45•drio•13h ago•4 comments

Show HN: Tiao, A two-player turn-based board game

https://playtiao.com
52•trebeljahr•17h ago•21 comments

Show HN: Launch Your Product. Get Seen Weekly

4•kalashvasaniya•4h ago•2 comments

Show HN: Startup Equity Adventure Game

https://options-game-polymathrobotics.pythonanywhere.com/
29•iliabara•16h ago•15 comments

Show HN: Building a SQL analyst agent from scratch

https://raminmousavi.dev/blog/building-a-sql-analyst-agent
5•ramin2nt2•5h ago•0 comments

Show HN: AgentSwarms – free hands-on playground to learn agentic AI, no setup

https://agentswarms.fyi/
19•rohan044•18h ago•5 comments

Show HN: AI memory with biological decay (52% recall)

https://github.com/sachitrafa/YourMemory
92•SachitRafa•17h ago•39 comments

Show HN: Matrirc – run irssi in 2026, talk to people on Matrix

https://github.com/pawelb0/matrirc
11•pawelb0•17h ago•0 comments

Show HN: A free ESG stock screener that publishes its losses and methodology

https://jumpstartsignal.com/
28•irldexter•1d ago•25 comments

Show HN: Auge Vision from Your Terminal

https://auge.franzai.com/
24•franze•19h ago•4 comments

Show HN: I remade my blog into a Windows 3.1 environment

https://passo.uno/
23•theletterf•1d ago•20 comments

Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

https://github.com/russellromney/honker
311•russellthehippo•4d ago•80 comments

Show HN: I've built a nice home server OS

https://lightwhale.asklandd.dk/
189•Zta77•2d ago•81 comments

Show HN: Kloak, A secret manager that keeps K8s workload away from secrets

https://getkloak.io/
61•neo2006•1d ago•52 comments

Show HN: Browser Harness – Gives LLM freedom to complete any browser task

https://github.com/browser-use/browser-harness
130•gregpr07•3d ago•62 comments

Show HN: A Karpathy-style LLM wiki your agents maintain (Markdown and Git)

https://github.com/nex-crm/wuphf
255•najmuzzaman•2d ago•113 comments

Show HN: Gova – The declarative GUI framework for Go

https://github.com/NV404/gova
141•aliezsid•3d ago•28 comments

Show HN: Friendly prediction markets to turn trips into a running tournament

https://bets.bernikins.com/
4•k0rm•12h ago•0 comments

Show HN: Browse GitHub repos in Emacs without cloning

https://github.com/agzam/remoto.el
22•iLemming•1d ago•12 comments

Show HN: Agent Vault – Open-source credential proxy and vault for agents

https://github.com/Infisical/agent-vault
156•dangtony98•4d ago•56 comments

Show HN: CrabPDF – privacy-first PDF editor that edits real text

https://crabpdf.com/
5•rabbithols•14h ago•2 comments

Show HN: Nitrum – Rust Toolkit and CLI for AWS Nitro Enclaves

https://github.com/matzapata/nitrum
5•matzapata•15h ago•1 comments

Show HN: Out Loud – open-source desktop TTS app for macOS/Windows/Linux

https://github.com/light-cloud-com/out-loud
2•julia-kafarska•16h ago•0 comments