aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimiumFrontend.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index ee19d90f..4388c3a9 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -214,6 +214,13 @@ function registerFrameIfSizeAvailable (is_top) {
else
setTimeout(function () { registerFrameIfSizeAvailable(is_top); }, 100);
}
+/*
+ * Let the user know something has been yanked.
+*/
+function showYank() {
+ HUD.showForDuration("Yanked URL", 1000);
+}
+
/*
* Checks the currently focused element of the document and will enter insert mode if that element is focusable.
@@ -332,6 +339,8 @@ function copyCurrentUrl() {
// TODO(ilya): Convert to sendRequest.
var getCurrentUrlPort = chrome.extension.connect({ name: "getCurrentTabUrl" });
getCurrentUrlPort.postMessage({});
+
+ showYank();
}
function toggleViewSourceCallback(url) {