From 19d0ca3e605ed36582a8bb48c3b7a07e3f6e5398 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sun, 13 Mar 2016 09:26:38 +0100 Subject: [PATCH] Add notification for the `O` command when no search bar --- extension/lib/commands.coffee | 2 ++ extension/locale/de/vimfx.properties | 1 + extension/locale/en-US/vimfx.properties | 1 + extension/locale/es/vimfx.properties | 1 + extension/locale/fr/vimfx.properties | 1 + extension/locale/id/vimfx.properties | 1 + extension/locale/it/vimfx.properties | 1 + extension/locale/ja/vimfx.properties | 1 + extension/locale/nl/vimfx.properties | 1 + extension/locale/pt-BR/vimfx.properties | 1 + extension/locale/ru/vimfx.properties | 1 + extension/locale/sv-SE/vimfx.properties | 1 + extension/locale/zh-CN/vimfx.properties | 1 + extension/locale/zh-TW/vimfx.properties | 1 + 14 files changed, 15 insertions(+) diff --git a/extension/lib/commands.coffee b/extension/lib/commands.coffee index 34b3f94..cd85890 100644 --- a/extension/lib/commands.coffee +++ b/extension/lib/commands.coffee @@ -45,6 +45,8 @@ commands.focus_search_bar = ({vim, count}) -> # has been removed. Therefore we first check if it exists. if vim.window.BrowserSearch.searchBar vim.window.BrowserSearch.webSearch() + else + vim.notify(translate('notification.focus_search_bar.none')) helper_paste_and_go = (props, {vim}) -> {gURLBar} = vim.window diff --git a/extension/locale/de/vimfx.properties b/extension/locale/de/vimfx.properties index 5a2b999..953ece8 100644 --- a/extension/locale/de/vimfx.properties +++ b/extension/locale/de/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Suchleiste schließen mode.marks=Markiermodus +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL kopiert notification.go_up_path.limit=Das ist schon das höchste URL-Level notification.history_back.limit=Kann nicht weiter in der Chronik zurück diff --git a/extension/locale/en-US/vimfx.properties b/extension/locale/en-US/vimfx.properties index afee387..2a42b66 100644 --- a/extension/locale/en-US/vimfx.properties +++ b/extension/locale/en-US/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Close find bar mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/es/vimfx.properties b/extension/locale/es/vimfx.properties index 23e4562..7200cd7 100644 --- a/extension/locale/es/vimfx.properties +++ b/extension/locale/es/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Cerrar barra de búsqueda mode.marks=Modo de Marcas +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copiada notification.go_up_path.limit=Ya está en el nivel máximo de la URL notification.history_back.limit=No se puede seguir retrocediendo en el historial diff --git a/extension/locale/fr/vimfx.properties b/extension/locale/fr/vimfx.properties index 0930648..c08d98e 100644 --- a/extension/locale/fr/vimfx.properties +++ b/extension/locale/fr/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Fermer la barre de recherche mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/id/vimfx.properties b/extension/locale/id/vimfx.properties index cfebe46..4779345 100644 --- a/extension/locale/id/vimfx.properties +++ b/extension/locale/id/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Tutup bar Cari mode.marks=Mode Penanda +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/it/vimfx.properties b/extension/locale/it/vimfx.properties index 3e9e9ab..0b6b2cb 100644 --- a/extension/locale/it/vimfx.properties +++ b/extension/locale/it/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Chiudi la barra di ricerca mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/ja/vimfx.properties b/extension/locale/ja/vimfx.properties index c419312..368252b 100644 --- a/extension/locale/ja/vimfx.properties +++ b/extension/locale/ja/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=検索バーを閉じる mode.marks=マークモード +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URLをコピーしました notification.go_up_path.limit=既にURLの最上階層です notification.history_back.limit=履歴をこれ以上戻れません diff --git a/extension/locale/nl/vimfx.properties b/extension/locale/nl/vimfx.properties index 8dda279..2a4a72f 100644 --- a/extension/locale/nl/vimfx.properties +++ b/extension/locale/nl/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Sluit zoekbalk mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/pt-BR/vimfx.properties b/extension/locale/pt-BR/vimfx.properties index 4da0c45..f3639c9 100644 --- a/extension/locale/pt-BR/vimfx.properties +++ b/extension/locale/pt-BR/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Fechar barra de busca mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/ru/vimfx.properties b/extension/locale/ru/vimfx.properties index f687a72..13ad6ce 100644 --- a/extension/locale/ru/vimfx.properties +++ b/extension/locale/ru/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Закрыть панель поиска mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history diff --git a/extension/locale/sv-SE/vimfx.properties b/extension/locale/sv-SE/vimfx.properties index 69b6154..9832a44 100644 --- a/extension/locale/sv-SE/vimfx.properties +++ b/extension/locale/sv-SE/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=Stäng sökpanelen mode.marks=Markörläge +notification.focus_search_bar.none=Kan inte hitta sökfältet notification.copy_current_url=URL kopierad notification.go_up_path.limit=Redan vid toppnivån av URL:en notification.history_back.limit=Kan inte gå bakåt i historiken diff --git a/extension/locale/zh-CN/vimfx.properties b/extension/locale/zh-CN/vimfx.properties index 42df970..53c6808 100644 --- a/extension/locale/zh-CN/vimfx.properties +++ b/extension/locale/zh-CN/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=关闭查找栏 mode.marks=标记模式 +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL 已复制 notification.go_up_path.limit=当前已在 URL 的根目录页面 notification.history_back.limit=无法后退(历史记录) diff --git a/extension/locale/zh-TW/vimfx.properties b/extension/locale/zh-TW/vimfx.properties index ed8950a..26a9975 100644 --- a/extension/locale/zh-TW/vimfx.properties +++ b/extension/locale/zh-TW/vimfx.properties @@ -109,6 +109,7 @@ mode.find.exit=關閉搜尋列 mode.marks=Marks mode +notification.focus_search_bar.none=Cannot find the search bar notification.copy_current_url=URL copied notification.go_up_path.limit=Already at the top level of the URL notification.history_back.limit=Cannot go back in history -- 2.39.3