IMPORTANT: All mappings start with <leader>j. All of the following mapping
descriptions omit it. Read every mapping as: <leader>j{mapping}.
Mappings:
- Alternation mappings:
- Alternate test:
at: alternate betweenfilename.*andfilename.test.*or (if you already have a__tests__folder)__tests__/filename.test.*.vt: likeatbut opens in a vertical split.ht: likeatbut opens in a horizontal split.
- Alternate mock:
am: alternate betweenfilename.*and__mocks__/filename.*(and optionally create__mocks__directory if it doesn't exist).vm: likeambut opens in a vertical split.hm: likeambut opens in a horizontal split.
- Alternate test:
- Only mappings:
to: toggle current assertion betweenitandit.only.oo: liketobut also removes all otheronlys in buffer if it is togglingonlyon (making the assertion the Only Only).ro: makes allit.onlyassertions simpleitassertions (Removing Onlies).
- Mocking import mappings:
mi: mock import of current line in the next line.