First attempt on writing a plugin using code form various warp-plugins.