Commit fef7b8d5 authored by Lev Lamberov's avatar Lev Lamberov

Merge tag 'upstream/0.1.2'

Upstream version 0.1.2
parents a38e3b02 19ee72eb
# Zzz to Char
[![License GPL 3](https://img.shields.io/badge/license-GPL_3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.txt)
[![MELPA](http://melpa.org/packages/zzz-to-char-badge.svg)](http://melpa.org/#/zzz-to-char)
[![MELPA](https://melpa.org/packages/zzz-to-char-badge.svg)](https://melpa.org/#/zzz-to-char)
[![Build Status](https://travis-ci.org/mrkkrp/zzz-to-char.svg?branch=master)](https://travis-ci.org/mrkkrp/zzz-to-char)
This package provides two new commands: `zzz-to-char` and `zzz-up-to-char`
......@@ -9,11 +9,9 @@ which work like built-ins `zap-to-char` and `zap-up-to-char`, but allow you
quickly select exact character you want to “zzz” to.
The commands are minimalistic and often work like built-in ones when there
is only one occurrence of target character (except they automatically work
in backward direction too). You can also specify how many characters to scan
from each side of point, see `zzz-to-char-reach`.
This package uses avy as backend.
is only one occurrence of the target character (except they automatically
work in backward direction too). You can also specify how many characters to
scan from each side of point, see `zzz-to-char-reach`.
## Installation
......@@ -34,6 +32,6 @@ latter doesn't include target char into killed text):
## License
Copyright © 2015–2016 Mark Karpov
Copyright © 2015–2017 Mark Karpov
Distributed under GNU GPL, version 3.
;;; zzz-to-char.el --- Fancy version of `zap-to-char' command -*- lexical-binding: t; -*-
;;
;; Copyright © 2015–2016 Mark Karpov <markkarpov@openmailbox.org>
;; Copyright © 2015–2017 Mark Karpov <markkarpov92@gmail.com>
;;
;; Author: Mark Karpov <markkarpov@openmailbox.org>
;; Author: Mark Karpov <markkarpov92@gmail.com>
;; URL: https://github.com/mrkkrp/zzz-to-char
;; Version: 0.1.1
;; Version: 0.1.2
;; Package-Requires: ((emacs "24.4") (cl-lib "0.5")(avy "0.3.0"))
;; Keywords: convenience
;;
......@@ -34,8 +34,6 @@
;; there is only one occurrence of target character (except they
;; automatically work in backward direction too). You can also specify how
;; many characters to scan from each side of point, see `zzz-to-char-reach'.
;;
;; This package uses avy as backend.
;;; Code:
......@@ -55,12 +53,12 @@
:type 'integer)
(defun zzz-to-char--base (char n-shift)
"Kill text between the pont and character CHAR.
"Kill text between the point and character CHAR.
Boundary of text to kill that doesn't coincide with point
position can be shifted with help of N-SHIFT argument.
This is internal function, see also `zzz-to-char' and
This is an internal function, see also `zzz-to-char' and
`zzz-up-to-char'."
(let ((p (point))
(avy-all-windows nil))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment