vim-mode-plus-jasmine-increase-focus

increase, decrease focus level of jasmine spec

t9md

1,068

3

0.5.0

MIT

GitHub

This package consumes the following services:

Build Status

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.

Features

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

'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'
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

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"