[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master afa592d 18/78: Rewrite the tng documentation a bit
From: |
Dmitry Gutov |
Subject: |
[elpa] master afa592d 18/78: Rewrite the tng documentation a bit |
Date: |
Sun, 18 Feb 2018 07:40:14 -0500 (EST) |
branch: master
commit afa592dea8b35dfd127137c15ccc4a4be044486a
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Rewrite the tng documentation a bit
#706
---
NEWS.md | 10 +++++-----
company-tng.el | 34 ++++++++++++++++++----------------
2 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/NEWS.md b/NEWS.md
index ea93112..9b271e1 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,11 +2,11 @@
## Next
-* New feature `company-tng'. When added as a frontend, it allows you to insert
- the candidates as soon they are selected, eliminating the need to press RET
to
- confirm your selection. See `company-tng.el` and use
- `(company-tng-configure-default)` to give it a try.
- ([#526](https://github.com/company-mode/company-mode/issues/526))
+* New feature `company-tng`. It contains a frontend and some helper code.
+ The frontend triggers insertion of the candidate as soon as it's selected, so
+ you don't need to press RET. Add `(company-tng-configure-default)` to your
+ init script to give it a try.
+ ([#526](https://github.com/company-mode/company-mode/issues/706))
* New user option `company-tooltip-maximum-width`.
## 2017-07-15 (0.9.4)
diff --git a/company-tng.el b/company-tng.el
index 3996f31..3310141 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -1,5 +1,4 @@
-;;; company-tng.el --- company-mode frontend that inserts a candidate
-;;; into the buffer as soon as it's selected, Vim style
+;;; company-tng.el --- company-mode configuration for single-button interaction
;; Copyright (C) 2017 Free Software Foundation, Inc.
@@ -23,23 +22,24 @@
;;; Commentary:
;;
-;; company-tng (tab and go) allows you to use TAB to both select a
-;; completion candidate from the list and to insert it into the
-;; buffer.
+;; company-tng (Tab and Go) allows you to perform completion using just TAB.
+;; Pressing it will both select the next completion candidate in the list and
+;; insert it into the buffer (or make it look like it's inserted, in fact).
;;
-;; It cycles the candidates like `yank-pop' or `dabbrev-expand' or
-;; Vim: Pressing TAB selects the first item in the completion menu and
-;; inserts it in the buffer. Pressing TAB again selects the second
-;; item and replaces the inserted item with the second one. This can
-;; continue as long as the user wishes to cycle through the menu.
+;; It cycles the candidates like `yank-pop' or `dabbrev-expand' or Vim:
+;; Pressing TAB selects the first item in the completion menu and inserts it in
+;; the buffer. Pressing TAB again selects the second item and replaces the
+;; "inserted" item with the second one. This can continue as long as the user
+;; wishes to cycle through the menu. You can also press S-TAB to select the
+;; previous candidate, of course.
;;
-;; The benefits are that there is only one shortcut key to interact
-;; with and there is no need to confirm an entry.
+;; The benefits are that you only have to use one shortcut key and there is no
+;; need to confirm an entry.
;;
;; Usage:
;;
;; To apply the default configuration for company-tng call
-;; `company-tng-configure-default' from your configuration file.
+;; `company-tng-configure-default' from your init script.
;;
;; You can also configure company-tng manually:
;;
@@ -49,9 +49,11 @@
;; We recommend to bind TAB to `company-select-next', S-TAB to
;; `company-select-previous', and unbind RET and other now-unnecessary
;; keys from `company-active-map':
-;; (define-key company-active-map (kbd "TAB") 'company-select-next)
-;; (define-key company-active-map (kbd "<backtab>") 'company-select-previous)
-;; (define-key company-active-map (kbd "RET") nil)
+;;
+;; (define-key company-active-map (kbd "TAB") 'company-select-next)
+;; (define-key company-active-map (kbd "<backtab>") 'company-select-previous)
+;; (define-key company-active-map (kbd "RET") nil)
+;;
;; Note that it's not necessary to rebind keys to use this frontend,
;; you can use the arrow keys or M-n/M-p to select and insert
;; candidates. You also need to decide which keys to unbind, depending
- [elpa] master fe20376 11/78: company-tng: Function to give sensible default configuration, (continued)
- [elpa] master fe20376 11/78: company-tng: Function to give sensible default configuration, Dmitry Gutov, 2018/02/18
- [elpa] master e27f0f4 13/78: NEWS: Entry for company-tng, Dmitry Gutov, 2018/02/18
- [elpa] master 0295c8f 20/78: And more, Dmitry Gutov, 2018/02/18
- [elpa] master b07eaf9 17/78: Move the entry up, Dmitry Gutov, 2018/02/18
- [elpa] master 74d85d1 09/78: company-tng: Advice company-select-next to allow unselected state, Dmitry Gutov, 2018/02/18
- [elpa] master 4240367 08/78: company-tng: Implement visualisation and completion, Dmitry Gutov, 2018/02/18
- [elpa] master 1a9f0b8 14/78: company-tng: Kill local overlay variable after completion is done, Dmitry Gutov, 2018/02/18
- [elpa] master a528433 21/78: Fix the link text, Dmitry Gutov, 2018/02/18
- [elpa] master 66a9e65 15/78: company-tng: Use 'after-string when the prefix is empty, Dmitry Gutov, 2018/02/18
- [elpa] master 44b19b6 19/78: Tweak some more, Dmitry Gutov, 2018/02/18
- [elpa] master afa592d 18/78: Rewrite the tng documentation a bit,
Dmitry Gutov <=
- [elpa] master eaddef4 22/78: company-tng: Remove redundant call to overlay-put, Dmitry Gutov, 2018/02/18
- [elpa] master 4c1fd0e 16/78: Merge pull request #706 from nikital/company-tng, Dmitry Gutov, 2018/02/18
- [elpa] master 096991d 26/78: Merge pull request #716 from jeffersoncarpenter/master, Dmitry Gutov, 2018/02/18
- [elpa] master 3d9272d 23/78: company-tng: Fully replace default frontend list, Dmitry Gutov, 2018/02/18
- [elpa] master 99fa5a0 30/78: Refine col-row calculation in the presence of line numbering, Dmitry Gutov, 2018/02/18
- [elpa] master 8dea612 39/78: Merge pull request #740 from Havner/master, Dmitry Gutov, 2018/02/18
- [elpa] master a4e14ed 40/78: Add some Commentary, Dmitry Gutov, 2018/02/18
- [elpa] master a574418 46/78: Fix last change, Dmitry Gutov, 2018/02/18
- [elpa] master 4a34571 25/78: Place cursor at correct location for completions, Dmitry Gutov, 2018/02/18
- [elpa] master 78cbc69 32/78: Test in Emacs 25, too, Dmitry Gutov, 2018/02/18