You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
chee 823d084e23 add shift+space for easier typing of UPPER_CONSTS 4 years ago
keymaps add shift+space for easier typing of UPPER_CONSTS 4 years ago
lib present disable as a command 4 years ago
menus add snake case and kebab mode 4 years ago
spec add snake case and kebab mode 4 years ago
styles remove unused files and update readme 4 years ago
.gitignore begin camelCaseMode 4 years ago
LICENSE.md remove unused files and update readme 4 years ago
README.md update README 4 years ago
package-lock.json add snake case and kebab mode 4 years ago
package.json Prepare 0.1.0 release 4 years ago

README.md

spacecase

formerly camelCaseMode

  • three modes
    • camelCaseMode
    • kebab-case-mode
    • snake_case_mode

press a key to enable a mode, transforming the letter pressed right after a space

for instance, after dispatching spacecase:toggle-camel:

pleasespacehelpspacemespacemrsspacejones comes out like pleaseHelpMeMrsJones

you can press space again to get out of the mode, or enter or escape.

default keybindings

default bindings use ctrl-shift-space as prefix key.

  • ctrl-shift-space ctrl-shift-space toggle camelCaseMode
  • ctrl-shift-space - toggle kebab-case-mode
  • ctrl-shift-space _ toggle snake_case_mode

visual indication

can enable some kind of indication for yoself that you in spacecase mode by way of

// styles.less
.spacecase {
  border: 2px solid #ff2a50;
}

(.spacecase is set on atom-text-editor)

todo

  • write tests
  • apologise to everybody for everything i've ever done
  • meet a princess and live in a castle
  • or a prince