Skip to content

Conversation

ThomasK33
Copy link
Member

Improved Visual Selection Support for Tree Buffers

This PR enhances the file selection mechanism in tree-based file explorers (neo-tree, nvim-tree, mini.files) when using visual mode. The changes:

  • Add dedicated visual selection handling for tree buffers that accurately captures files in visual selections
  • Implement a fallback mechanism that tries visual selection first, then falls back to regular selection methods
  • Add detailed logging for neo-tree integration to help diagnose selection issues
  • Support directory nodes in visual selections for neo-tree
  • Add unit tests to verify visual selection handling in tree buffers

These improvements make it more intuitive to select multiple files in file explorers using visual mode (V), similar to how neo-tree's built-in commands work with visual selections.

Change-Id: Ibaff60743f5e4003e9818ed4c493a97fe55bcb43
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33 ThomasK33 marked this pull request as ready for review September 15, 2025 17:21
Copy link
Member Author

Copy link
Member Author

ThomasK33 commented Sep 15, 2025

Merge activity

  • Sep 15, 5:27 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 15, 5:27 PM UTC: @ThomasK33 merged this pull request with Graphite.

@ThomasK33 ThomasK33 merged commit 8fdb815 into main Sep 15, 2025
4 checks passed
@ThomasK33 ThomasK33 deleted the thomask33/feat_improve_visual_selection_handling_in_file_tree_explorers branch September 16, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant