Skip to content

home: a keystroke-shaped drop is converted while it arrives, as chat's is #163

Closed

Description

@santoshkumarradha

Follow-up to #152 / #160.

`dropkeys.go`'s fold (`dropWatch` / `dropSettled` / `spendDrop`) is wired to the chat editor only. On home, a drop delivered as keystrokes (some terminals and multiplexers type the path — the shape the owner met over `--host`) sits in the box as raw text until `enter`, where the `droppedLine` net catches it. While it sits there home filters its list by the path (the list empties) and the `ask here` / `start` rows quote the path.

Give home's box (and the `ask here` pane's) the same fold: the run is converted two frames after it goes quiet, through the one door `pasteFilesInto(box, chips, text)`. The fold has to carry WHICH box it is watching, and its perf counters (dropkeys_test.go's ceilings) must stay meaningful — one fold, one box at a time; a box change resets it.


Drafted with CodeAF · reviewed and owned by the author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:chatbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions