Difference between revisions of "User talk:CallMeDave"
From Gramps
CallMeDave (talk | contribs) (→Please be careful with your edits: ok) |
CallMeDave (talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=New widget: interactive searchbox. Use our own interactive-search box to get it.= | =New widget: interactive searchbox. Use our own interactive-search box to get it.= | ||
Introduced in Gramps 4.2.0 (mentioned on Whats New page ) | Introduced in Gramps 4.2.0 (mentioned on Whats New page ) | ||
| Line 28: | Line 18: | ||
If nothing is typed then after 5 seconds ( 5000ms ) the box goes away ( _SEARCH_DIALOG_TIMEOUT = 5000 ) | If nothing is typed then after 5 seconds ( 5000ms ) the box goes away ( _SEARCH_DIALOG_TIMEOUT = 5000 ) | ||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 05:01, 25 August 2022
New widget: interactive searchbox. Use our own interactive-search box to get it.
Introduced in Gramps 4.2.0 (mentioned on Whats New page )
- more efficient (binary search on sorted columns).
- customizable (delayed by 150ms launch of search to avoid text scrambling)
https://gramps-project.org/wiki/index.php/Gramps_4.2_Wiki_Manual_-_What%27s_new%3F#GUI
https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Navigation#Finding_records
https://gramps.discourse.group/t/where-is-the-find-box-code/2505
https://github.com/gramps-project/gramps/blob/master/gramps/gui/widgets/interactivesearchbox.py
Press Ctrl-F to open the searchbox on any of the list or just give the list focus (select a line) and start typing
- 150ms is 0.15 seconds ( quarter of a second)
- Whats new mentions the timing is customizable ; so 1000ms is 1 second ( line 59 shows: _SEARCH_DIALOG_LAUNCH_TIMEOUT = 150 and changing that works!
If nothing is typed then after 5 seconds ( 5000ms ) the box goes away ( _SEARCH_DIALOG_TIMEOUT = 5000 )