Skip to content

Commit

Permalink
chore: refine description wording
Browse files Browse the repository at this point in the history
  • Loading branch information
baurine committed Jun 29, 2024
1 parent 6b61ac9 commit 670cc59
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ https://github.com/tidbcloud/tisqleditor/assets/1284531/732b600f-5b4e-45d3-a3d2-
| @tidbcloud/codemirror-extension-sql-parser | parse the editor content to SQL statements |
| @tidbcloud/codemirror-extension-cur-sql | get the selected SQL statements |
| @tidbcloud/codemirror-extension-cur-sql-gutter | show gutter for the selected SQL statements |
| @tidbcloud/codemirror-extension-sql-autocomplete | SQL keyword and database schema autocomplete tips |
| @tidbcloud/codemirror-extension-sql-autocomplete | SQL keyword and database schema autocomplete |
| @tidbcloud/codemirror-extension-linters | use db statement, full width chars, and regular expression linters |
| @tidbcloud/codemirror-extension-save-helper | save the editor content if it changes |
| @tidbcloud/codemirror-extension-events | 2 normal kinds of event listener: doc change, selection change |
| @tidbcloud/codemirror-extension-themes | 2 simple builtin themes, `bbedit` for light mode, `oneDark` for dark mode |
| @tidbcloud/codemirror-extension-basic-setup | basic configuration for the CodeMirror6 code editor |
| @tidbcloud/codemirror-extension-basic-setup | basic configuration for codemirror |

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/ai-widget/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-ai-widget

This extension provides a widget to chat with AI to help you write or refine SQL. (work with other languages wip)
A codemirror extension provides a widget to chat with AI to help you write or refine SQL. (work with other languages wip)

https://github.com/tidbcloud/tisqleditor/assets/1284531/46684333-7efa-4925-bf58-9ab3fb45f692

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/basic-setup/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-basic-setup

Default basic configuration for the CodeMirror6 code editor.
Default basic configuration for codemirror.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/cur-sql-gutter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-cur-sql-gutter

This extension listens the editor selection change, and shows gutter for the SQL statements around the cursor position to make it highlight.
A codemirror extension listens the editor selection change, and shows gutter for the SQL statements around the cursor position to make it highlight.

## Try it

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/cur-sql/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-cur-sql

This extension listens the editor selection change, return the complete SQL statements around the cursor position.
A codemirror extension listens the editor selection change, returns the complete SQL statements around the cursor position.

This extension is installed internally inside the `SQLEditorInstance`.

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/events/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-events

2 normal kinds of event listener: doc change, selection change
2 normal kinds of codemirror event listener: doc change, selection change

- onDocChange: triggered when doc changes
- onSelectionChange: triggered when selection changes
Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/linters/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-linters

This extension provides 3 linters:
3 linter codemirror extensions:

- useDbLinter: use statement linter, the first statement should be `use ${dbName};`
- fullWidthCharLinter: lint all the full width characters
Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/save-helper/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-save-helper

This extension listens the editor doc changes, if changes, it will call the save handler in delay time, or, you can press the defined hotkey (default is `Mod-s`) to call save handler immediately.
A codemirror extension listens the editor doc changes, if changes, it will call the save handler in delay time, or, you can press the defined hotkey (default is `Mod-s`) to call save handler immediately.

## Try it

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/sql-autocomplete/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-sql-autocomplete

This extension implements the SQL keyword and database schema autocompletion based `@codemirror/autocomplete` for the CodeMirror6 editor, with a customized style.
A codemirror extension implements the SQL keyword and database schema autocompletion based `@codemirror/autocomplete`, with a customized style.

## Try it

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/sql-parser/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-sql-parser

This extension listens the editor doc change, return all the parsed statements.
A codemirror extension listens the editor doc change, parses the content to SQL statements.

This extension is installed internally inside the `SQLEditorInstance`.

Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/themes/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @tidbcloud/codemirror-extension-themes

This extension provides 2 simple and out of box editor themes to use, `bbedit` is for light mode and `oneDark` is for dark mode.
Codemirror theme extensions, provide 2 simple and out of box editor themes to use, `bbedit` is for light mode and `oneDark` is for dark mode.

If these 2 themes are not suitable for you, you can choose other themes from third-party libraries or customized a theme by yourself.

Expand Down

0 comments on commit 670cc59

Please sign in to comment.