Open Reisen opened 1 year ago
Based on this comment, an alternative approach would be to override the jump behavior as follows:
function()
local ignorecase = vim.go.ignorecase
vim.go.ignorecase = false
require('flash').something({ I'm not sure what to put here })
vim.go.ignorecase = ignorecase
end
However, I don't know where this would go in the flash config, as I do not see an option for supplying a custom function for the f/F/t/T feature.
Any tips on how to use this approach would be much appreciated since I am a bit confused about how to set this up.
@Reisen did you ever find another workaround?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This has not been addressed, so the stale label should be removed.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Still not stale.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Nope
Did you check the docs?
Is your feature request related to a problem? Please describe.
In standard vim, ignorecase/smartcase does not apply to
f
behaviour, I.E:nvim -u NONE
:Searching with
/
forqui
with ignorecase+smartcase hits the first result:Searching with
f
forq
with ignorecase+smartcase hits the second result:It's intuitive that flash respects these settings for
/
, but forf
this was a surprise compared to vanilla behaviour and breaks the utility of plugins like quickscope which now highlight the wrong symbols, so in my example here while my eyes are trained onq
, pressingq
actually takes me toQ
.So I repeatedly find myself often accidentally jumping earlier than I expected.
Describe the solution you'd like
To be able to disable case settings on a mode by mode basis:
Where a default of
inherit
might imply the current behaviour, I don't have a good idea in mind for how this option might exactly look though this is just a quick scrappy explanation of what I would like to be able to do.Alternatively, to change
f
to not rely on ignorecase/smartcase so it matches vanilla nvim behaviour:Describe alternatives you've considered
f
and stick to onlys
and/
benefits of flash.Additional context
While It's not related to the feature I'm requesting here, I was wondering what your thoughts might be on adding quickscopes functionality to flash? Quickscope is a pretty old plugin at this point as far as I can tell, and flash's
f
behaviour is very nice. Having the ability to show the first non-conflictingf
jump in each word, but being able to do it over multiple lines would be incredibly useful.