orkmode/ui
Levi Neely ed65235940 Fix field clearing and gate drag behind press-and-hold
Two issues with the editing UI:

Clearing a keyword/priority did nothing. The "None" menu items write an
empty value to the field, which the client sends as an OTRUNC open plus a
zero-length Twrite. But the server flushed the virtfs write handler on
clunk only when the write buffer was non-empty, so the empty write — the
whole point of a clear — was dropped and the field kept its old value.
Flush on clunk whenever the fid was opened for writing (non-rdwr), not
just when bytes were buffered, so an empty write clears the field.
Verified live: an empty stdin write to /<doc>/<id>/keyword and /priority
now removes the keyword and priority from the headline.

Drag-to-refile fought the ListView. The grip's DragHandler and the
enclosing Flickable both wanted the press, so dragging usually scrolled
instead of moving the section. Gate the drag behind a press-and-hold: a
left-gutter grip (⠿ in a rounded cell) arms on a 0.35s long press
(TapHandler.onLongPressed), and the DragHandler is enabled only while
armed. A quick press-drag now scrolls the list; a hold then drag performs
the structural move. The grip highlights while armed/dragging and shows
an open-hand/size-all cursor.

GUI builds clean; server builds clean.
2026-10-05 09:19:24 +02:00
..
qml Fix field clearing and gate drag behind press-and-hold 2026-10-05 09:19:24 +02:00
src Add drag-and-drop structural moves with a live drop indicator 2026-10-02 16:00:54 +02:00
CMakeLists.txt Edit SCHEDULED/DEADLINE via a calendar date picker 2026-10-02 14:50:51 +02:00