Skip to content

Commit

Permalink
Update README and CHANGELOG (v1.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgryjp committed Jun 23, 2019
1 parent 569508b commit 12e2b14
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Change Log

## [Unreleased]

## [1.1.0] - 2019-06-23
### Added
- New setting `stableSort.preferWordSorting` (see Changed subsection below)

Expand Down
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,23 @@ sort on arbitrary column of visually aligned text data such as output of
![Sorting lines by entire content](images/sort-lines-whole.gif)
- Sort lines by selected parts<br>
![Sorting lines by selected parts](images/sort-lines-part.gif)

## Gallery

- Sorting targets of `import` of TypeScript:<br>
![Sorting imports](images/sort-imports.gif)
- Sorting visually aligned text data is (relatively) easy:<br>
![Sorting visually aligned](images/sort-visually-aligned.gif)

- Sort visually aligned lines by specific "column"<br>
![Sorting lines by selected parts](images/sort-visually-aligned.gif)

## Sorting Words Spread over Multiple Lines

By default you cannot sort words spread over multiple lines. If the selection
covers multiple lines, those lines touched by the selection will be sorted.
To change this behavior, set `true` to `stableSort.preferWordSorting` option.
Doing so makes this extension sort selected words if start or end of the
selection is in the middle of a line. Note that even if this option was enabled
you can sort multiple words by placing both start and end of the selection at
the beginning of a line (as in the example animation above.)

- For example, we can sort import target in Julia language:<br>
![Sorting words spread over multiple lines](images/sort-words-multiline.gif)<br>
In this example, we don't need to care about where to insert a new target; just
appending one and sorting them will move it to the right place.

# Background

Expand Down
Binary file removed images/sort-imports.gif
Binary file not shown.
Binary file modified images/sort-lines-part.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sort-lines-whole.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sort-visually-aligned.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sort-words-multiline.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Stable Sort",
"description": "Sort lines and words using stable sort algorithm.",
"license": "MIT",
"version": "1.0.0",
"version": "1.1.0",
"publisher": "sgryjp",
"repository": {
"type": "git",
Expand Down
Binary file removed vscode-stable-sort-20190622.vsix
Binary file not shown.

0 comments on commit 12e2b14

Please sign in to comment.