Skip to content

Commit

Permalink
Add a command to open the history list
Browse files Browse the repository at this point in the history
The back/forward button context menu is opened in the middle of the window.

Fixes #630.
  • Loading branch information
lydell committed Dec 2, 2015
1 parent 48b695f commit c03465c
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extension/lib/commands.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ commands.history_back = helper_go_history.bind(null, -1)

commands.history_forward = helper_go_history.bind(null, +1)

commands.history_list = ({vim}) ->
{window} = vim
return unless menu = window.document.getElementById('backForwardMenu')
menu.openPopupAtScreen(
window.screenX + window.outerWidth / 2 - menu.clientWidth / 2,
window.screenY + window.outerHeight / 2 - menu.clientHeight / 2
)

commands.reload = ({vim}) ->
vim.window.BrowserReload()

Expand Down
1 change: 1 addition & 0 deletions extension/lib/defaults.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ shortcuts =
'gh': 'go_home'
'H': 'history_back'
'L': 'history_forward'
'gH': 'history_list'
'r': 'reload'
'R': 'reload_force'
'ar': 'reload_all'
Expand Down
1 change: 1 addition & 0 deletions extension/locale/de/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Zum Stammverzeichnis der URL-Hierarchie springen
mode.normal.go_home=Startseite öffnen
mode.normal.history_back=Eine Seite zurück in der Chronik
mode.normal.history_forward=Eine Seite vorwärts in der Chronik
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Seite aktualisieren
mode.normal.reload_force=Seite inklusive aller Zusatzelemente aktualisieren (js, css, img)
mode.normal.reload_all=Alle Tabs aktualisieren
Expand Down
1 change: 1 addition & 0 deletions extension/locale/el-GR/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Πήγαινε στο πιο πάνω επίπεδο τη
mode.normal.go_home=Πλοήγηση στην Αρχική Σελίδα
mode.normal.history_back=Πήγαινε πίσω στο ιστορικό
mode.normal.history_forward=Πήγαινε μπροστά στο ιστορικό
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Ανανέωσε την σελίδα στην οποία βρίσκομαι
mode.normal.reload_force=Ανανέωσε την σελίδα στην οποία βρίσκομαι και όλα τα στοιχεία της (js, css, img)
mode.normal.reload_all=Ανανέωσες τις σελίδες σε όλες τις καρτέλες
Expand Down
1 change: 1 addition & 0 deletions extension/locale/en-US/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Go to the root in the URL
mode.normal.go_home=Go to the home page
mode.normal.history_back=Go back in history
mode.normal.history_forward=Go forward in history
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Reload
mode.normal.reload_force=Reload (override cache)
mode.normal.reload_all=Reload all tabs
Expand Down
1 change: 1 addition & 0 deletions extension/locale/fr/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Aller au niveau racine du site
mode.normal.go_home=Aller à la page d'accueil
mode.normal.history_back=Revenir en arrière dans l'historique
mode.normal.history_forward=Avancer dans l'historique
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Recharger la page
mode.normal.reload_force=Recharger la page (en invalidant le cache)
mode.normal.reload_all=Recharger tous les onglets
Expand Down
1 change: 1 addition & 0 deletions extension/locale/hu/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Go up to root of the URL hierarchy
mode.normal.go_home=Kezdőlap megnyitása
mode.normal.history_back=Vissza az előzményekben
mode.normal.history_forward=Előre az előzményekben
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Oldal újratöltése
mode.normal.reload_force=Oldal újratöltése minden elemmel együtt (js, css, img)
mode.normal.reload_all=Összes oldal újratöltése
Expand Down
1 change: 1 addition & 0 deletions extension/locale/id/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Naik ke root pada URL
mode.normal.go_home=Menuju ke Home Page
mode.normal.history_back=Mundur kembali pada history
mode.normal.history_forward=Maju kembali pada history
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Muat ulang
mode.normal.reload_force=Muat ulang (abaikan cache)
mode.normal.reload_all=Muat ulang semua tab
Expand Down
1 change: 1 addition & 0 deletions extension/locale/it/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Vai alla radice della gerarchia dell'URL
mode.normal.go_home=Vai alla pagina home
mode.normal.history_back=Torna indietro nella cronologia
mode.normal.history_forward=Vai avanti nella cronologia
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Ricarica la pagina corrente
mode.normal.reload_force=Ricarica la pagina corrente e tutte le risorse relative (js, css, img)
mode.normal.reload_all=Ricarica tutte le schede
Expand Down
1 change: 1 addition & 0 deletions extension/locale/ja/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=URLを最上階まで上る
mode.normal.go_home=ホームページに移動
mode.normal.history_back=履歴を戻る
mode.normal.history_forward=履歴を進む
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=再読み込み
mode.normal.reload_force=再読み込み(キャッシュを上書き)
mode.normal.reload_all=全てのタブを再読み込み
Expand Down
1 change: 1 addition & 0 deletions extension/locale/nl/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Ga naar de top van de URL-hiërarchie
mode.normal.go_home=Open de startpagina
mode.normal.history_back=Ga terug in de geschiedenis
mode.normal.history_forward=Ga vooruit in geschiedenis
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Herlaad huidige pagina
mode.normal.reload_force=Herlaad huidige pagina inclusief javascript, css en afbeeldingen
mode.normal.reload_all=Herlaad alle tabbladen
Expand Down
1 change: 1 addition & 0 deletions extension/locale/pl/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Idź do korzenia w hierarchii URL
mode.normal.go_home=Przejdź na stronę startową
mode.normal.history_back=Wstecz
mode.normal.history_forward=Dalej
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Odśwież bieżącą stronę
mode.normal.reload_force=Odśwież bieżącą stronę wraz z zasobami (js, css, img)
mode.normal.reload_all=Odśwież strony we wszystkich kartach
Expand Down
1 change: 1 addition & 0 deletions extension/locale/pt-BR/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Ir para a raiz da URL
mode.normal.go_home=Ir para a Página Inicial
mode.normal.history_back=Ir para trás no histórico
mode.normal.history_forward=Ir para frente no histórico
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Recarregar
mode.normal.reload_force=Recarregar (sobrescrever cache)
mode.normal.reload_all=Recarregar todas as abas
Expand Down
1 change: 1 addition & 0 deletions extension/locale/ru/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Перейти к корню сайта
mode.normal.go_home=Загрузить домашнюю страницу
mode.normal.history_back=Предыдущая страница
mode.normal.history_forward=Следующая страница
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=Перезагрузить текущую страницу
mode.normal.reload_force=Перезагрузить текущую страницу и все ресурсы (js, css, img)
mode.normal.reload_all=Перезагрузить страницы во всех вкладках
Expand Down
1 change: 1 addition & 0 deletions extension/locale/sv-SE/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=Gå till roten av URL:en
mode.normal.go_home=Gå till Startsidan
mode.normal.history_back=Gå tillbaka i historiken
mode.normal.history_forward=Gå framåt i historiken
mode.normal.history_list=Öppna bakåt/framåt-knappens meny
mode.normal.reload=Ladda om
mode.normal.reload_force=Ladda om (hoppa över cache)
mode.normal.reload_all=Ladda om alla flikar
Expand Down
1 change: 1 addition & 0 deletions extension/locale/zh-CN/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=打开 URL 的根目录页面
mode.normal.go_home=跳到主页
mode.normal.history_back=后退
mode.normal.history_forward=前进
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=重新载入当前页面
mode.normal.reload_force=重新载入当前页面(刷新缓存)
mode.normal.reload_all=重新载入所有标签页
Expand Down
1 change: 1 addition & 0 deletions extension/locale/zh-TW/vimfx.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mode.normal.go_to_root=開啟網址的根目錄
mode.normal.go_home=開啟首頁
mode.normal.history_back=上一頁
mode.normal.history_forward=下一頁
mode.normal.history_list=Open the back/forward button menu
mode.normal.reload=重新載入
mode.normal.reload_force=重新載入(更新快取)
mode.normal.reload_all=重新載入所有分頁
Expand Down

0 comments on commit c03465c

Please sign in to comment.