[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2482223 23/31: company-tng: Document post-completion and y
From: |
Dmitry Gutov |
Subject: |
[elpa] master 2482223 23/31: company-tng: Document post-completion and yasnippet issues |
Date: |
Sun, 14 Apr 2019 22:06:19 -0400 (EDT) |
branch: master
commit 248222320ec56f0df966e22acece08239f702564
Author: Nikita Leshenko <address@hidden>
Commit: Nikita Leshenko <address@hidden>
company-tng: Document post-completion and yasnippet issues
---
company-tng.el | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/company-tng.el b/company-tng.el
index a1d7173..9b495c6 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -63,6 +63,26 @@
;;
;; We recommend to disable `company-require-match' to allow free typing at any
;; point.
+;;
+;; By default, company-tng doesn't work well with backends that use
+;; `post-completion' (for actions such as expanding snippets in
+;; company-yasnippet or company-template). In company-tng, completion
candidates
+;; are inserted into the buffer as the user selects them and the completion is
+;; finished implicitly when the user continues typing after selecting a
+;; candidate. Modifying the buffer (by expanding a snippet) when the user
+;; continues typing would be surprising and undesirable, since the candidate
was
+;; already inserted into the buffer. For this reason company-tng disables
+;; `post-completion' in all backends.
+;;
+;; YASnippet and company-tng both use TAB, which causes conflicts. The
+;; recommended way to use YASnippet with company-tng is to choose a different
+;; key for expanding a snippet and moving to the next snippet field:
+;;
+;; (define-key yas-minor-mode-map "\C-j" 'yas-expand)
+;; (define-key yas-keymap "\C-j" 'yas-next-field-or-maybe-expand)
+;; (dolist (keymap (list yas-minor-mode-map yas-keymap))
+;; (define-key keymap (kbd "TAB") nil)
+;; (define-key keymap [(tab)] nil))
;;; Code:
- [elpa] master 2b671ec 15/31: Move inhibit-redisplay higher, (continued)
- [elpa] master 2b671ec 15/31: Move inhibit-redisplay higher, Dmitry Gutov, 2019/04/14
- [elpa] master 5bd5745 24/31: Merge pull request #883 from nikital/tng-document-no-post-completion, Dmitry Gutov, 2019/04/14
- [elpa] master 03fa690 27/31: Merge pull request #886 from cburn11/update-company-clang--completetion-pattern, Dmitry Gutov, 2019/04/14
- [elpa] master 23136d3 28/31: Update copyright years, Dmitry Gutov, 2019/04/14
- [elpa] master 87509b1 19/31: company-complete: Don't change last-command if completion exited, Dmitry Gutov, 2019/04/14
- [elpa] master edbb3c5 16/31: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2019/04/14
- [elpa] master ebc4fce 17/31: Make company-idle-delay support predicate function, Dmitry Gutov, 2019/04/14
- [elpa] master 20fe015 18/31: Merge pull request #874 from amosbird/master, Dmitry Gutov, 2019/04/14
- [elpa] master f965786 20/31: company-complete: Ensure last command was really the same, Dmitry Gutov, 2019/04/14
- [elpa] master 1974d83 21/31: Make tests resilient to arbitrary text properties in completions, Dmitry Gutov, 2019/04/14
- [elpa] master 2482223 23/31: company-tng: Document post-completion and yasnippet issues,
Dmitry Gutov <=
- [elpa] master 668e4b0 22/31: Merge pull request #880 from joaotavora/fix-tests-with-arbitrary-completion-properties, Dmitry Gutov, 2019/04/14
- [elpa] master 5dab70d 26/31: update regex template to match (InBase) declarations, Dmitry Gutov, 2019/04/14
- [elpa] master 5569424 25/31: Revert "company-clang: Skip over identity preprocessor #defines", Dmitry Gutov, 2019/04/14
- [elpa] master d200fed 29/31: Update NEWS for the latest change, Dmitry Gutov, 2019/04/14
- [elpa] master 3eda0ba 30/31: Release 0.9.10, Dmitry Gutov, 2019/04/14
- [elpa] master 5deda28 31/31: Merge commit '3eda0ba23921d43b733f7975e56d490a34b9f30b' from company, Dmitry Gutov, 2019/04/14