Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t9md/atom-vim-mode-plus-jasmine-increase-focus
increase/decrease focus level of jasmine spec
https://github.com/t9md/atom-vim-mode-plus-jasmine-increase-focus
atom vim-mode-plus
Last synced: 9 days ago
JSON representation
increase/decrease focus level of jasmine spec
- Host: GitHub
- URL: https://github.com/t9md/atom-vim-mode-plus-jasmine-increase-focus
- Owner: t9md
- License: mit
- Created: 2016-01-12T13:02:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-09T04:30:03.000Z (about 7 years ago)
- Last Synced: 2024-10-29T18:24:53.599Z (about 2 months ago)
- Topics: atom, vim-mode-plus
- Language: CoffeeScript
- Homepage: https://atom.io/packages/vim-mode-plus-jasmine-increase-focus
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/t9md/atom-vim-mode-plus-jasmine-increase-focus.svg?branch=master)](https://travis-ci.org/t9md/atom-vim-mode-plus-jasmine-increase-focus)
# vim-mode-plus-jasmine-increase-focus
This is operator plugin for [vim-mode-plus](https://atom.io/packages/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.![](https://raw.githubusercontent.com/t9md/t9md/1d709b4b42780bf98c1387802b1b8733ea9cd4a5/img/atom-vmp-jasmine-increase-focus.gif)
- ex-1: `it`, `fit`, `xit`
- ex-2: `it`, `fit`, `ffit`, `fffit` for [jasmine-focused](https://www.npmjs.com/package/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`.
```coffeescipt
'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
```coffeescipt
'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
```coffeescipt
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 increase
- `xit`, `fit`, `it`(no prefix) when decreasee.g.
If you are using [jasmine-focused](https://www.npmjs.com/package/jasmine-focused) and want to toggle `fit` to `fffit` and don't use `x` focus, set this value to "`f, ff, fff`"