Skip to content

Commit 12e2b14

Browse files
committed
Update README and CHANGELOG (v1.1.0)
1 parent 569508b commit 12e2b14

10 files changed

+21
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

33
## [Unreleased]
4+
5+
## [1.1.0] - 2019-06-23
46
### Added
57
- New setting `stableSort.preferWordSorting` (see Changed subsection below)
68

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,23 @@ sort on arbitrary column of visually aligned text data such as output of
7979
![Sorting lines by entire content](images/sort-lines-whole.gif)
8080
- Sort lines by selected parts<br>
8181
![Sorting lines by selected parts](images/sort-lines-part.gif)
82-
83-
## Gallery
84-
85-
- Sorting targets of `import` of TypeScript:<br>
86-
![Sorting imports](images/sort-imports.gif)
87-
- Sorting visually aligned text data is (relatively) easy:<br>
88-
![Sorting visually aligned](images/sort-visually-aligned.gif)
89-
82+
- Sort visually aligned lines by specific "column"<br>
83+
![Sorting lines by selected parts](images/sort-visually-aligned.gif)
84+
85+
## Sorting Words Spread over Multiple Lines
86+
87+
By default you cannot sort words spread over multiple lines. If the selection
88+
covers multiple lines, those lines touched by the selection will be sorted.
89+
To change this behavior, set `true` to `stableSort.preferWordSorting` option.
90+
Doing so makes this extension sort selected words if start or end of the
91+
selection is in the middle of a line. Note that even if this option was enabled
92+
you can sort multiple words by placing both start and end of the selection at
93+
the beginning of a line (as in the example animation above.)
94+
95+
- For example, we can sort import target in Julia language:<br>
96+
![Sorting words spread over multiple lines](images/sort-words-multiline.gif)<br>
97+
In this example, we don't need to care about where to insert a new target; just
98+
appending one and sorting them will move it to the right place.
9099

91100
# Background
92101

images/sort-imports.gif

-101 KB
Binary file not shown.

images/sort-lines-part.gif

-2.75 KB
Loading

images/sort-lines-whole.gif

7.86 KB
Loading

images/sort-visually-aligned.gif

-17.9 KB
Loading

images/sort-words-multiline.gif

84.3 KB
Loading

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Stable Sort",
44
"description": "Sort lines and words using stable sort algorithm.",
55
"license": "MIT",
6-
"version": "1.0.0",
6+
"version": "1.1.0",
77
"publisher": "sgryjp",
88
"repository": {
99
"type": "git",

vscode-stable-sort-20190622.vsix

-414 KB
Binary file not shown.

0 commit comments

Comments
 (0)