]> git.eshelyaron.com Git - completion-preview.git/log
completion-preview.git
13 months agoUse a dedicated capf instead of rebinding 'C-M-i'
Eshel Yaron [Wed, 1 Nov 2023 11:35:36 +0000 (12:35 +0100)]
Use a dedicated capf instead of rebinding 'C-M-i'

Instead of rebinding 'C-M-i' to a command that inserts the suggested
completion, we make 'completion-at-point' do the right thing when the
preview is active by temporarily adding a prioritized capf.

Thanks to João Távora for suggesting this approach.

* completion-preview.el (completion-preview-active-mode-map): Remove.
(completion-preview--insert):
(completion-preview-insert-function): New functions.
(completion-preview-active-mode): Adjust.

13 months ago* completion-preview.el (completion-preview-predicate): Rename
Eshel Yaron [Wed, 1 Nov 2023 11:33:22 +0000 (12:33 +0100)]
* completion-preview.el (completion-preview-predicate): Rename

13 months agoUse a dedicated keymap for when the preview active
Eshel Yaron [Tue, 31 Oct 2023 18:15:41 +0000 (19:15 +0100)]
Use a dedicated keymap for when the preview active

* completion-preview.el (completion-preview-hide): New function.
(completion-preview-active-mode-map): New keymap.
(completion-preview-active-mode): New minor mode.
(completion-preview--post-command)
(completion-preview-mode)
(completion-preview-show): Adjust.
(completion-preview-insert-or-complete): Remove.
(completion-preview-insert): New command.

13 months agoHandle non-zero completion base offset
Eshel Yaron [Sun, 29 Oct 2023 12:07:46 +0000 (13:07 +0100)]
Handle non-zero completion base offset

13 months agoCompatibility definition for 'minibuffer--sort-by-length-alpha'
Eshel Yaron [Sun, 29 Oct 2023 11:21:17 +0000 (12:21 +0100)]
Compatibility definition for 'minibuffer--sort-by-length-alpha'

13 months ago* (completion-preview-hook): Fix typo in docstring
Eshel Yaron [Sun, 29 Oct 2023 11:20:50 +0000 (12:20 +0100)]
* (completion-preview-hook): Fix typo in docstring

13 months agoExpand Elisp commentary
Eshel Yaron [Sun, 29 Oct 2023 11:20:28 +0000 (12:20 +0100)]
Expand Elisp commentary

13 months agoAdd Elisp package headers
Eshel Yaron [Sun, 29 Oct 2023 11:20:09 +0000 (12:20 +0100)]
Add Elisp package headers

13 months agoAdd COPYING file
Eshel Yaron [Sun, 29 Oct 2023 10:43:08 +0000 (11:43 +0100)]
Add COPYING file

13 months agoAdd an autoload cookie for 'completion-preview-mode'
Eshel Yaron [Sun, 29 Oct 2023 10:20:31 +0000 (11:20 +0100)]
Add an autoload cookie for 'completion-preview-mode'

13 months agoInitial commit
Eshel Yaron [Sat, 28 Oct 2023 18:27:08 +0000 (20:27 +0200)]
Initial commit