]> git.gir.st - VimFx.git/blob - documentation/questions-and-answers.md
Port settings page to a modern format
[VimFx.git] / documentation / questions-and-answers.md
1 # Questions & Answers
2
3 ## I can’t install VimFx!
4
5 That’s probably because VimFx is a _legacy_ Firefox extension, which is **not**
6 [compatible with Firefox 57+][firefox-57+].
7
8 See [README.md] for more information.
9
10 [firefox-57+]: https://support.mozilla.org/en-US/kb/firefox-add-technology-modernizing
11 [README.md]: ../README.md
12
13 ## How do I disable VimFx?
14
15 If you press `i` you will enter Ignore mode. VimFx’s toolbar [button] turns red
16 to reflect this.
17
18 As you can see in VimFx’s Keyboard Shortcuts help dialog (which you can open by
19 pressing `?`), Ignore mode only has two shortcuts. That means that almost all
20 keypresses will be ignored by VimFx, and will be handled as if VimFx wasn’t
21 installed.
22
23 By adding `*currentdomain.com*` to the [blacklist] option you can make VimFx
24 start out in Ignore mode on currentdomain.com. (Set the option to `*` to make
25 VimFx start out in Ignore mode _everywhere._)
26
27 **The fastest way to edit the blacklist is to use the `gB` command.**
28
29 Finally, there’s nothing stopping you from hitting the “Disable” button in the
30 Add-ons Manager if you want to disable VimFx completely (just like you can with
31 any add-on).
32
33 [button]: button.md
34 [blacklist]: options.md#blacklist
35
36 ## How do I get out of Ignore mode?
37
38 Either press `<s-escape>` or click VimFx’s toolbar [button].
39
40 [button]: button.md
41
42 ## What does `<s-escape>` mean?
43
44 It means that you should press Escape while holding shift. In some other
45 programs it might be written as `Shift+Escape`, but not in VimFx’s [key
46 notation].
47
48 (`<s-escape>` is the default shortcut to exit Ignore mode.)
49
50 [key notation]: shortcuts.md#key-notation
51
52 ## VimFx’s shortcuts work in my English layout but not in my other layout!
53
54 If you use more than one keyboard layout, such as Russian plus English, enable
55 the [Ignore keyboard layout] option.
56
57 [Ignore keyboard layout]: options.md#ignore-keyboard-layout
58
59 ## Can I make Hints mode work with element text?
60
61 … **like Vimium, Vimperator and Pentadactyl** can?
62
63 Yes! By default, that is done by typing _uppercase_ characters (hold down
64 shift!). Have a look at how [hint characters] work for more information.
65
66 [hint characters]: options.md#hint-characters
67
68 ## How do I change the font size of hint markers?
69
70 Head over to the [Styling] documentation to learn how to do that.
71
72 [Styling]: styling.md
73
74 ## How do I re-map Escape (which blurs text inputs)?
75
76 … for example, **to ctrl+[ ?**
77
78 First off, ctrl+[ is spelled `<c-[>` in VimFx. (Tip: [`<c-q>` helps you get the
79 “spelling” correct automatically][helper-shortcuts].)
80
81 Secondly, the default shortcut is not just `<escape>`, but actually
82 `<force><escape>`! Don’t forget [`<force>`] at the beginning, and your new
83 shortcut should work fine. For example:
84
85 <force><c-[>
86
87 Or, if you’d like to you both `<escape>` _and_ something else:
88
89 <force><escape> <force><c-[>
90
91 [`<force>`]: shortcuts.md#force
92
93 ## Re-mapping Escape doesn’t always work!
94
95 There are several default shortcuts which use `<escape>`. Apart from the Normal
96 mode command for blurring text inputs, the Caret, Hints, Find and Marks modes
97 have one command each for returning to Normal mode. All of these use `<escape>`.
98
99 Perhaps you forgot to re-map some of them?
100
101 ## Going back/forward doesn’t work!
102
103 Pressing `H` is like hitting the back button. Use `L` for the forward button.
104
105 `[` clicks the link labeled “Previous” on the page, and `]` the link labeled
106 “Next.” (See also [“Previous”/“Next” link patterns].)
107
108 [helper-shortcuts]: shortcuts.md#helper-keyboard-shortcuts
109 [“Previous”/“Next” link patterns]: options.md#previousnext-link-patterns
110
111 ## How do I switch tabs?
112
113 There are a bunch of VimFx commands for switching tabs, such as [`J` and `K`],
114 [`gl`], [`gL`][gl-1] as well as [`g0`, `g^` and `g$`].
115
116 Other than that, you can use the `eb` command to click tabs using hint markers.
117
118 Firefox’s location bar also searches among your open tabs, and lets you switch
119 to them. By typing a lone `%` in the location bar, _only_ open tabs are searched
120 for. See [Handy standard Firefox features][location-bar] for more information.
121
122 Finally, there’s nothing stopping you from also using [standard Firefox tab
123 shortcuts]!
124
125 [`J` and `K`]: commands.md#j-k
126 [`gl`]: commands.md#gl
127 [gl-1]: commands.md#gl-1
128 [`g0`, `g^` and `g$`]: commands.md#g0-g-g
129 [location-bar]: handy-standard-firefox-features.md#the-location-bar
130 [standard Firefox tab shortcuts]: https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_windows-tabs
131
132 ## Can I search in the Keyboard Shortcuts help dialog?
133
134 Yes! Pressing `/` while the help dialog is open makes a little search box appear
135 in the bottom-right corner of the window (instead of opening the find bar),
136 which is specialized at searching your keyboard shortcuts.
137
138 ## Can I edit shortcuts in the Keyboard Shortcuts help dialog?
139
140 Clicking on any command in it opens VimFx’s options page in the Add-ons Manager
141 and automatically selects the text input for that command. Tip: Use the `eb`
142 command to click without using the mouse.
143
144 ## Will VimFx provide advanced Find features?
145
146 One of VimFx’s key features is to embrace standard Firefox features. As long as
147 Firefox’s Find Bar doesn’t support for example reverse search (Vim’s `?`
148 command) or regex search, VimFx won’t either.
149
150 ## Switching between tabs works oddly when [NoScript] is installed!
151
152 This is a [known bug][noscript-bug] in NoScript. To work around it, either
153 switch to multi-process Firefox or set `noscript.clearClick.rapidFireCheck` to
154 `false` in [about:config].
155
156 You’re not really missing out security-wise by disabling
157 `noscript.clearClick.rapidFireCheck`. All it does is preventing one specific,
158 less common type of “clickjacking” attack, that isn’t even mentioned in
159 NoScript’s [ClearClick] documentation. It is, however, quickly mentionend in a
160 [blog post][hackademix-clickjacking] by NoScript’s author (which links to
161 another site explaining the attack in more detail).
162
163 See also [issue 588].
164
165 [NoScript]: https://noscript.net/
166 [noscript-bug]: https://forums.informaction.com/viewtopic.php?f=10&t=21597
167 [about:config]: http://kb.mozillazine.org/About:config
168 [ClearClick]: https://noscript.net/faq/#clearclick
169 [hackademix-clickjacking]: https://hackademix.net/2011/07/11/fancy-clickjacking-tougher-noscript/
170 [issue 588]: https://github.com/akhodakivskiy/VimFx/issues/588
Imprint / Impressum