diff options
| author | George Purkins | 2011-04-05 15:56:49 -0400 |
|---|---|---|
| committer | jez | 2011-05-19 16:02:19 +0000 |
| commit | 71b66f32e456fb41da8351359a6f01f0aa159984 (patch) | |
| tree | c2997b395faf51c982ea0284a27c2728a6a63a29 | |
| parent | eeba8a63c120b39c48fa7d37e8d1a3c9afcb0270 (diff) | |
| download | vimium-71b66f32e456fb41da8351359a6f01f0aa159984.tar.bz2 | |
Added HUD notification for URL yanking.
| -rw-r--r-- | vimiumFrontend.js | 9 |
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) { |
