10000 GitHub - emacsmirror/evil-string-inflection at 1.0.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

emacsmirror/evil-string-inflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

evil-string-inflection

https://travis-ci.org/ninrod/evil-string-inflection.svg?branch=master https://melpa.org/packages/evil-string-inflection-badge.svg http://stable.melpa.org/packages/string-inflection-badge.svg https://img.shields.io/badge/license-GPLv3-blue.svg

https://image.slidesharecdn.com/theneverendingrestapidesigndebate-devoxx2015-151121085802-lva1-app6892/95/the-neverending-rest-api-design-debate-18-638.jpg?cb=1448097446

Evil operator to cycle text objects through camelCase, kebab-case, snake_case and UPPER_C 8134 ASE.

It wraps the string-inflection package.

Installation

place the file in your load-path and write (require 'evil-string-inflection) in your ~/.emacs.d/init.el.

Usage

This package provides the g~ operator to transform CamelCase words into snake_case. You can customize the binding.

Try using g~iw.

Examples

  • here’s a sample cycle. cursor is on []:
Camel[C]aseWord
-> g~iW
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-replace-with-char)

LICENSE

GNU General Public License v3
Copyright (c) 2017 Filipe Silva (ninrod)

About

Snake_case -> CamelCase -> etc. for text objects

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages

  • Emacs Lisp 89.6%
  • Makefile 10.4%
0