diff options
| -rw-r--r-- | pentadactyl/.pentadactylrc | 16 | 
1 files changed, 3 insertions, 13 deletions
diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc index a0791a0..41fb6ef 100644 --- a/pentadactyl/.pentadactylrc +++ b/pentadactyl/.pentadactylrc @@ -33,6 +33,8 @@ hi                                           HintElem  hi                                           Hint[active]                             background:#aadb0f;color:#161616;  hi                                           HintActive                               background:#aadb0f; +style -name ublick * #nav-bar * {visibility:visible} +  command! reader -js <<EOF  if ( buffer.URL.spec.startsWith('about:reader?') ) {  	dactyl.execute('back') @@ -41,18 +43,6 @@ if ( buffer.URL.spec.startsWith('about:reader?') ) {  }  EOF -command! push2inbox -js <<EOF -var selection = content.getSelection().toString(); -var entry     = '\* ' + buffer.URL; - -if ( selection ) { -	entry += '\\n\\t\* ' + selection; -} else if ( content.document.title ) { -	entry += '\\n\\t\* ' + content.document.title; -} - -dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki'); -EOF  command! cite -js <<EOF  var entry = '\\n'            + '    [...] ' + content.getSelection().toString().replace('\n', '\n    ') + ' [...]\\n' @@ -60,7 +50,7 @@ var entry = '\\n'            + '     ― ' + buffer.URL            + '\\n'; -dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/web/inbox.wiki'); +dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/quote/inbox.wiki');  EOF  map -builtin -ex <F9>  :reader  | 
