From ca664fd3df5de95408ef132a434efad84654d29e Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 20 Aug 2016 10:41:28 +0200 Subject: [PATCH] Change `zr` to `gC` `zr` was the only shortcut starting with `z`. This frees that key up. Refs. #788. --- documentation/api.md | 4 ++-- documentation/config-file.md | 6 +++--- extension/lib/defaults.coffee | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/api.md b/documentation/api.md index a7e4837..c870d19 100644 --- a/documentation/api.md +++ b/documentation/api.md @@ -327,7 +327,7 @@ Occurs when: - VimFx shuts down: When Firefox shuts down, when VimFx is disabled or when VimFx is updated. -- When the config file is reloaded using the `zr` command. +- When the config file is reloaded using the `gC` command. `data`: No data at all is passed. @@ -346,7 +346,7 @@ The following methods don’t need any undoing: The following methods are automatically undone when the `shutdown` event fires. This means that if you, for example, add a custom command in `config.js` but -then remove it from `config.js` and hit `zr`, the custom command will be gone in +then remove it from `config.js` and hit `gC`, the custom command will be gone in VimFx. - `vimfx.set(...)` diff --git a/documentation/config-file.md b/documentation/config-file.md index 695db65..f5886d0 100644 --- a/documentation/config-file.md +++ b/documentation/config-file.md @@ -49,7 +49,7 @@ Follow these steps to get started with your config file: `/home/you/.config/vimfx` or `C:\Users\you\vimfx`, or start with a `~`, which is a shortcut to your home directory, such as `~/.config/vimfx` or `~\vimfx`. -4. Run the `zr` command in VimFx. That needs to be done any time +4. Run the `gC` command in VimFx. That needs to be done any time `config_file_directory` is changed, or the contents of `config.js` or `frame.js` are changed. This tells VimFx to reload the config file. If everything went well, a [notification] should appear telling you that the @@ -65,7 +65,7 @@ Follow these steps to get started with your config file: If you make errors in `config.js` or `frame.js` they will appear in the [browser console]. -Remember to press `zr` after you’ve edited `config.js` or `frame.js` to reload +Remember to press `gC` after you’ve edited `config.js` or `frame.js` to reload them. A [notification] will appear telling you if there was any trouble reloading or not. @@ -144,7 +144,7 @@ Note: Even if you don’t need `frame.js` right now, the file still must exist i - Every time VimFx starts up. In other words, when Firefox starts up and when you update VimFx (or disable and then enable it). -- Every time you use the `zr` command to reload the config file. +- Every time you use the `gC` command to reload the config file. “Executing the config file” means running `config.js` once and `frame.js` for each open tab. `frame.js` also runs every time you open a new tab. diff --git a/extension/lib/defaults.coffee b/extension/lib/defaults.coffee index 1d4e6c5..c09bd86 100644 --- a/extension/lib/defaults.coffee +++ b/extension/lib/defaults.coffee @@ -109,7 +109,7 @@ shortcuts = 'i': 'enter_mode_ignore' 'I': 'quote' 'gr': 'enter_reader_view' - 'zr': 'reload_config_file' + 'gC': 'reload_config_file' '?': 'help' ':': 'dev' '': 'esc' -- 2.39.3