[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-nerd-commenter 1848bc36a1 077/235: comment to the lin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-nerd-commenter 1848bc36a1 077/235: comment to the line is optimized v1.4.0 |
Date: |
Thu, 6 Jan 2022 02:59:36 -0500 (EST) |
branch: elpa/evil-nerd-commenter
commit 1848bc36a13cfeaf2444f8c96064ed3ef613d493
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
comment to the line is optimized v1.4.0
---
README.org | 2 +-
evil-nerd-commenter-pkg.el | 2 +-
evil-nerd-commenter.el | 24 ++++++++++++++++--------
pkg.sh | 2 +-
4 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/README.org b/README.org
index c48db53d40..e0169b34d0 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* evil-nerd-commenter (v1.3.1)
+* evil-nerd-commenter (v1.4.0)
*This program could be used independently WITHOUT evil-mode!*
diff --git a/evil-nerd-commenter-pkg.el b/evil-nerd-commenter-pkg.el
index a02c5b18dd..d3f9881ab6 100644
--- a/evil-nerd-commenter-pkg.el
+++ b/evil-nerd-commenter-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-nerd-commenter" "1.3.1"
+(define-package "evil-nerd-commenter" "1.4.0"
"Comment/uncomment lines efficiently. Like Nerd Commenter in
Vim")
diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index a4339dbf91..c9a97bab34 100644
--- a/evil-nerd-commenter.el
+++ b/evil-nerd-commenter.el
@@ -4,7 +4,7 @@
;; Author: Chen Bin <chenbin.sh@gmail.com>
;; URL: http://github.com/redguardtoo/evil-nerd-commenter
-;; Version: 1.3.1
+;; Version: 1.4.0
;; Keywords: commenter vim line evil
;;
;; This file is not part of GNU Emacs.
@@ -29,14 +29,20 @@
;;; Commentary:
;;
;; This program emulates nerd-commenter.vim by Marty Grenfell.
+;;
;; It help you comment/uncomment multiple lines without selecting them.
;;
;; `M-x evilnc-default-hotkeys` assigns hotkey `M-;` to
`evilnc-comment-or-uncomment-lines`
+;;
;; `M-x evilnc-comment-or-uncomment-lines` comment or uncomment lines.
-;; `M-x evilnc-comment-or-uncomment-to-the-line` will comment/uncomment from
current line to
-;; the specified line number. The line number is passed as parameter of the
command.
-;; For example, `C-u 99 evilnc-comment-or-uncomment-to-the-line` will comment
code from
-;; current line to line 99.
+;;
+;; `M-x evilnc-quick-comment-or-uncomment-to-the-line` will comment/uncomment
from current line to
+;; the specified line number. The last digit(s) of line number is parameter of
the command.
+;;
+;; For example, `C-u 9 evilnc-quick-comment-or-uncomment-to-the-line` will
comment code from
+;; current line to line 99 if you current line is 91.
+;;
+;; Check README for more use cases.
;;
;; Though this program could be used *independently*, I highly recommend you
use it with
;; evil (http://gitorious.org/evil)
@@ -47,7 +53,7 @@
;;; Code:
-;; Example, presss ",,a{" will change C code:
+;; Example, press ",,a{" will change C code:
;; {printf("hello");} => /* {printf("hello");}*/
;; google "vim text object for more syntax"
(defcustom evilnc-hotkey-comment-operator ",," "The hot key for
evilnc-comment-operator to (un)comment text object"
@@ -319,7 +325,9 @@ Paragraphs are separated by empty lines."
;;;###autoload
(defun evilnc-quick-comment-or-uncomment-to-the-line (&optional UNITS)
- "Comment or uncomment to line number with its units is UNITS."
+ "Comment or uncomment to line number by specifying its last digit(s)
+For exmaple, you can use 'C-u 53 M-x
evilnc-quick-comment-or-uncomment-to-the-line'
+or 'C-u 3 M-x evilnc-quick-comment-or-uncomment-to-the-line' to comment to the
line 6453"
(interactive "p")
(let ((dst-line-num (evilnc--find-dst-line-num UNITS)))
(evilnc-comment-or-uncomment-to-the-line dst-line-num)
@@ -439,7 +447,7 @@ Paragraphs are separated by empty lines."
(eval-after-load 'evil
'(progn
(define-key evil-normal-state-map ",ci"
'evilnc-comment-or-uncomment-lines)
- (define-key evil-normal-state-map ",cl"
'evilnc-comment-or-uncomment-to-the-line)
+ (define-key evil-normal-state-map ",cl"
'evilnc-quick-comment-or-uncomment-to-the-line)
(define-key evil-normal-state-map ",ll"
'evilnc-quick-comment-or-uncomment-to-the-line)
(define-key evil-normal-state-map ",cc" 'evilnc-copy-and-comment-lines)
(define-key evil-normal-state-map ",cp"
'evilnc-comment-or-uncomment-paragraphs)
diff --git a/pkg.sh b/pkg.sh
index bd055d3113..68e3783578 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-pkg=evil-nerd-commenter-1.3.1
+pkg=evil-nerd-commenter-1.4.0
mkdir $pkg
cp README.org $pkg
cp *.el $pkg
- [nongnu] elpa/evil-nerd-commenter 906f01ee55 009/235: make my email not too public and updated README, (continued)
- [nongnu] elpa/evil-nerd-commenter 906f01ee55 009/235: make my email not too public and updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 43034e5604 010/235: upgraded to version 0.0.3, now you can toggle flag to comment empty lines, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter e94cbcd747 011/235: Fixed typos in README.org, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 78569a4c0b 015/235: work around a bug in evil-visual-line, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter f3f0922b0b 020/235: fixed broken 0.0.6, upgraded to 0.0.7, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 0a33fee751 026/235: (un)comment paragraph, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 3c3fb92e67 029/235: minor typo in README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 2491e83868 030/235: hotkey to comment region, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter f8de9b168d 058/235: clean code a bit, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter ccb31ba534 061/235: finalize doc v1.2.7, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 1848bc36a1 077/235: comment to the line is optimized v1.4.0,
ELPA Syncer <=
- [nongnu] elpa/evil-nerd-commenter 487e1cdf2b 098/235: fixed: upgrade from melpa may fail v1.5.6, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 7c75a0e782 050/235: fixed: initialize error when set up hotkeys, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter b48da5411b 111/235: README updated, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 789a180160 100/235: FIXED: revert work on with-eval-after-load v1.5.8, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 7a1647cf6d 114/235: donot use comma as default hotkey, v 1.5.14, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 770981cffd 130/235: can comment/uncomment mixed code in web-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 8e126cda3d 133/235: workaround haml-mode comment issue, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter a0c21304e6 136/235: support react jsx, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter e1de1d759b 137/235: clean code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-nerd-commenter 2c62dfcb80 139/235: updated documentation, ELPA Syncer, 2022/01/06