From 7c4f553acc69d2bd33979d566606b4a6ef750779 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 24 Oct 2015 22:35:00 +0200 Subject: Better document that binds in config.fish don't work Fixes #230 --- doc_src/bind.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc_src') diff --git a/doc_src/bind.txt b/doc_src/bind.txt index 8a099eb3..b5074ac2 100644 --- a/doc_src/bind.txt +++ b/doc_src/bind.txt @@ -31,7 +31,7 @@ When multiple `COMMAND`s are provided, they are all run in the specified order w If no `SEQUENCE` is provided, all bindings (or just the bindings in the specified `MODE`) are printed. If `SEQUENCE` is provided without `COMMAND`, just the binding matching that sequence is printed. -Key bindings are not saved between sessions by default. To save custom keybindings, edit the `fish_user_key_bindings` function and insert the appropriate `bind` statements. +Key bindings are not saved between sessions by default. **Bare `bind` statements in config.fish won't have any effect because it is sourced before the default keybindings are setup.** To save custom keybindings, put the `bind` statements into a function called `fish_user_key_bindings`, which will be autoloaded. Key bindings may use "modes", which mimics Vi's modal input behavior. The default mode is "default", and every bind applies to a single mode. The mode can be viewed/changed with the `$fish_bind_mode` variable. -- cgit v1.2.3