aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-06-08 18:00:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-06-08 18:00:47 -0300
commit0047e8b1c0f493ed4c6703a79695b8d03bfdeb1b (patch)
tree87915db178c6b0dfe17adb696299c9ac3e4daf42
parentae71781b6a59133a3c1d45cdb0b303f8946712d5 (diff)
downloadvimperator-0047e8b1c0f493ed4c6703a79695b8d03bfdeb1b.tar.gz
vimperator-0047e8b1c0f493ed4c6703a79695b8d03bfdeb1b.tar.bz2
Remove links snippet
-rw-r--r--vimperatorrc.dot.link19
1 files changed, 5 insertions, 14 deletions
diff --git a/vimperatorrc.dot.link b/vimperatorrc.dot.link
index 889d3bb..dfd3108 100644
--- a/vimperatorrc.dot.link
+++ b/vimperatorrc.dot.link
@@ -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();