GitXplorerGitXplorer
n

boole.nvim

public
165 stars
6 forks
12 issues

Commits

List of commits on branch main.
Verified
7b4a3dae28e3b2497747aa840439e9493cabdc49

Merge pull request #25 from Benson9954029/fix_number_in_word

nnat-418 committed 2 years ago
Verified
cb8adf23532f96e1e807ca8e8275c6878380da53

Merge pull request #28 from cgjosephlee/issue-27

nnat-418 committed 2 years ago
Verified
b889552dd9c7bf48e607533db7d3682c1cf58000

feat: black hole register (#27)

ccgjosephlee committed 2 years ago
Unverified
692bb6dfb0d773098402bc7a8e6c0c330826e65f

fix_number_in_word

BBenson9954029 committed 2 years ago
Unverified
c1d42fe6343d3a41b2bfe68fde54ac2771a3205b

fix_number_in_word

BBenson9954029 committed 2 years ago
Verified
f4f9996f91159e54b8f1893b20e2e599c91bc1bd

docs: Update README.md

nnat-418 committed 2 years ago

README

The README file for this repository.

boole.nvim 🔛

Boole is a simple Neovim plugin that extends the default increment and decrement functionality of CTRL-A and CTRL-X to allow for toggling boolean values like on, yes, and true as well as cycling through:

  • Days of the week and their abbreviations (e.g., Monday → Tuesday)
  • Months of the year and their abbreviations (e.g., Jan → Feb)
  • X11 / Web color names (e.g., Orange → OrangeRed)
  • Canonical hours (e.g., Compline → Vigil)
  • Letter + number "words" (e.g., F1 → F2)

This plugin ships one command:

  • :Boole {increment|decrement}

This command can be safely mapped to CTRL-A and CTRL-X. See the configuration section below for an example.

Installation

$ git clone --depth 1 https://github.com/nat-418/boole.nvim ~/.local/share/nvim/site/pack/boole/start/boole.nvim

Configuration

Boole can be mapped to a key by passing a configuration table to the setup function. You can also add any cycle of words you would like. Feel free to submit an issue and pull request with additions you think would make good defaults.

require('boole').setup({
  mappings = {
    increment = '<C-a>',
    decrement = '<C-x>'
  },
  -- User defined loops
  additions = {
    {'Foo', 'Bar'},
    {'tic', 'tac', 'toe'}
  },
  allow_caps_additions = {
    {'enable', 'disable'}
    -- enable → disable
    -- Enable → Disable
    -- ENABLE → DISABLE
  }
})