Add vim scroll motions to the explorer tree#275
Open
devHaitham481 wants to merge 1 commit into
Open
Conversation
The explorer only had j/k for single-step cursor movement, so getting around a large schema tree meant holding a key. This brings it in line with the results pane: - Ctrl+D / Ctrl+U page down/up (full visible page, matching results) - gg jumps to the first node, G jumps to the last node Details: - keymap: bind ctrl+d/ctrl+u/g/G in the tree context and add a "tg" leader menu for gg, mirroring the results "rg" menu - tree mixin: build on Textual Tree's page/cursor API and reuse a shared helper for the visual-mode selection refresh - tree_focused state: allow the new actions - help: document the motions in the EXPLORER section of the ? screen - tests: cover gg, G, Ctrl+D/Ctrl+U, and the help entries
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.
The explorer only had j/k for single-step cursor movement, so getting
around a large schema tree meant holding a key. This brings it in line
with the results pane:
Details:
leader menu for gg, mirroring the results "rg" menu
helper for the visual-mode selection refresh