mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Allow mocking remote clients
This commit is contained in:
@@ -97,10 +97,10 @@ func run_loop(opts *Options, drop_dests map[string]drop_dest, drag_sources map[s
|
||||
lp.OnInitialize = func() (string, error) {
|
||||
lp.AllowLineWrapping(false)
|
||||
if allow_drops {
|
||||
lp.StartAcceptingDrops(slices.Collect(maps.Keys(drop_dests))...)
|
||||
lp.StartAcceptingDrops(opts.MachineId, slices.Collect(maps.Keys(drop_dests))...)
|
||||
}
|
||||
if allow_drags {
|
||||
lp.StartOfferingDrags()
|
||||
lp.StartOfferingDrags(opts.MachineId)
|
||||
}
|
||||
lp.SetWindowTitle("Drag and drop")
|
||||
return "", render_screen()
|
||||
|
||||
@@ -34,6 +34,10 @@ choices=copy,move,either
|
||||
The set of allowed actions when dragging. If :code:`either` is chosen then the drop destination can pick
|
||||
which action it wants. If the action is a move, then the dragged files are deleted when the drag finishes
|
||||
and the kitten exits after the drag.
|
||||
|
||||
|
||||
--machine-id
|
||||
The machine id to use instead of the actual machine id.
|
||||
'''.format
|
||||
|
||||
help_text = '''\
|
||||
|
||||
Reference in New Issue
Block a user