hl.dsp.window.swap

hl.dsp.window.swap(spec: table)

Create a dispatcher.

Signature

hl.dsp.window.swap(spec: table): HL.Dispatcher

Parameters

directionstring, optional

Swap in a direction.

target, with, otherHL.WindowSelector, optional

Target window selector. These are aliases; the first present one is used.

nextboolean, optional

Swap with next window.

prevboolean, optional

Swap with previous window.

windowHL.WindowSelector, optional

Source window.

Returns

dispatcherHL.Dispatcher

Dispatcher object returned by this function.

Examples

hl.dispatch(hl.dsp.window.swap({ direction = "left" }))
hl.dispatch(hl.dsp.window.swap({ with = "class:firefox" }))

See also

HL.Dispatcher

Dispatcher object returned by this function.

hl.bind()

Bind a dispatcher to a key.

hl.dispatch()

Execute a dispatcher immediately.