aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-03-24 12:49:43 +0100
committerGravatar Tom Willemsen2013-03-24 12:49:43 +0100
commit98ff90916417201a6c8d2108374556c9a73f05db (patch)
tree3bb15893da3858e9e8beb5cd62391bcc1819f272
parent418f7c9d2a88c97a3c90d7f96dd4cbf128ba9c1f (diff)
downloadclark-98ff90916417201a6c8d2108374556c9a73f05db.tar.gz
clark-98ff90916417201a6c8d2108374556c9a73f05db.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--js/clark.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/clark.js b/js/clark.js
index c256904..7bc30f5 100644
--- a/js/clark.js
+++ b/js/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("' '")