GitHub - ninrod/evil-string-inflection: evil operator to cycle *-case in text ob...
source link: https://github.com/ninrod/evil-string-inflection
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
evil-string-inflection
Evil operator to cycle text objects through camelCase, kebab-case, snake_case and UPPER_CASE.
It wraps the string-inflection package. Credits and thanks go to Akira Ikeda for writing this library.
Installation
- Just use MELPA. Here’s an oneliner using use-package:
(use-package evil-string-inflection :ensure t)
Usage
This package provides the g~
operator to transform CamelCase words into snake_case.
You can customize the binding.
Try using g~io
.
Examples
- here’s a sample cycle. cursor is on
[]
:
Camel[C]aseWord -> g~io camelCaseWord -> . camel-case-word -> . camel_case_word -> . CAMEL_CASE_WORD -> . CamelCaseWord
Customization
- you can customize
evil-string-inflection
’s binding as follows:
;; it is g~ by default
(define-key evil-normal-state-map "gR" 'evil-operator-string-inflection)
LICENSE
GNU General Public License v3 Copyright (c) 2017-2021 Filipe Silva (ninrod)
Recommend
-
122
EXATO: Evil XML Attributes Text Object
-
120
underscore -> UPCASE -> CamelCase conversion of names Change History Configuration Examples Example 1
-
139
evil-replace-with-char evil operator to replace all chars of a text object with a char. Installation place the file in your load-path and write (require 'evil-replace-with-char) in your ~/.emacs...
-
2
TechReid Hoffman’s new start-up poaches first staff from Google and Meta Published Tue, Mar 29 20224:48 AM EDT
-
6
Newly launched AI startup Inflection AI raises $225M in funding
-
3
If ABM's at an inflection point, where to next? The way ahead according to Terminus CMO Natalie Cunningham By Barb Mosher Zinck
-
2
CYBER: Inflection Is the Background Check Company Making Decisions for Uber and AirbnbThe background checker is quick, automated, and all but impossible to talk to.October 12, 2022, 1:00pm...
-
2
2022-10-15 07:55 去中心化内容发布平台 t2.world 完成 340 万美元融资,Inflection 和 Archetype 领投 据 Cryptodaily 10 月 15 日消息,去中心化内容发布平台 t2.world(t2)宣布完成 340 万美元种子轮融资,Infl...
-
5
Inflection Point SvelteKit 1.0 with Kevin Åberg Kultalahti on Web Rush #221 Kevin Åberg Kultalahti joins us to talk about Svelte, the release of SvelteKit 1....
-
5
2023-03-03 07:25 知情人士:AI 初创公司 Inflection AI 计划融资 6.75 亿美元 据英国《金融时报》援引知情人士报道,由 DeepMind 联合创始人 Mustafa Suleyman 和 LinkedIn 创始人 Reid Hoffman 成立的 AI 初创公...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK