Skip to content

Completion tweaks#1362

Merged
cxxxr merged 3 commits intolem-project:mainfrom
garlic0x1:completion-tweaks
May 12, 2024
Merged

Completion tweaks#1362
cxxxr merged 3 commits intolem-project:mainfrom
garlic0x1:completion-tweaks

Conversation

@garlic0x1
Copy link
Collaborator

Allow the order of completions to be reversed, this is helpful when the prompt is at the bottom of the screen so you don't have to move your eyes.

I am using this in my config so that completions are reversed in regular prompts, but normal in code completion:

(add-hook *prompt-after-activate-hook*
          (lambda ()
            (setf lem/completion-mode::*completion-reverse* t)
            (call-command 'lem/prompt-window::prompt-completion nil)))

(add-hook *prompt-deactivate-hook*
          (lambda ()
            (setf lem/completion-mode::*completion-reverse* nil)
            (lem/completion-mode:completion-end)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants