-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(navigation): Add advanced search and column preservation
- Implement advanced search using Treesitter and LSP - Add get_treesitter_match for syntax-aware searching - Create validate_position_with_lsp for LSP-based refinement - Implement move_cursor_to_regex_match as fallback - Introduce move_cursor_to_combined_match to orchestrate search - Add column preservation functionality - Introduce new TWPreserveColumn command to toggle preservation - Implement state machine for managing operation modes - Create handle_column_preservation for maintaining cursor position This commit significantly enhances Typewriter.nvim's navigation capabilities. The advanced search feature provides more accurate, context-aware results by leveraging Treesitter and LSP. The new column preservation mode, toggled via :TWPreserveColumn, allows users to maintain their horizontal cursor position when moving between lines of different lengths. These additions offer users more flexible and precise control over their cursor movement and positioning within Typewriter mode.
- Loading branch information
1 parent
005ffe1
commit e7bc895
Showing
1 changed file
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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