Improve documents
This commit is contained in:
parent
9a7e261f60
commit
104c04eb68
2 changed files with 74 additions and 29 deletions
|
@ -9,7 +9,52 @@ keyboard. Since version 57, Firefox has migrated to the WebExtensions API and
|
|||
has dropped support for legacy add-ons. Vim Vixen is a new choice for Vim users
|
||||
since it uses the WebExtensions API.
|
||||
|
||||
## Related links
|
||||
## Getting started
|
||||
|
||||
- [Vim Vixen - GitHub](https://github.com/ueokande/vim-vixen)
|
||||
- [Vim Vixen - Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/vim-vixen/)
|
||||
### Install Vim Vixen
|
||||
|
||||
Vim Vixen is supported on Firefox 60 ESR. Please latest version of stable ESR
|
||||
from the [download page](https://www.mozilla.org/en-US/firefox/).
|
||||
You can install Vim Vixen from [Firefox add-ons (addons.mozilla.org)][AMO], and
|
||||
manage installed addon-ons on Firefox preferences `about:preferences`.
|
||||
|
||||
### Quick start
|
||||
|
||||
After installation, you can control Firefox with vim-like keymaps. To scroll a
|
||||
page in the browser, press <kbd>k</kbd>, <kbd>j</kbd>, <kbd>h</kbd> and
|
||||
<kbd>l</kbd> keys. You can scroll to the top or the bottom of a page by
|
||||
<kbd>g</kbd><kbd>g</kbd> and <kbd>G</kbd>.
|
||||
|
||||
To select a left and right of current tab, use <kbd>K</kbd> and <kbd>J</kbd>
|
||||
respectively. To close current tab, use <kbd>d</kbd> and to restore closed
|
||||
tabs, use <kbd>u</kbd>.
|
||||
|
||||
To open a link, press <kbd>f</kbd> to enter the **follow mode** to select a
|
||||
link. Then you can select links by alphabetic keys.
|
||||
|
||||
See also [Keymaps](./keymaps.html) for more detailed of keymaps.
|
||||
|
||||
### Using commands
|
||||
|
||||
Vim Vixen supports command line to run commands that control tabs and opens a
|
||||
tab. To open command line, press <kbd>:</kbd>.
|
||||
|
||||
To open a tab with URL, use `open` command as the following:
|
||||
|
||||
```
|
||||
:open https://github.com/ueokande/vimvixen
|
||||
```
|
||||
|
||||
or search keywords with search engine (such as Google) like:
|
||||
|
||||
```
|
||||
:open How to use Vim
|
||||
```
|
||||
|
||||
You can see completed commands on [Console commands](./console_commands.html).
|
||||
|
||||
## Copyright
|
||||
|
||||
Copyright © 2017-2019 by Shin'ya Ueoka
|
||||
|
||||
[AMO]: https://addons.mozilla.org/en-US/firefox/addon/vim-vixen/
|
||||
|
|
|
@ -7,32 +7,6 @@ title: Keymaps
|
|||
Keymaps are configurable in the add-on's preferences by navigating to `about:addons` and selecting "Extensions".
|
||||
The default mappings are as follows:
|
||||
|
||||
## Console
|
||||
|
||||
- <kbd>:</kbd>: open the console
|
||||
- <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>: open a page in the current tab, a new tab, or new window
|
||||
- <kbd>O</kbd>, <kbd>T</kbd>, <kbd>W</kbd>: similar to <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>, but using the current URL
|
||||
- <kbd>b</kbd>: select tabs by URL or title
|
||||
- <kbd>a</kbd>: add the current page to your bookmarks
|
||||
|
||||
See the [console commands](./console_commands.html) section for a more detailed description.
|
||||
|
||||
## Tabs
|
||||
|
||||
- <kbd>d</kbd>: delete the current tab and select the tab to its right
|
||||
- <kbd>D</kbd>: delete the current tab and select the tab to its left
|
||||
- <kbd>!</kbd><kbd>d</kbd>: delete a pinned tab
|
||||
- <kbd>u</kbd>: reopen a close tab
|
||||
- <kbd>r</kbd>: reload the current tab
|
||||
- <kbd>R</kbd>: reload the current tab, bypassing the cache
|
||||
- <kbd>K</kbd> or <kbd>g</kbd><kbd>T</kbd>: select the previous tab
|
||||
- <kbd>J</kbd> or <kbd>g</kbd><kbd>t</kbd>: select the next tab
|
||||
- <kbd>g</kbd><kbd>0</kbd>: select the first tab
|
||||
- <kbd>g</kbd><kbd>$</kbd>: select the last tab
|
||||
- <kbd>Ctrl</kbd>+<kbd>6</kbd>: open the previously-selected tab
|
||||
- <kbd>z</kbd><kbd>p</kbd>: pin the curent tab tab
|
||||
- <kbd>z</kbd><kbd>d</kbd>: duplicate the current tab
|
||||
|
||||
## Scrolling
|
||||
|
||||
- <kbd>k</kbd>: scroll up
|
||||
|
@ -53,6 +27,32 @@ See the [console commands](./console_commands.html) section for a more detailed
|
|||
Lowercase marks (`[a-z]`) store the position of the current tab. Uppercase and
|
||||
numeric marks (`[A-Z0-9]`) store the position and the tab.
|
||||
|
||||
## Select and manage tabs
|
||||
|
||||
- <kbd>d</kbd>: delete the current tab and select the tab to its right
|
||||
- <kbd>D</kbd>: delete the current tab and select the tab to its left
|
||||
- <kbd>!</kbd><kbd>d</kbd>: delete a pinned tab
|
||||
- <kbd>u</kbd>: reopen a close tab
|
||||
- <kbd>r</kbd>: reload the current tab
|
||||
- <kbd>R</kbd>: reload the current tab, bypassing the cache
|
||||
- <kbd>K</kbd> or <kbd>g</kbd><kbd>T</kbd>: select the previous tab
|
||||
- <kbd>J</kbd> or <kbd>g</kbd><kbd>t</kbd>: select the next tab
|
||||
- <kbd>g</kbd><kbd>0</kbd>: select the first tab
|
||||
- <kbd>g</kbd><kbd>$</kbd>: select the last tab
|
||||
- <kbd>Ctrl</kbd>+<kbd>6</kbd>: open the previously-selected tab
|
||||
- <kbd>z</kbd><kbd>p</kbd>: pin the curent tab tab
|
||||
- <kbd>z</kbd><kbd>d</kbd>: duplicate the current tab
|
||||
|
||||
## Console
|
||||
|
||||
- <kbd>:</kbd>: open the console
|
||||
- <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>: open a page in the current tab, a new tab, or new window
|
||||
- <kbd>O</kbd>, <kbd>T</kbd>, <kbd>W</kbd>: similar to <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>, but using the current URL
|
||||
- <kbd>b</kbd>: select tabs by URL or title
|
||||
- <kbd>a</kbd>: add the current page to your bookmarks
|
||||
|
||||
See the [console commands](./console_commands.html) section for a more detailed description.
|
||||
|
||||
## Zoom
|
||||
|
||||
- <kbd>z</kbd><kbd>i</kbd>: zoom in
|
||||
|
|
Reference in a new issue