Skip to content

Commit

Permalink
feat: add shuffle blocks commands
Browse files Browse the repository at this point in the history
  • Loading branch information
1nVitr0 committed Dec 28, 2024
1 parent 6a7c2fa commit db4d014
Show file tree
Hide file tree
Showing 13 changed files with 587 additions and 123 deletions.
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
"onStartupFinished",
"onCommand:blocksort.sortBlocksAsc",
"onCommand:blocksort.sortBlocksDesc",
"onCommand:blocksort.sortBlocksShuffle",
"onCommand:blocksort.sortBlocksMultilevelAsc",
"onCommand:blocksort.sortBlocksMultilevelDesc",
"onCommand:blocksort.sortBlocksMultilevelShuffle",
"onCommand:blocksort.sortInnerBlocksAsc",
"onCommand:blocksort.sortInnerBlocksDesc",
"onCommand:blocksort.sortInnerBlocksShuffle",
"onCommand:blocksort.expandSelectionLocally",
"onCommand:blocksort.expandSelectionFull"
],
Expand All @@ -57,6 +60,15 @@
"light": "resources/icon_desc.svg"
}
},
{
"command": "blocksort.sortBlocksShuffle",
"title": "Shuffle Blocks",
"category": "Sort",
"icon": {
"dark": "resources/icon_shuffle_dark.svg",
"light": "resources/icon_shuffle.svg"
}
},
{
"command": "blocksort.sortBlocksMultilevelAsc",
"title": "Sort Blocks Deep Ascending (Multilevel)",
Expand All @@ -75,6 +87,15 @@
"light": "resources/icon_desc.svg"
}
},
{
"command": "blocksort.sortBlocksMultilevelShuffle",
"title": "Shuffle Blocks Deep (Multilevel)",
"category": "Sort",
"icon": {
"dark": "resources/icon_shuffle_dark.svg",
"light": "resources/icon_shuffle.svg"
}
},
{
"command": "blocksort.sortInnerBlocksAsc",
"title": "Sort inner Blocks Ascending",
Expand All @@ -93,6 +114,15 @@
"light": "resources/icon_desc.svg"
}
},
{
"command": "blocksort.sortInnerBlocksShuffle",
"title": "Shuffle inner Blocks",
"category": "Sort",
"icon": {
"dark": "resources/icon_shuffle_dark.svg",
"light": "resources/icon_shuffle.svg"
}
},
{
"command": "blocksort.expandSelectionLocally",
"title": "Expand current Selection to surrounding Block",
Expand Down
125 changes: 97 additions & 28 deletions resources/icon_asc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
131 changes: 103 additions & 28 deletions resources/icon_asc_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit db4d014

Please sign in to comment.