aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-03-24 12:49:43 +0100
committerGravatar Tom Willemsen2013-03-24 12:49:43 +0100
commitea6b06beec7f3ddcc70b9e3c6d233e90a61dca17 (patch)
tree7384c127d787f2024c861518c19e96929cced2f0
parent13d9dab58edaa1021dff45e5e1784c4dd1a4418b (diff)
downloadclark-conkeror-ea6b06beec7f3ddcc70b9e3c6d233e90a61dca17.tar.gz
clark-conkeror-ea6b06beec7f3ddcc70b9e3c6d233e90a61dca17.zip
The command syntax has changed
This is not markam. Markam would try to figure out that you wanted to add a url to the database by looking for either `http://' or `https://' at the start of the first argument, but CLark uses the `add' command so there should be no confusion.
-rw-r--r--clark.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/clark.js b/clark.js
index c256904..7bc30f5 100644
--- a/clark.js
+++ b/clark.js
@@ -49,7 +49,7 @@ function clark_add_url(I, url, title)
let tags = yield I.minibuffer.read(
$prompt="tags (comma delimited): "
);
- let command = clark_program + ' "' + url_string + '" "' + title
+ let command = clark_program + ' add "' + url_string + '" "' + title
+ '" "' + description + '" \''
+ tags.split(',').map(function (str)
{ return str.trim(); }).join("' '")