Skip to content

Commit 1c59177

Browse files
author
Gaspar Chilingarov
committed
Adds support for jumping between correlative source/ExUnit test file.
1 parent ed4a47b commit 1c59177

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

CHEATSHEET.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ shortcuts/commands:
1515
* `<Ctrl-v>` opens selected files in vertical split
1616
* `<Ctrl-s>` opens selected files in horizontal split
1717

18+
* `<Leader>xt` opens correlative source/test file
19+
* `<Leader>xs` opens correlative source/test file in horizontal split
20+
* `<Leader>xv` opens correlative source/test file in vertical split
21+
* `<Leader>x!` opens correlative source/test, creates directories if necessary
22+
1823
**In file**
1924
* `<F1>` shows Elixir docs for function under cursor.
2025
* `<Ctrl-@>` opens functions list for fuzzy search
@@ -92,6 +97,11 @@ shortcuts/commands:
9297
* `]e` go to next error
9398
* `[e` go to previous error
9499
100+
* `<Leader>xt` opens correlative source/test file
101+
* `<Leader>xs` opens correlative source/test file in horizontal split
102+
* `<Leader>xv` opens correlative source/test file in vertical split
103+
* `<Leader>x!` opens correlative source/test, creates directories if necessary
104+
95105
#### Git integration
96106
* `:Gstatus` - show modified files and staged status
97107
* `-` (in normal mode) on file name moves between staged/unstaged mode

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ avoid laborious task of finding and tuning of plugins/themes.
1212
* Fuzzy search by function/module name in file
1313
* Fuzzy filename search in project
1414
* Navigation to Elixir/Erlang source code
15+
* Jump between source and ExUnit test files automatically
1516
* Editing
1617
* Automatic folding of functions and tests
1718
* Line comment/uncomment shortcuts

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Items marked with x are done.
2121
x compile time errors and jump to them
2222
x quickfix support for ExUnit test outputs + xterm integration (crashes/test fails)
2323
x test runner (test/test.watch) on project, file or current function
24-
* add switching between test/source file (`test file name == source + "_test.exs")
24+
x add switching between test/source file (`test file name == source + "_test.exs")
2525

2626
* templates for GenServer/GenStage/etc modules (may be also snipMate)
2727

bundle/vim-elixir-exunit

0 commit comments

Comments
 (0)