]> git.eshelyaron.com Git - completion-preview.git/log
completion-preview.git
10 months agoImprove handling of slow completion tables and exit functions master
Eshel Yaron [Sat, 4 Nov 2023 19:51:57 +0000 (20:51 +0100)]
Improve handling of slow completion tables and exit functions

10 months agoImprove handling of input during completion
Eshel Yaron [Sat, 4 Nov 2023 16:35:02 +0000 (17:35 +0100)]
Improve handling of input during completion

10 months agoFix handling of non-zero completion base value
Eshel Yaron [Thu, 2 Nov 2023 21:56:02 +0000 (22:56 +0100)]
Fix handling of non-zero completion base value

10 months ago* (completion-preview-mode): Simplify mode line lighter
Eshel Yaron [Thu, 2 Nov 2023 12:47:34 +0000 (13:47 +0100)]
* (completion-preview-mode): Simplify mode line lighter

10 months agoOnly keep the ':exit-function' completion property
Eshel Yaron [Wed, 1 Nov 2023 21:47:02 +0000 (22:47 +0100)]
Only keep the ':exit-function' completion property

Avoid passing on properties such as ':predicate', whose value may be a
function that assume a certain structure of completion candidate,
which may no longer hold.

* completion-preview.el (completion-preview-show): Only keep the
':exit-function' property.

10 months agoUse a trivial completion table instead of a bespoke function
Eshel Yaron [Wed, 1 Nov 2023 21:32:36 +0000 (22:32 +0100)]
Use a trivial completion table instead of a bespoke function

Completion at point functions are encouraged to return well formed
completion table with metadata instead of a completion function.

* completion-preview.el (completion-preview-show): Simplify.
(completion-preview-insert-function):
(completion-preview--insert) Remove.
(completion-preview-insert): New function.
(completion-preview-active-mode): Adapt.

10 months agoRemove 'completion-preview-default-predicate'
Eshel Yaron [Wed, 1 Nov 2023 21:30:26 +0000 (22:30 +0100)]
Remove 'completion-preview-default-predicate'

This variable lacks a clear use case.

* completion-preview.el (completion-preview-default-predicate): Remove.
(completion-preview-show): Adapt.

10 months agoDo not 'Package-Require' Compat
Eshel Yaron [Wed, 1 Nov 2023 11:41:39 +0000 (12:41 +0100)]
Do not 'Package-Require' Compat

10 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.

10 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

10 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.

10 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

10 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'

10 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

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

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

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

10 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'

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