]> git.gir.st - VimFx.git/blob - README.md
Merge branch 'huffman' of git://github.com/lydell/VimFx into lydell-huffman
[VimFx.git] / README.md
1 # VimFx - Vim keyboard shortcuts for Firefox
2
3 *Extension AMO page*: https://addons.mozilla.org/en-US/firefox/addon/vimfx.
4
5 Contribute your localization! See `locale` folder.
6
7 Read [Contributing and Reporting Issues section](#contributing-and-reporting-issues) for tips.
8 > Tl;dr: Pull request to the **develop** branch! Issues in **English**!
9
10 ## Overview
11
12 [VimFx](https://addons.mozilla.org/en-US/firefox/addon/vimfx/)
13 is a [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/fx/#desktop)
14 extension which introduces Vim-style keyboard shortcuts for browsing and navigation,
15 significantly reducing the use of mouse, and allowing your hands to rest on the home row.
16
17 VimFx was inspired by [Vimperator](http://www.vimperator.org/)
18 and designed after [Vimium](http://vimium.github.com/) for
19 [Google Chrome](https://www.google.com/intl/en/chrome/browser/) preserving the shortcuts and behavior.
20 If your are used to Vimium then it will be easy to get started with VimFx.
21
22 ## Reporting Issues and Contributing
23
24 - Please submit bug reports and feature requests in *English*.
25 - Please submit cotribution pull requests for `develop` branch only. Pull requests for `master` will be closed. Thank you!
26 - Contribute your localization! See `locale` folder.
27
28 ## Why VimFx was created
29
30 Even before Vimium there was Vimperator for Firefox. In my opinion the problem
31 with Vimperator is that it has too many features and aggressively changes
32 the default Firefox appearance and behavior. Vimium was developed for Google Chrome
33 and it was exactly what I needed in terms of added functionality. That's why I decided
34 to develop similar extension for Firefox.
35
36 VimFx will be nice to your browser and to your habits. Promise.
37
38 ## Key Features
39
40 - Concise shortcuts for most commonly performed actions
41 - Follow and access controls on the page using hint markers
42 - Easy access to the Help page which describes all available shortcuts (press ?)
43
44 ## Shortcuts
45
46 Might not be up to date. Please refer to the Help dialog withing the extension
47 for the most relevant list.
48
49 Global shortcut to enable/disable VimFx: `Shift-Alt-v`
50
51 ### Dealing with URLs
52
53 o Focus the Address Bar
54 p Navigate to the address in the clipboard
55 P Open new tab and navigate to the address in the clipboard
56 yf Copy link url to the clipboard
57 vf Focus element
58 yy Copy current page link to the clipboard
59 r Reload current page
60 R Reload current page and all the assets (js, css, etc.)
61 ar Reload pages in all tabs
62 aR Reload pages in all tabs including assets (js, css, img)
63 s Stop loading current page
64 as Stop loading pages in all tabs
65
66 ### Navigating the Page
67
68 gg Scroll to the Top of the page
69 G Scroll to the Bottom of the page
70 j,c-e Scroll Down
71 k,c-y Scroll Up
72 h Scroll Left
73 l Scroll Right
74 d Scroll half a Page Down
75 u Scroll half a Page Up
76 c-f Scroll full Page Down
77 c-b Scroll full Page Up
78
79 ### Working with Tabs
80
81 t Open New Blank tab
82 J,gT Go to the Previous tab
83 K,gt Go to the Next tab
84 c-J Move current tab to the Left
85 c-K Move current tab to the Right
86 gh Navigate to the Home Page
87 gH,g0 Go to the First tab
88 gL,g$ Go to the Last tab
89 x Close current tab
90 X Restore last closed tab
91
92 ### Browsing
93
94 f Follow a link on the current page
95 F Follow a link on the current page in a new tab
96 H Go Back in history
97 L Go Forward in history
98
99 ### Misc
100
101 .,/ Enter Find mode
102 a.,a/ Enter Find mode to highlight all matches
103 n Go to the next Find match
104 N Go to the previous Find match
105 ?,> Show Help Dialog
106 Esc Close this dialog and cancel hint markers
107 : Open Developer Toolbar
108
109 ## Contributing and Reporting Issues
110
111 1. Fork.
112 2. Clone.
113 3. Checkout the **develop** branch: `git checkout develop`
114 4. Create a new branch (using develop as base): `git checkout -b myTopicBranch`
115 Using develop (and not master) as base makes it easier to pull request to develop when you're done.
116 5. Code! Try to follow the style of the rest of the code. There are no written rules (yet?).
117 6. Push your branch to your fork on GitHub.
118 7. Pull request to the **develop** branch.
119
120 ### Tips:
121
122 - Compile the .coffee files with the **`--bare`** option! Otherwise you will get errors.
123 - Run `coffee -cbw .` from the root of the project to automatically compile on changes.
124 - Put a file called exactly `VimFx@akhodakivskiy.github.com` in the extensions/ folder of a Firefox
125 profile, containing the absolute path to the extension/ folder in the project. Then you just need
126 to restart Firefox (use some add-on!) after each change. More details in [this MDN article][mdn-extdevenv].
127 - Only create tickets for issues and feature requests in English. Otherwise duplicate
128 tickets in different languages will pile up.
129
130 [mdn-extdevenv]: https://developer.mozilla.org/en-US/docs/Setting_up_extension_development_environment#Firefox_extension_proxy_file
Imprint / Impressum