From 74787a60d781282ab4f242f1ce8c4d1e2b41aa81 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 May 2026 15:51:52 +0530 Subject: [PATCH] New option to control when dnd kitten exits To be implemented --- kittens/dnd/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kittens/dnd/main.py b/kittens/dnd/main.py index b0840298a..8e76ac554 100644 --- a/kittens/dnd/main.py +++ b/kittens/dnd/main.py @@ -50,6 +50,14 @@ default=512 type=int The thumbnail size for the image used as the drag icon. Images larger than this size are downscaled. Note that the terminal may reject the drag if the image is too large. + + +--exit-on +default=esc-key +A comma separated list of events to exit on. Possible events are :code:`drag-finish`, +:code:`drop-finish` and :code:`esc-key`. The first two events refer to a successful +completion of a drag or a drop respectively. :code:`esc-key` means press the :kbd:`Esc` +key. '''.format