joplin-plugin-table-formatter icon indicating copy to clipboard operation
joplin-plugin-table-formatter copied to clipboard

table navigation and format with shortcut

Open SeptemberHX opened this issue 3 years ago • 0 comments

This is part of https://github.com/SeptemberHX/joplin-plugin-enhancement. Pull it to this repo so that others can benefit it without additional features in joplin-plugin-enhancement.

Added Feature:

Auto add row/column, delete column, and format table.

This part mainly comes from takumisoft68: vscode-markdown-table. Please refer to it for the feature description. I just convert the code from vscode's editor to joplin's codemirror. :)

Because I have no idea how to create a context menu, currently all the operations are triggered by shortcut:

Function Shutcut
Insert a row above/below ctrl + shift + up/down
Insert a column left/right ctrl + shift + left/right
Delete current column ctrl + shift + backspace
Navigate to previous cell tab
Navigate to next cell shift + tab
  1. It will automatically format your table code for alignment when navigation between cells with tab
  2. A new line is appended when trying to navigate to next cell from the last cell

Table column colorize from the plugin: hieuthi/joplin-plugin-markdown-table-colorize

tableFormatter

SeptemberHX avatar May 14 '22 02:05 SeptemberHX