orkmode/ui/qml
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
..
DatePickerDialog.qml Add in-place body editing with timestamp insertion 2026-10-02 15:18:08 +02:00
Main.qml Add an org path setting with a directory picker to Settings 2026-10-02 12:11:19 +02:00
OutlineView.qml Fix field clearing and gate drag behind press-and-hold 2026-10-05 09:19:24 +02:00
SettingsDialog.qml Make the Settings dialog content scrollable 2026-10-02 12:14:12 +02:00