This package consumes the following services:
vim-mode-plus-jasmine-increase-focus
This is operator plugin for vim-mode-plus.
Increase, decrease focus of current jasmine or rspec spec section you are in.
No need to move cursor to header line.
Of course, this is operator, you can repat it with .
command.
- ex-1:
it
,fit
,xit
- ex-2:
it
,fit
,ffit
,fffit
for jasmine-focused user.
Features
- Respect
flashOnOperate
configuration of vim-mode-plus.
keymap example
No keymap by default. Set following keymap to in your keymap.cson
.
'atom-text-editor.vim-mode-plus.normal-mode':
'-': 'vim-mode-plus-user:jasmine-increase-focus'
'ctrl--': 'vim-mode-plus-user:jasmine-decrease-focus'
or For specific grammar
- CoffeeScript
'atom-text-editor.vim-mode-plus.normal-mode[data-grammar="source coffee"]':
'-': 'vim-mode-plus-user:jasmine-increase-focus'
'ctrl--': 'vim-mode-plus-user:jasmine-decrease-focus'
- JavaScript
atom-text-editor.vim-mode-plus.normal-mode[data-grammar="source js"]':
'-': 'vim-mode-plus-user:jasmine-increase-focus'
'ctrl--': 'vim-mode-plus-user:jasmine-decrease-focus'
Configuration
Focus Texts
You can customize list of prefixed focus level text.
"f, x
" is by default.
This mean you can toggle
fit
,xit
,it
(no prefix) when increasexit
,fit
,it
(no prefix) when decrease
e.g.
If you are using jasmine-focused and want to toggle fit
to fffit
and don't use x
focus, set this value to "f, ff, fff
"