Is your feature request related to a problem or area of OpenRefine? Please describe.
When entering a string or regex expression in the text filter, I'm often prevented from finishing the expression before OpenRefine attempts to update the results. This is frustrating, especially when trying to formulate complex regex.
Describe the solution you'd like
My preferred solution would be a Submit button (ideally with a keyboard shortcut) so that OpenRefine doesn't keep trying to update while I'm typing.
Describe alternatives you've considered
The only alternative I've found is to write regex expressions in a text file and copy/paste into the text filter.
Hey @0robus ..
Can you explain the problem with some pictures? I'm looking forward to solve this.
This is due to the fact that the facet updates too quickly - it should wait for a longer period of inactivity in the text field before updating the facet and reporting any error. I am not exactly sure what timeout is currently used but solving this issue might just be down to increasing that timeout.
@wetneb So is that a practice we should seek? Like should we try increasing that timeout or more..?
@coderrsid have you managed to reproduce the issue on your side? This is the first step if you want to solve this. Let me know if you need help for that. Once you have witnessed the issue yourself, you should be in a better position to find out how to solve it. You can just ask yourself: as a user, how would I want this text field to behave?
So, once that is out of the way, I can return the question to you: what would you propose?
It fires on every keyup currently
Try it by racking your fingers randomly over the keyboard and noticing in the console terminal that the /command/core/compute-facets will be invoked continuously, and not wait for your fingers to stop typing.
My opinion would be that it needs to fire AFTER a 1.5 - 2 sec delay of the last keyup. The reset of the keypress event handler via Jquery probably needs investigating
or you can just implement your own
Well, if there is no timeout right now, it should not be hard to do better…
@wetneb I would like to work on the following. I have already set up the Open Refine on my local, also I would like to complete the project Replace row pagination by infinite scrolling this summers.
Great! This issue is indeed a good start if you want to apply for the infinite scrolling project.
I'm not convinced that increasing the timeout here is the best solution. Increasing timeout to 2000ms as per #2324 makes the UI feel less responsive when the user is typing a plain text string.
I think we should:
These two changes can be tackled separately as the first is straightforward whereas the second will take more work. I hope that @kushthedude can make some changes to #2324 for (1) if we agree this is a sensible thing to do @wetneb @thadguidry
Most helpful comment
I'm not convinced that increasing the timeout here is the best solution. Increasing timeout to 2000ms as per #2324 makes the UI feel less responsive when the user is typing a plain text string.
I think we should:
These two changes can be tackled separately as the first is straightforward whereas the second will take more work. I hope that @kushthedude can make some changes to #2324 for (1) if we agree this is a sensible thing to do @wetneb @thadguidry