Ability to create new event bindings within a binding. It's bindings all the way down. #2532
timacdonald
started this conversation in
Ideas
Replies: 2 comments
-
I also got close to what you describe, but can't get "live" updates without rebinding change event. #2465 (comment) with demo. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am having a similar limitation with using dynamic rebinding #2752 , maybe we can work today on this as Our first Go issue. I also have little experience with Go but Very welling to learn and help fix this issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With FZF currently, it is possible to create event bindings. You can bind to events like
change
andctrl-r
press and perform certain actions, such as (silly example) changing the prompt...This also allows for search setups such as those demonstrated here that rely on listening to
change
event to perform a "live grep" search, which is big 😍 vibes: https://github.com/junegunn/fzf/blob/master/ADVANCED.md#switching-to-fzf-only-search-modeThis is enabled by the ability to remove a event binding within an event binding, i.e. when I press
ctrl-f
remove thechange
binding. However, currently there is no way to add an event binding within a binding.Having the ability to add an event binding within a binding would allow for flows such as...
This is not yet possible because there is no way to bind to the
change
event within a key binding. I imagine the spec would look like the following...Used
@
just to signify that it is an event bindingMy current setup has me setting two different key mappings. One for regex searches and one for plain text searches. To change between to the two I need to exit and re-enter the search. The current setup also means that after I switch to the FZF filtering stage, there is no way to return and fix / adjust the initial RG based search.
I think being able to switch between all these at will would be pretty neat. I attempted to PR this, but I've not played with GO before. It someone with more experience with GO or FZF would have any interested in working on something like this together (assuming it is a feature that would be accepted), I'd be keen to help make it happen.
Beta Was this translation helpful? Give feedback.
All reactions