Closed mrbeardad closed 4 months ago
Is this issue related to the behavior: when calling require("flash").jump()
through the key (default to s
), flash mode will automatically exit when there is no match? (I find the behavior annoying since it makes flash.nvim never tolerate my typo mistake 🥲)
me too
i find it, maybe can close the issue
vim.api.nvim_create_autocmd("CmdlineEnter", {
pattern = "*",
callback = function()
require("flash").toggle(false)
end,
})
vim.api.nvim_create_autocmd("CmdlineLeave", {
pattern = "*",
callback = function()
require("flash").toggle(true)
end,
})
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0-dev-9af03bc
Operating system/version
Microsoft Windows 11 Home 10.0.22621 N/A Build 22621
Describe the bug
In regular search mode, I want to input the pattern
'\w*'
. However, when there is no'\
in buffer, flash exit directly.Steps To Reproduce
:lua require('flash').jump{search={mode='search'}}
'\w*'
'\
Expected Behavior
Do not exit flash automatically in search mode.
Repro
No response