-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I reference other cells? #2
Comments
Nvm, cursor helped me find $coord and $neighbor (but neighbor wasn't quite working). Couldn't find sth like $id though. Even just screenshots with the formulas shown for the cells would be very useful. |
@joshcho : The demo spreadsheet in dev/resources/demo-sheet.edn has some (hopefully) useful examples. I don't know about "by ID", but you can apparently name a cell (see line 16) and then refer to it using update: looking at src/tesserae/eval.clj:131, there's a
I don't (yet) see anything about referencing by update: Oh, I just re-read your second comment and saw that you already found update: (final?) At this point, I'm willing to say that there is no "blessed" way to refer to a cell by ID, since the ID comes from the underlying data layer (Datalevin) and is technically an implementation detail. Using a name is probably the way to go, if you want a reference that will survive rearrangement of the sheet. I'm not even sure IDs are stable under that circumstance, since I haven't reviewed the code that deeply 😅. (Please note that I'm making assumptions based on reading the code, and haven't actually installed anything yet 😅) |
I know the focus is more on development rather than documentation, but I'd love to try this. How do I reference other cells via id?
Also, if you have the bandwidth, would love a zoom-based demo, email me at [email protected]
The text was updated successfully, but these errors were encountered: