[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-numbers a2ce896e05 049/145: Update documentation
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-numbers a2ce896e05 049/145: Update documentation |
Date: |
Thu, 6 Jan 2022 03:00:18 -0500 (EST) |
branch: elpa/evil-numbers
commit a2ce896e051f5b1d326c7d80a4dbd7ff669e6a1c
Author: Jan Path <jan@jpath.de>
Commit: Jan Path <jan@jpath.de>
Update documentation
---
README.org | 12 ++++++++++--
evil-numbers.el | 24 +++++++++++++++++-------
2 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/README.org b/README.org
index b1ce830358..fed96ed820 100644
--- a/README.org
+++ b/README.org
@@ -2,7 +2,9 @@
- Increment / Decrement binary, octal, decimal and hex literals
- works like C-a/C-x in vim, i.e. searches for number up to eol and then
- increments or decrements and keep zero padding up (unlike in vim)
+ increments or decrements
+
+ - Can keep zero padding up (off by default)
- When a region is active, as in evil's visual mode, all the
numbers within that region will be incremented/decremented (unlike
@@ -14,6 +16,7 @@
- binary, e.g. =0b0101=, =0B0101=
- octal, e.g. =0o755=, =0O700=
- hexadecimal, e.g. =0xDEADBEEF=, =0XCAFE=
+ - unicode superscript and subscript, e.g. =²= and =₁=.
** Install
Put in =load-path=, =(require 'evil-numbers)= and bind, for example:
@@ -43,13 +46,18 @@
(define-key evil-normal-state-map (kbd "C-<kp-add>")
'evil-numbers/inc-at-pt-incremental)
(define-key evil-normal-state-map (kbd "C-<kp-subtract>")
'evil-numbers/dec-at-pt-incremental)
#+END_SRC
+
+ Set =evil-numbers/padDefault= to =t= if you want numbers to be padded with
+ zeros (numbers with a leading zero are always padded). If you want both
+ behaviours, all commands take an optional argument =padded=.
** Usage
Position cursor on literal and play with your numbers!
** Known Bugs
- See http://github.com/cofi/evil-numbers/issues
+ See http://github.com/janpath/evil-numbers/issues
** Contributors
- Matthew Fidler <matthew.fidler@gmail.com>
- Michael Markert <markert.michael@gmail.com>
+ - Jan Path <jan@jpath.de>
diff --git a/evil-numbers.el b/evil-numbers.el
index 3b799f36ef..f7123b3c12 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -1,14 +1,15 @@
;;; evil-numbers.el --- increment/decrement numbers like in vim
;; Copyright (C) 2011 by Michael Markert
+;; 2018 by Jan Path
;; Author: Michael Markert <markert.michael@googlemail.com>
-;; Contributors:
-;; Matthew Fidler <matthew.fidler@gmail.com>
+;; Contributors: Matthew Fidler <matthew.fidler@gmail.com>
;; Michael Markert <markert.michael@gmail.com>
-;; URL: http://github.com/cofi/evil-numbers
-;; Git-Repository: git://github.com/cofi/evil-numbers.git
+;; Jan Path <jan@jpath.de>
+;; URL: http://github.com/janpath/evil-numbers
+;; Git-Repository: git://github.com/janpath/evil-numbers.git
;; Created: 2011-09-02
-;; Version: 0.4
+;; Version: 0.5
;; Keywords: numbers increment decrement octal hex binary
;; This file is not part of GNU Emacs.
@@ -34,7 +35,7 @@
;; increments or decrements and keep zero padding up
;; Known Bugs:
-;; See http://github.com/cofi/evil-numbers/issues
+;; See http://github.com/janpath/evil-numbers/issues
;; Install:
@@ -44,14 +45,20 @@
;; (global-set-key (kbd "C-c +") 'evil-numbers/inc-at-pt)
;; (global-set-key (kbd "C-c -") 'evil-numbers/dec-at-pt)
+;; (global-set-key (kbd "C-c C-+") 'evil-numbers/inc-at-pt-incremental)
+;; (global-set-key (kbd "C-c C--") 'evil-numbers/dec-at-pt-incremental)
;; or only in evil's normal and visual state:
;; (define-key evil-normal-state-map (kbd "C-c +") 'evil-numbers/inc-at-pt)
;; (define-key evil-visual-state-map (kbd "C-c +") 'evil-numbers/inc-at-pt)
+;; (define-key evil-normal-state-map (kbd "C-c C-+")
'evil-numbers/inc-at-pt-incremental)
+;; (define-key evil-visual-state-map (kbd "C-c C-+")
'evil-numbers/inc-at-pt-incremental)
;;
;; (define-key evil-normal-state-map (kbd "C-c -") 'evil-numbers/dec-at-pt)
;; (define-key evil-visual-state-map (kbd "C-c -") 'evil-numbers/dec-at-pt)
+;; (define-key evil-normal-state-map (kbd "C-c C--")
'evil-numbers/dec-at-pt-incremental)
+;; (define-key evil-visual-state-map (kbd "C-c C--")
'evil-numbers/dec-at-pt-incremental)
;; Usage:
;; Go and play with your numbers!
@@ -107,7 +114,10 @@ INCREMENTAL causes the first number to be increased by
1*amount, the second by
PADDED is whether numbers should be padded (e.g. 10 -> 09). nil is default
behaviour set by `evil-numbers/pad-default', t is the opposite of
-`evil-numbers/pad-default','(t) enables padding and '(nil) disables padding.
+`evil-numbers/pad-default', '(t) enables padding and '(nil) disables padding.
+Numbers with a leading zero are always padded. Signs are preserved when padding
+is enabled, i.e. increasing a negative number to a positive will result in a
+number with a + sign.
"
:motion nil
- [nongnu] elpa/evil-numbers a6cf01fd90 090/145: Fix #21 increment w/ selection ignores items before the cursor, (continued)
- [nongnu] elpa/evil-numbers a6cf01fd90 090/145: Fix #21 increment w/ selection ignores items before the cursor, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 11fc45c760 086/145: Cleanup: move subscript encode/decode into utility functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers bea0c102af 088/145: Cleanup: use term amount for both decimal/(hex/bin/octal) functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers f33d0137ac 072/145: Cleanup: quiet package-lint warnings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 48b528baec 131/145: Refactor: instead of passing an amount, pass in a function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers fd742943fd 127/145: README.org use definition lists for options, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers cd23a7b458 136/145: README.org: update poor wording, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 9841266544 113/145: Cleanup: replace catch/throw with a 'found' variable, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 9cf802c29d 119/145: Fix #24 hexadecimal values case when incrementing/decrementing, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 6ea1c8c3a9 036/145: Use list for contributers., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers a2ce896e05 049/145: Update documentation,
ELPA Syncer <=
- [nongnu] elpa/evil-numbers ac4101f0e4 052/145: Explicitly require evil., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 4fd2d402fe 050/145: Add CHANGELOG, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 8b59acf267 059/145: fix: handle hyphen-separated numbers correctly, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers e0f4ba3d13 004/145: Fix number search., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 221ceb6177 001/145: Initial commit., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 7e7e2e42f3 005/145: Remove "support" for negative non-decimal literals., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 4466368c6d 008/145: Adjust error messages., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers db0c5adc68 029/145: Add documentation the increment of region., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers d37c9812a1 024/145: Remove superflous but malicious check., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 649c01ee4a 028/145: deactivate-mark when operating on region, ELPA Syncer, 2022/01/06