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

feat(fzf-lua): add an input indicator after prompt #145

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

ofseed
Copy link
Contributor

@ofseed ofseed commented Mar 3, 2024

Context

fzf_lua shows its prompt and user input in the same line and dressing.nvim tries to make prompts like the title of a window, so it causes the prompt and input to be crowded together.

image

Description

I suggest adding a separator after the prompt.

image

@github-actions github-actions bot requested a review from stevearc March 3, 2024 13:23
@@ -5,6 +5,9 @@ M.is_supported = function()
end

M.select = function(config, items, opts, on_choice)
if opts.prompt then
opts.prompt = opts.prompt .. "> "
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default prompt has a : at the end, and I would expect that to be a common pattern. What do you think about just adding the space and not the >?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's up to you but I recommend (feel free to edit on this branch), in any fzf prompt, the separator is always '>' and never :, including standalone fzf, and the same is true for all fzf-lua's built-in search commands.

@stevearc
Copy link
Owner

Thanks for the PR!

@stevearc stevearc merged commit 18e5beb into stevearc:master Mar 13, 2024
8 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