Vscode-markdown: Key binding to navigate in table

Created on 4 Jun 2020  ·  2Comments  ·  Source: yzhang-gh/vscode-markdown

Hi, thank you for great extension! I love to use it.
This is not a bug request, but a feature request (suggestion).

It'd be awesome if we can navigate in table by using some handy keys, such as

  • tab: move to right cell
  • shift+tab: move to left cell
  • up: move to above cell
  • down: move to below cell
  • cmd+up: move to to heading of current column (move to top of the file by hitting twice to mimic the original behavior)
  • cmd+down: move to to bottom of current column (hitting twice works similarly as above)
  • cmd+shift+up: select current column above current cell (hitting twice works similarly as above)
  • cmd+shift+down: select current column below current cell (hitting twice works similarly as above)
  • cmd+A: select entire table (hitting twice works similarly as above)
  • ctrl+shift+right: select current cell, current row, entire table in this order (like smart select)
  • ctrl+shift+left: shrink above-mentioned smart-select like selection
Markdown table input Help wanted Feature

All 2 comments

Looking at the source code, but tab key seems to be tightly coupled to list-editing commands

Thanks for the feedback. This is somehow related to #23 while this one focuses on keybindings.

From a technique perspective, it is not that easy but still doable.

Looking at the source code, but tab key seems to be tightly coupled to list-editing commands

I don't think it is a big problem as we can check the context and then decide to indent or move to next cell.

Was this page helpful?
0 / 5 - 0 ratings