Project

General

Profile

unexist.dev

/

subtle

Assorted tidbits and projects

Hooks » History » Version 2

murth murth, 08/07/2009 06:25 AM
Fixed grammar

1 2 murth murth
h1. Hooks\015\012\015\012Currently there exist only three types of hooks, although more are planned. Every feature of subtlext be used inside these hooks.\015\012The following hooks exist so far:\015\012\015\012h2. Create\015\012\015\012Triggers on new clients and has the new client as parameter:\015\012<pre>"HookCreate" => { |c| puts c.name }</pre>\015\012\015\012h2. Jump\015\012\015\012Triggers on view jumps and has the active view as parameter:\015\012<pre>"HookJump" => { |v| puts v.name }</pre>\015\012\015\012h3. Focus\015\012\015\012Triggers when a client gets focus and has the focussed client as parameter:\015\012<pre>"HookFocus" => { |c| puts c.name }</pre>\015\012