Extension for nova.app that allows you to shuffle highlighted text/lines.
The shuffle being used is a Fisher-Yates shuffle.
Currently you can shuffle in 2 different ways:
- Shuffle Lines: Shuffle multiple selected lines.
- Shuffle Content: The lines are NOT shuffled but each character (not counting whitespace on the left) is shuffled for one or more selected lines.
- TODO Shuffle Content: If you select an array by selecting it's start and end (signified by brackets or curly braces) following the
[x,y,z]
or{x,y,z}
syntax. The space after the,
is optional.
- I tried shuffling lines on about 100k lines and it worked fine, although Nova definitely struggled with replacing that amount of text in one go. Aka the shuffling isn't really the bottleneck.
- Shuffling content seemed to start complaining a bit on my computer for a file that was about 1.4MB (50k LoC of roughly 40 character length).