Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Text into Array

Join newline-separated data into an array of strings

Before

Hello
This
Is
Helix

After

["Hello", "This", "Is", "Helix"]

Preview

Command

%<alt-s>ms"<alt-J>i,<esc>xms[
  1. % selects full file
  2. <alt-s> split selection into multiple selections on newlines
  3. ms" surrounds each word with quotes
  4. <alt-J>i, join lines inside selection, select the inserted space, and insert ","s
  5. <esc>xms[ surround by "[]"