Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
[package]
name = "kak-subvert"
name = "caser-cli"
version = "1.0.3"
authors = ["Dimitri Merejkowsky <[email protected]>"]
edition = "2021"
description = "Casing conversions for Kakoune"
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/dmerejkowsky/kak-subvert"
keywords = ["kakoune", "subvert", "inflect"]
repository = "https://github.com/dmerejkowsky/caser-cli"
keywords = ["kakoune", "caser", "inflect"]
categories = ["command-line-utilities"]

[[bin]]
name = "caser"
path = "src/main.rs"

[dependencies]
Inflector = "0.11.4"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![crates.io image](https://img.shields.io/crates/v/kak-subvert.svg)](https://crates.io/crates/kak-subvert)
[![crates.io image](https://img.shields.io/crates/v/caser-cli.svg)](https://crates.io/crates/caser-cli)

# kak-subvert
# caser

Allow converting selection to various casings.

Expand All @@ -24,9 +24,9 @@ ugly Foo_Bar
## Installation

```
$ cargo install kak-subvert
$ cargo install caser-cli
```

This should add a `kak-subvert` command to your $PATH.
This should add a `caser` command to your $PATH.

Then you should add something like [subvert.kak](./subvert.kak) in your Kakoune configuration.
Then you should add something like [caser.kak](./caser.kak) in your Kakoune configuration.
11 changes: 11 additions & 0 deletions caser.kak
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare-user-mode caser
map global user y ':enter-user-mode caser<ret>' -docstring 'enter caser user mode'
map global caser a '<esc>| caser ada <ret>' -docstring 'Ada_Case'
map global caser c '<esc>| caser camel <ret>' -docstring 'camelCase'
map global caser k '<esc>| caser kebab <ret>' -docstring 'kebab-case'
map global caser p '<esc>| caser pascal <ret>' -docstring 'PascalCase'
map global caser . '<esc>| caser sentence <ret>' -docstring 'Sentence case'
map global caser s '<esc>| caser snake <ret>' -docstring 'snake_case'
map global caser S '<esc>| caser screaming <ret>' -docstring 'SCREAMING_CASE'
map global caser t '<esc>| caser train <ret>' -docstring 'Train-Case'
map global caser T '<esc>| caser title <ret>' -docstring 'Title Case'
11 changes: 0 additions & 11 deletions subvert.kak

This file was deleted.

2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github_url = "https://github.com/your-tools/kak-subvert"
github_url = "https://github.com/your-tools/caser"

[version]
current = "1.0.3"
Expand Down