Skip to content

feat(table): add insert mode cell navigation with Alt+hjkl#98

Merged
YousefHadder merged 2 commits intomainfrom
feat/table-insert-mode-navigation
Nov 2, 2025
Merged

feat(table): add insert mode cell navigation with Alt+hjkl#98
YousefHadder merged 2 commits intomainfrom
feat/table-insert-mode-navigation

Conversation

@YousefHadder
Copy link
Copy Markdown
Owner

Adds 4-directional table cell navigation in insert mode using Alt+hjkl keymaps with circular wrapping behavior. Navigation wraps from last to first cell in both rows and columns for seamless editing experience.

Copilot AI review requested due to automatic review settings November 2, 2025 02:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds insert mode navigation for markdown tables, allowing users to move between cells using Alt+hjkl keys with circular wrapping behavior. When not in a table, the keys fall back to standard arrow key behavior.

Key changes:

  • Adds four new navigation functions (move_left, move_right, move_up, move_down) with wrapping logic
  • Introduces configurable insert mode keymaps (Alt+hjkl) with arrow key fallback
  • Comprehensive test coverage for all navigation directions and edge cases

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lua/markdown-plus/types.lua Adds insert_mode_navigation boolean config field to table keymaps
lua/markdown-plus/table/navigation.lua Implements four navigation functions with wrapping logic and separator row handling
lua/markdown-plus/table/init.lua Exposes navigation functions through the table module API
lua/markdown-plus/table/keymaps.lua Sets up Alt+hjkl insert mode keymaps with arrow key fallback when not in table
spec/markdown-plus/table_spec.lua Adds comprehensive tests for all navigation directions, wrapping, and edge cases
doc/markdown-plus.txt Documents insert mode navigation feature, keymaps, and wrapping behavior
README.md Documents insert mode navigation with examples and wrapping behavior

@YousefHadder YousefHadder merged commit 14596fe into main Nov 2, 2025
12 checks passed
@YousefHadder YousefHadder deleted the feat/table-insert-mode-navigation branch November 2, 2025 02:14
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.

2 participants