This package provides a vim motion to quickly switch between cases. Hate camelCase? SWAP IT!!!
In your .spacemacs file (
SPC f e d):
dotspacemacs-additional-packages '( (evil-briefcase :location (recipe :fetcher github :repo "strickinato/evil-briefcase")) )
Then in the user config later in the file:
(defun dotspacemacs/user-config () (evil-briefcase-mode 1) )
Can be used either as a motion:
zcE -- Make everything until the whitespace camelcased
zki( -- Make everthing inside the parentheses kebab kase
Or it can be used in visual mode:
vi(zk -- Select everything in the parentheses visually, then make it kebab kase
zs, which is
evil-close-fold. I never use folding, but if you use code folding and don't rely on toggling, then you'll have to remap it back.
These functions are based of the amazing s.el. This made the package easy to write, but it also means that ceratin non text characters get stripped away. eg.
[:openTheBriefcase], with cursor on the
zci[ #=> [open_the_briefcase] (we lose the colon)