Conversation
|
@nagisml I've tested it locally: What I like:
Two design questions I'd like to settle before the API grows:
A minor one: every row triggers a full refresh of the table row, map pin and detail panel. That's fine for small lists, but slow with thousands of rows (the CSV limit is 10 MB). Batching the refresh could come later. Needed before merge: this conflicts with #948 in |
|
@nagisml 1. File access in I'd restrict reading to a few allowed locations, plus an explicit way for the user to pick anything else:
Technically it's only a few lines: resolve the path with The reason to do it now: permissions are easy to widen later and hard to take back. If we allow arbitrary paths now and tighten it later, existing macros break. The same rule should also apply to the writing functions later ( 2. Partially filled rows I'd flip the default: empty means "do nothing", not "clear". An empty cell in a CSV is far more often a mistake, or a cache not solved yet, than a wish to delete data. Concretely:
Later, once Happy to discuss if you see it differently. You know the macro runtime better than I do at this point. |
|
@AgreeDK need to leave soon so a first quick reply
Partially filled rows
|
|
@AgreeDK conflicts solved. Up to you if want to merge or wait for the hardenings |
|
@AgreeDK btw any idea how to document the LUA OpenSAK calls? Starting early would help here as well. |
|
@nagisml |
|
@nagisml 1. Approved folder list for read/write Good idea, and the OneDrive case is a real need. I agree with an approved folder list. A few details I think are important:
2. Example scripts and test CSV
3. Documenting the Lua API Agreed, starting early is a good idea. I'd make the code the single source of truth:
4. Merge now or wait? I'd prefer to wait for the folder restriction. If we merge now, unrestricted read access ships in the next beta, and the next PR would change how paths behave anyway. The partially-filled-rows fix is only a few lines in the example script, so it could go in at the same time. No rush. Thanks again for all the work on this! |
POC example for a CSV read and correcting coordinates
Test files:
corrected_coords.zip