Project

General

Profile

unexist.dev

subtle

Assorted tidbits and projects

Hooks

Hooks in subtle 0.8.1070
Added by Christoph Kappel almost 15 years ago

Currently there exist only three type of hooks, more are planned. Inside of this hooks can every feature of subtlext be used.

The following hooks exist so far:

Create
--------
Triggers on new clients and has the new client as parameter:
"HookCreate" => { |c| puts c.name }

Jump
------
Triggers on view jumps and has the active view as parameter:
"HookJump" => { |v| puts v.name }

Focus
------
Triggers when a client gets focus and has the focussed client as parameter:
"HookFocus" => { |c| puts c.name }


Comments