Skip to content

Conversation

garlic0x1
Copy link
Collaborator

@garlic0x1 garlic0x1 commented May 2, 2024

This will let people hook prompt completion when a prompt window is activated like this:

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

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

This will show completion items without needing to press <Tab>

@garlic0x1
Copy link
Collaborator Author

Added another display style for prompts that are anchored at the top of display and fill width

image

Configured with these lines in config:

(setf lem-core::*default-prompt-gravity* :top-display)
(setf lem/prompt-window::*fill-width* t)

@garlic0x1
Copy link
Collaborator Author

Added gravities for bottom prompt, it looks like this:

image

Configuration shown:

(setf lem-core::*default-prompt-gravity* :bottom-display)
(setf lem/prompt-window::*prompt-completion-window-gravity* :horizontally-above-window)
(setf lem/prompt-window::*fill-width* t)

@cxxxr cxxxr merged commit 181e01e into lem-project:main May 6, 2024
@cxxxr
Copy link
Member

cxxxr commented May 6, 2024

I think it's good!
Thank you so much!

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