cheatSheet - restaurant-ide/restaurant GitHub Wiki

Restaurant Cheat Sheet

Shorting conventions

  • C-... means press Control+... ex. C-m is for "Control+M"
  • M-... means press Alt+... (as "Meta" key) ex. M-x is for "Alt+x"
  • S-... means press Shift+... ex. S-1 is for "Shift+1" or !
  • s-... means press Winkey+... (as "Super" key) ex. s-d is for "Winkey+d"

Combinations are accepted:

  • C-M-S-k - press: Control+Alt+Shift+k

Generic keybindings

Binding Command Description
C- company-yasnippet Get yasnippet autocompletions variants from menu
M-/ dabbrev-expand Try to complete text, prognosing on current buffer content
company-complete Try to complete text automatically
C-c C-f flash-cross Flash current line and current column
S-<left_arrow> Switch to previous tab
S-<right_arrow> Switch to next tab
M-x Call prompt to execute internal commands
M-x Call prompt to execute internal commands
M-! Call shell command directly from Restaurant
C-c C-f format the region/buffer
C-c C-p display a path to the object at point Lights, Camera, Action!

F- group

Binding Command Description
F3 berks-update berks install/update
C-F3 rvm-use rvm use ruby@gem
S-F3 bundle-update bundle install/update
F5 foodcritic-check-project
S-F5 foodcritic-check-current-file
F6 rubocop-check-project
S-F6 rubocop-check-current-file
F8 rspec
C-F8 rspec on current file
C-S-F8 rspec on place
C-S-F9 test-kitchen-verify-all
S-F9 test-kitchen-verify
C-F9 test-kitchen-converge-all
F9 test-kitchen-converge run kitchen converge
F12 open-console unix shell
C-F12 ruby-switch-to-inf ruby shell
C-S-F12 ielm emacs shell
F11 toggle-code-browser Fullscreen editor
C-F11 ecb-toggle-compile-window Show/hide compile window
F7/C-s isearch-forward search
S-F7 highlight-regexp highlight phrase
C-S-F7 unhighlight-regexp unhighlight phrase
M-F7 projectile-grep search in whole project

Typical flow: C-F3 -> S-F3 -> F3 -> F5 -> F6 -> F8 -> S-F9 -> (checkout to new branch, commit, push, create pull request)

yas-next-field-or-maybe-expand

⚠️ **GitHub.com Fallback** ⚠️