Repository navigation
feat(neotree): open file tree from insert mode - #312
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Ctrl-eonly opened NeoTree from Normal mode. Pressing it while editing instead inserted a literale, unexpectedly modifying the buffer and requiring users to leave Insert mode manually.What Changed
Ctrl-etoEnterMode(Normal)followed by the existing globalNeoTreecommand while preserving the Normal-mode toggle.How to Test
cargo test --locked --lib neotree; all 14 NeoTree-focused tests should pass, includinginsert_mode_neotree_shortcut_commits_edits_and_toggles_panel_focus.cargo test --locked --lib config::test::; all 96 configuration tests should pass, includingdefault_config_maps_ctrl_e_to_neotree_in_normal_and_insert_modes.i, typex, then pressCtrl-e; NeoTree should open and receive focus, the editor should leave Insert mode, and the buffer should contain only the intendedx.Ctrl-eagain, thenu; the tree should close, focus should return to the editor in Normal mode, and one undo should remove the entire preceding insert transaction.