Skip to content

Instantly share code, notes, and snippets.

@jordonbiondo
Created May 22, 2014 20:30
Show Gist options
  • Select an option

  • Save jordonbiondo/41e4d9217f825caa8cd5 to your computer and use it in GitHub Desktop.

Select an option

Save jordonbiondo/41e4d9217f825caa8cd5 to your computer and use it in GitHub Desktop.
interactive("manual_bookmark",
"Create a bookmark.",
function (I) {
var uri_string = yield I.minibuffer.read(
$prompt = "Bookmark URL:",
$initial_value = I.buffer.display_uri_string || "");
var title = yield I.minibuffer.read(
$prompt = "Bookmark with title:",
$initial_value = I.buffer.title || "");
add_bookmark(uri_string, title);
I.minibuffer.message("Added bookmark: " + uri_string + " - " + title);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment