]> gitweb.fluxo.info Git - rhatto/dotfiles/vimperator.git/commitdiff
Remove links snippet
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 8 Jun 2015 21:00:47 +0000 (18:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 8 Jun 2015 21:00:47 +0000 (18:00 -0300)
vimperatorrc.dot.link

index 889d3bb3f9792b31e4a6ea5771c559e77e7bb046..dfd3108642fa79d3638e14f86fe21e61b617443f 100644 (file)
@@ -8,6 +8,9 @@ set tabnumbers
 set titlestring=
 set defsearch=duckduckgo
 
+" Load plugins
+loadplugins
+
 " Theme
 "colorscheme zenburn
 
@@ -51,17 +54,5 @@ command sendtabs :emenu File.Send Tab URLs...
 " https://addons.mozilla.org/en-US/firefox/addon/copyurls/
 command copyurls :emenu Edit.Copy Urls Expert.Tabs In This Window
 
-" FIXME
-" Post to Links Saraventos
-command! -nargs=* link js link(<args>);
-:js <<EOJS
-  link = function(args) {
-    var instance = 'https://links.sarava.org/bookmarks?action=add&address=';
-    var doc      = content.document;
-    var href     = encodeURIComponent(content.document.location);
-    var title    = encodeURIComponent(content.document.title);
-    var desc     = encodeURIComponent(doc.getSelection());
-    var tags     = encodeURIComponent(args.toString().replace(/,,/g, ';').replace(/,/g, ' ').replace(/;/g, ', '));
-    commands.execute('tabopen ' + instance + href + '&title=' + title + '&description=' + desc + '&tags=' + tags);
-  }
-EOJS
+" See https://stackoverflow.com/questions/30586384/vimperator-reload-plugin
+command! reloadPlugins :js liberator.pluginFiles = {}; liberator.loadPlugins();