var GRIFTER = fs.readFileSync(__dirname+'/grifter.hogan', 'utf8')
var _ = require('underscore')
var D = require('./dombii.js')
var through = require('through2')
var drompii = require('./drompii.js')


module.exports = function Grifter () {
  var s = through.obj()

  var grift = D({
    template : GRIFTER,
    parent : document.body,
    events : [
      ['.grifter','keyup',edit]
    ]
  })
  
  function grifter (e) {
    e.preventDefault()
    blob = drompii(e)
    console.log(JSON.stringify(blob))
    grift.draw({x:0,y:0,body:_.values(blob.edit)[0]})
  }

  function edit (e) { 
    if (e.keyCode === 13) 
      s.push({key:'+$'+blob.id,value:blob.data})
  }

  window.addEventListener('contextmenu',grifter,false)

  return s 
}

function dax (value, data) { // merge blob dax with d!!!

}

@@ -1,75 +1,39 @@
 var 
-GRIFTER = fs.readFileSync(__dirname+'/grifter.hogan', 'utf8
+_ = require('underscore
 ')%0Avar 
-_
+D
  = r
@@ -40,34 +40,41 @@
 equire('
-underscore')%0Avar D
+./dombii.js')%0Avar drompii
  = requi
@@ -72,35 +72,36 @@
 i = require('./d
+r
 om
-b
+p
 ii.js')%0Avar thro
@@ -126,27 +126,28 @@
 ough2')%0A
+%0A
 var 
-drompii
+GRIFTER
  = requi
@@ -154,86 +154,469 @@
 re('
-./drompii.js')%0A%0A%0Amodule.exports = function Grifter () %7B%0A  var s = through.obj(
+fs').readFileSync(__dirname+'/grifter.hogan', 'utf8')%0A%0A// what data does this need ? how should it interface?%0A%0Amodule.exports = function Grifter () %7B%0A  var s = through.obj(function (e) %7B%0A    console.log(e)%0A  %7D)  %0A%0A  var editor = new D(%7B%0A    template : GRIFTER,%0A    parent : document.body,%0A    events : %5B%0A      %5B'.grifter','keyup',edit%5D,%0A      %5B'.grifter','dragenter',cancel%5D,%0A      %5B'.grifter','dragleave',cancel%5D,%0A      %5B'.grifter','dragover',cancel%5D%0A    %5D%0A  %7D
 )%0A%0A 
@@ -797,176 +797,356 @@
 t()%0A
-    blob = drompii(e)%0A    console.log(JSON.stringify(blob))%0A    grift.draw(%7Bx:0,y:0,body:_.values(blob.edit)%5B0%5D%7D)%0A  %7D%0A%0A  function edit (e) %7B %0A    if (e.keyCode === 13) 
+%0A    s.push(e)%0A   %0A    if (e.target.parentNode.class === 'lib') %7B // modify these menus -- load%0A      return false%0A    %7D %0A%0A    blob = drompii(e)%0A%0A    console.log(blob)%0A%0A  %7D%0A%0A  function edit (e) %7B %0A    if (e.keyCode === 13) %7B%0A      e.preventDefault()%0A      var body = e.target.value.replace(/%5B%5Cn%5Cr%5D/g,'')%0A      blob.data%5B_.keys(blob.edit)%5B0%5D%5D = body
 %0A   
@@ -1191,16 +1191,62 @@
 .data%7D)%0A
+      editor.erase()%0A      return false%0A    %7D%0A
   %7D%0A%0A  w
@@ -1326,55 +1326,35 @@
 ion 
-dax (value, data) %7B // merge blob dax with d!!!%0A%0A
+cancel(e)%7B;e.preventDefault()
 %7D%0A

add sep grifter module