string-inflection: transient state for cycling
This commit is contained in:
parent
c366991422
commit
2db9958894
|
@ -2704,7 +2704,7 @@ Text related commands (start with ~x~):
|
||||||
| ~SPC x g l~ | set languages used by translate commands |
|
| ~SPC x g l~ | set languages used by translate commands |
|
||||||
| ~SPC x g t~ | translate current word using Google Translate |
|
| ~SPC x g t~ | translate current word using Google Translate |
|
||||||
| ~SPC x g T~ | reverse source and target languages |
|
| ~SPC x g T~ | reverse source and target languages |
|
||||||
| ~SPC x i i~ | cycle symbol naming styles |
|
| ~SPC x i i~ | cycle symbol naming styles (~i~ to keep cycling) |
|
||||||
| ~SPC x i u~ | change symbol style to ~under_score~ |
|
| ~SPC x i u~ | change symbol style to ~under_score~ |
|
||||||
| ~SPC x i _~ | change symbol style to ~under_score~ |
|
| ~SPC x i _~ | change symbol style to ~under_score~ |
|
||||||
| ~SPC x i U~ | change symbol style to ~UP_CASE~ |
|
| ~SPC x i U~ | change symbol style to ~UP_CASE~ |
|
||||||
|
|
|
@ -362,8 +362,13 @@
|
||||||
(use-package string-inflection
|
(use-package string-inflection
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
|
(spacemacs|define-transient-state string-inflection
|
||||||
|
:title "String inflection transient state"
|
||||||
|
:doc "\n [_i_] cycle"
|
||||||
|
:bindings
|
||||||
|
("i" string-inflection-all-cycle))
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"xii" 'string-inflection-all-cycle
|
"xii" 'spacemacs/string-inflection-transient-state/body
|
||||||
"xiu" 'string-inflection-underscore
|
"xiu" 'string-inflection-underscore
|
||||||
"xi_" 'string-inflection-underscore
|
"xi_" 'string-inflection-underscore
|
||||||
"xiU" 'string-inflection-upcase
|
"xiU" 'string-inflection-upcase
|
||||||
|
|
Loading…
Reference in a new issue