aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Purkins2011-04-05 15:56:49 -0400
committerjez2011-05-19 16:02:19 +0000
commit71b66f32e456fb41da8351359a6f01f0aa159984 (patch)
treec2997b395faf51c982ea0284a27c2728a6a63a29
parenteeba8a63c120b39c48fa7d37e8d1a3c9afcb0270 (diff)
downloadvimium-71b66f32e456fb41da8351359a6f01f0aa159984.tar.bz2
Added HUD notification for URL yanking.
-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) {