Skip to content

Commit

Permalink
docs: 📝 Add example queries
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Oct 24, 2021
1 parent b445de0 commit e988f13
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,37 @@ As well as in the command palette:

![image](https://user-images.githubusercontent.com/70717676/138410368-bc063007-f3a6-4c4c-b7a4-2f24ebcd3748.png)

## Query Examples

The following is a list of queries created by users of the plugin:

#### Bullet List followed by Numbered List

```re
/- +[\d\w][\.\)] /
```

Matches a bullet point followed by a numbered bullet:

- `- 1. `
- `- 1) `
- `- a. `
- `- a)`

Having both is usually redundant, so this allows you to remove one or the other.

#### Disjoint Bullet Items

```re
/\n\n>? ?[-\d]+\.?/
```

If you prefer bullet points to not have an extra line between them, use this to find offending bullet points.

```md
- 1

- 2

- 3
```

0 comments on commit e988f13

Please sign in to comment.