feat: the clock of the Android editor moves the shard at the cursor to now #342
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "340_clock-moves-shard-to-now"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #340.
The clock in the bar above the keyboard used to insert
@HHMMSSat the cursor. Now it moves the shard the cursor is in to now.Behaviour
@HHMMSS,@YYYYMMDD,@YYYYMMDDHHMMSS) are removed. In their place go the markers it needs to read as now, relative to what it inherits, viamoment_markers, the same asappend. That gives@HHMMSS, or@YYYYMMDD @HHMMSSon another day, and always at least the time.# @124000 Callat 13:00 becomes# @130000 Call.#or list mark.Changes
document/moment.rshasmove_to_now, which returns aMomentEdit:Linewith the new cursor,AtCursor, orUnchanged. It is also on the facade asapi::move_to_now. 18 tests cover headings, list items, nesting, inherited dates, a DST gap, undated files, the line-1 fallback and the re-check.project.moveToNow(text, fileName, offset, now), which converts byte offsets to UTF-16 units of the Kotlin string. The test uses non-ASCII text and an emoji.MomentChangeandCapturing.moveToNow, implemented byCaptureAdapterandStreamSession.Typed.applyinginEditing.ktapplies it and has unit tests. The tool label is now "Move to now".Checks
nix flake checkpasses.nix build .#streamd-apppasses, with the unit and screenshot tests. The screenshots are unchanged, since the label is only a content description.