aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();