Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Floating input #721

Merged
merged 3 commits into from
Oct 15, 2024
Merged

[Feature] Floating input #721

merged 3 commits into from
Oct 15, 2024

Conversation

b0o
Copy link
Collaborator

@b0o b0o commented Oct 14, 2024

Open a floating input similar to the "edit" input for the "ask" input. Enabled in config via Config.windows.ask.floating or by passing { floating = true } to the api.ask method.

Includes logic to ensure the sidebar uses the correct buffer and selection if an existing sidebar is open for another code buffer.

Also refactored the selection module to extract the floating input logic into a new PromptInput class.

Not sure about the config options, happy to rename/move them.

Partially addresses #717 by defaulting to start in insert mode for floating input.

b0o added 2 commits October 14, 2024 05:43
Open a floating input similar to the "edit" input for the "ask" input.
Enabled in config via `Config.windows.ask.floating` or by passing
`{ floating = true }` to the `api.ask` method.

Includes logic to ensure the sidebar uses the correct buffer and selection
if an existing sidebar is open for another code buffer.

Also refactored the `selection` module to extract the floating input
logic into a new `PromptInput` class.
@b0o b0o marked this pull request as ready for review October 14, 2024 13:04
README.md Outdated Show resolved Hide resolved
@yetone yetone merged commit 964715b into yetone:main Oct 15, 2024
5 checks passed
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