Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axsuul/sublime-toggle-rspec-focus
Toggle RSpec blocks with :focus using keyboard shortcuts within Sublime Text
https://github.com/axsuul/sublime-toggle-rspec-focus
sublime-text sublime-text-plugin
Last synced: 3 months ago
JSON representation
Toggle RSpec blocks with :focus using keyboard shortcuts within Sublime Text
- Host: GitHub
- URL: https://github.com/axsuul/sublime-toggle-rspec-focus
- Owner: axsuul
- License: mit
- Created: 2015-06-09T04:03:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-17T02:19:24.000Z (over 8 years ago)
- Last Synced: 2024-07-30T20:45:31.318Z (6 months ago)
- Topics: sublime-text, sublime-text-plugin
- Language: Python
- Homepage: https://github.com/axsuul/sublime-toggle-rspec-focus
- Size: 9.77 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sublime-toggle-rspec-focus
A Sublime Text plugin that comes in handy when working with RSpec.
![Toggle RSpec Focus in Action!](http://i.imgur.com/TYhUzZK.gif)
Often you will find yourself adding `:focus` to test specific examples. This plugin makes it easy by allowing you to toggle `:focus` on a specific line with a keyboard shortcut.
## Installation
Use [Package Control](https://packagecontrol.io/packages/Toggle%20RSpec%20Focus) to install. You may need to restart Sublime Text!
## Usage
The default keyboard shortcut is `ctrl+shift+o` to focus/unfocus. To change this, you can edit your key bindings in **Preferences > Key Bindings - User** with
```json
{
"keys": ["ctrl+shift+o"],
"command": "toggle_rspec_focus"
}
```