Skip to content

Commit d30f207

Browse files
committed
fix: update documentation
1 parent 3689a8b commit d30f207

File tree

2 files changed

+111
-1
lines changed

2 files changed

+111
-1
lines changed

CHANGELOG.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,90 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
# [0.6.0](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.5.1...v0.6.0) (2021-06-14)
6+
7+
8+
### Features
9+
10+
* contribute configuration for natural sorting ([0b61216](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/0b6121654e55c25138d7588ea941e7caad5eba7e))
11+
* natural sorting of lines containing numbers ([d04a963](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/d04a96314914cda5ab2c79b2b4e33517a6be439c))
12+
* support natural sorting for negative numbers ([a2bf771](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/a2bf7715327948e31e88c03dc96c7e0f81176ad3))
13+
14+
15+
## [0.5.1](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.5.0...v0.5.1) (2021-06-08)
16+
17+
18+
### Bug Fixes
19+
20+
* fix dist folder ([fb7f44a](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/fb7f44a1615e1552c9207d00bee1c9bba1b96819))
21+
22+
23+
# [0.5.0](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.4.0...v0.5.0) (2021-06-08)
24+
25+
26+
### Features
27+
28+
* add suport for multilevel sorting ([789405a](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/789405a9385f88a0a5a1fe2a11ee28b4d07a35f2))
29+
* dialog for setting level for multilevel sort ([aedf3e6](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/aedf3e6d9561533191f9e0a5f5966a69c9ee2597))
30+
* options for multilevel sort ([b55b7f4](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/b55b7f413ce5595649e243f3fd90548ee7e05c61))
31+
* provide commands for multilevel sort ([9a856ba](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/9a856ba5045dbf59a77bdf61200095c6ff66449d))
32+
33+
34+
# [0.4.0](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.3.0...v0.4.0) (2021-05-06)
35+
36+
37+
### Features
38+
39+
* always put else / delete option last ([0a539c5](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/0a539c5210099042c56909c1cc99157035e95ba5))
40+
* configuration settings for block header sorting ([bf5ef4c](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/bf5ef4c2610570dbef240cfb69fcd8bc726de3d5))
41+
* sort block headers ([4c3fba5](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/4c3fba5d45dcaff15710ccbba2d1b072c1345ae0))
42+
* sticky block headers (case expressions) ([0bed7eb](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/0bed7ebe8b287e8704cc4683dcfdeff97ce9ceb0))
43+
44+
45+
# [0.3.0](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.2.1...v0.3.0) (2021-04-15)
46+
47+
48+
### Bug Fixes
49+
50+
* fix expansion when second line is selected ([69574d8](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/69574d8403771bd622a8ed81054c7b2a5c93cb7c))
51+
* fix newline issues on toplevel sorting ([f2b8ce1](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/f2b8ce1a52e0127a9df40d0bae7cf1d61bf14110))
52+
53+
54+
### Features
55+
56+
* add configuration for block marker regexes ([86d0d77](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/86d0d77a876a70c1672f233b7eaafc1a9bd76bf9))
57+
* simplify and extend folding detection ([27c4769](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/27c4769bfebf0dec658b05d7cc78ef8de2856438))
58+
59+
60+
## [0.2.1](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.2.0...v0.2.1) (2021-04-02)
61+
62+
63+
### Bug Fixes
64+
65+
* fix invalid selectionexpansion on first line ([1b60b35](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/1b60b3513199141d60f937e3d673f0f99b4da9de))
66+
* no sorting over cpp-like visibility modifiers ([e7579a4](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/e7579a4507636ce9b8645352f678639fe7c8759c))
67+
68+
69+
# [0.2.0](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.1.2...v0.2.0) (2021-04-02)
70+
71+
72+
### Bug Fixes
73+
74+
* fix sigsev issues with vscode and electron ([29cf9cb](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/29cf9cbf55af06fb99491acd961409beeb6b376e))
75+
* remove build command from test action ([b5176a4](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/b5176a489d8379fc2797ed0ef31348d59c14c1e2))
76+
77+
78+
### Features
79+
80+
* add actions for tests ([444c312](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/444c3125d53ec39ce32397f8c8538578b94d7130))
81+
* add automated tests ([6f33690](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/6f336901ed9445ea73bf99213e8b33d27a13d8fb))
82+
* add language specific comments ([59722ac](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/59722acbfaf25a6405295e40907cb0a7b845ff01))
83+
* add language specific strings ([02dd26d](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/02dd26d52ec213f7785ca4bbb73d9d3a9c9cb81b))
84+
* add semantic release ([c0424fb](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/c0424fb740d99d6d7c1d9d689a1951a554f9859b))
85+
* stricky comments and newline management ([1d1cebe](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/1d1cebe9f566be9e34c0df84a13a4c861f37cc8f))
86+
* support for xml and better block recognition ([0cab698](https://github.com/1nVitr0/plugin-vscode-blocksort/commit/0cab6988beecf36880e77b9136818f88130dd642))
87+
88+
589
### [0.1.2](https://github.com/1nVitr0/plugin-vscode-blocksort/compare/v0.1.1...v0.1.2) (2021-03-21)
690

791

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ The extension offers commands, similar to the default "Sort Lines Ascending / De
1515
The selection should automatically expand to the surrounding block if nothing is selected.
1616
If something is already selected, the extension tries it's best to validate and clean up your selection.
1717

18+
Additional features include:
19+
20+
- deep (multilevel) sorting for nested blocks
21+
- "*natural*" sorting for lines containing numbers
22+
1823
The blocks are sorted purely by their content, so while decorators are supported, classes or functions with different decorators will be sorted by their decorators first.
1924

2025
## Commands
@@ -25,9 +30,29 @@ This extension contributed the following commands:
2530

2631
`Sort Blocks Descending`: Sorts the selected code blocks in descending order. If no code blocks are selected, a selection for the deepest block the cursor is currently positioned in is generated.
2732

33+
`Sort Blocks Deep Ascending (Multilevel)`: Sorts the selected code blocks in ascending order, including nested blocks up to a specified depth.
34+
35+
`Sort Blocks Deep Descending (Multilevel)`: Sorts the selected code blocks in descending order, including nested blocks up to a specified depth.
36+
2837
## Extension Settings
2938

30-
This extension currently contributes no settings.
39+
This extension contributed the following settings:#
40+
41+
`defaultMultilevelDepth`: Default depth used for deep sorting.
42+
43+
`askForMultilevelDepth`: Skip aksing for multilevel depth and always use `defaultMultilevelDepth`.
44+
45+
`indentIgnoreMarkers`: List of regex markers that when matched will result in ignoring the indentation of the current line. This is for example used for c-style `{` in a new line. The markers are always assumed to be at teh start of the line, but can be preceded by spaces and comments.
46+
47+
`completeBlockMarkers`: List of markers that complete a block. They are assumed to be at the end of a line, but can be succeeded by comments or end-of-line markers (`,` or `;`).
48+
49+
`foldingMarkers`: Dictionary of folding markers. They are supplied set a key-value style, the key being a human-readable ultra-short description of the folding markers.
50+
51+
`enableNaturalSorting`: Enables the natural sorting behavior for lines containing numbers.
52+
53+
`naturalSorting`: Options for the natural sorting behavior. Only takes effect if `enableNaturalSorting` is true.
54+
55+
`sortConsecutiveBlockHeaders`: sorts consecutive block headers, such as a list of `case` statements.
3156

3257
## Known Issues
3358

@@ -36,3 +61,4 @@ This extension currently contributes no settings.
3661
- The extension does NOT check for code erros due to sorting
3762
- The extension assumes valid code, invalid formatting will probably result in invalid sorting
3863
- When comments and / or decorators are involved the results may vary (the extension tries it's best, comments will stick to the lines below them)
64+
- "Natural" sorting may break on UUID strings containing a mix of numbers, letters and/or dashes

0 commit comments

Comments
 (0)