Toggle RSpec blocks with :focus using keyboard shortcuts within Sublime Text
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
messages
test
.gitignore
Default.sublime-commands
Default.sublime-keymap
LICENSE
README.md
messages.json
toggle_rspec_focus.py

README.md

sublime-toggle-rspec-focus

A Sublime Text plugin that comes in handy when working with RSpec.

Toggle RSpec Focus in Action!

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

{ 
    "keys": ["ctrl+shift+o"], 
    "command": "toggle_rspec_focus" 
}