From bee05dd32a685b58015514492525673b1b568b0d Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 25 Mar 2022 05:05:20 -0400 Subject: Add refresh-config and open-config command (#1803) * Add refresh-config and open-config command * clippy * Use dynamic dispatch for editor config * Refactor Result::Ok to Ok * Remove unused import * cargo fmt * Modify config error handling * cargo xtask docgen * impl display for ConfigLoadError * cargo fmt * Put keymaps behind dyn access, refactor config.load() * Update command names * Update helix-term/src/application.rs Co-authored-by: Blaž Hrastnik * Switch to unbounded_channel * Remove --edit-config command * Update configuration docs * Revert "Put keymaps behind dyn access", too hard This reverts commit 06bad8cf492b9331d0a2d1e9242f3ad4e2c1cf79. * Add refresh for keys * Refactor default_keymaps, fix config default, add test * swap -> store, remove unneeded clone * cargo fmt * Rename default_keymaps to default Co-authored-by: Blaž Hrastnik --- book/src/generated/typable-cmd.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'book/src/generated') diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index 2d89c97f..1ee2fac4 100644 --- a/book/src/generated/typable-cmd.md +++ b/book/src/generated/typable-cmd.md @@ -55,3 +55,5 @@ | `:sort` | Sort ranges in selection. | | `:rsort` | Sort ranges in selection in reverse order. | | `:tree-sitter-subtree`, `:ts-subtree` | Display tree sitter subtree under cursor, primarily for debugging queries. | +| `:config-reload` | Refreshes helix's config. | +| `:config-open` | Open the helix config.toml file. | -- cgit v1.2.3-70-g09d2