搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Will WebExtension's current post-document-load model (e.g. Vimium) be the only mechanism for accessing vim-like functionality?

  • 1 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 Mkll

more options

Vimium appears to be the only usable solution to using vim-like keybindings to access browser functionality post transition to WebExtensions. Vimium requires a tab to fully load before keybindings become accessible. This is tolerable for link-following as the links need to load before the browser can be instructed to follow one. For tab manipulation however this is an unacceptable model. Is there a more appropriate WebExtensions API to use for e.g. binding `h` and `l` to switch to previous and next tabs without requiring the current document to load first?

Vimium appears to be the only usable solution to using vim-like keybindings to access browser functionality post transition to WebExtensions. Vimium requires a tab to fully load before keybindings become accessible. This is tolerable for link-following as the links need to load before the browser can be instructed to follow one. For tab manipulation however this is an unacceptable model. Is there a more appropriate WebExtensions API to use for e.g. binding `h` and `l` to switch to previous and next tabs without requiring the current document to load first?

由 angelogladding 於 修改

所有回覆 (1)

more options

Hello, for now yes this is the case. More APIs will be added in time however. Documentation for WebExtensions: https://developer.mozilla.org/en-US/Add-ons/WebExtensions