UI: support searching for more recent files
When trying to find and open an older file, it is annoying when it is not in the recent files list anymore. This patch increases the length of the recent files list, without making the menu huge by making better use of menu-search. Specifically the following is changed: * Number of remembered recent files is increased from 20 to 200 by default. * The recent files menu is limited to 20 entries. * When activating menu search (by pressing space when in the menu), all available recent files can be searched. * There is a new "More..." menu entry at the bottom, which also activates the menu search. Pull Request: https://projects.blender.org/blender/blender/pulls/146884
This commit is contained in:
@@ -3422,10 +3422,15 @@ class WM_MT_splash(Menu):
|
||||
col2 = split.column()
|
||||
col2_title = col2.row()
|
||||
|
||||
found_recent = col2.template_recent_files()
|
||||
found_recent = col2.template_recent_files(rows=5)
|
||||
|
||||
if found_recent:
|
||||
col2_title.label(text="Recent Files")
|
||||
|
||||
col_more = col2.column()
|
||||
col_more.operator_context = 'INVOKE_DEFAULT'
|
||||
more_props = col_more.operator("wm.search_single_menu", text="More...", icon='VIEWZOOM')
|
||||
more_props.menu_idname = "TOPBAR_MT_file_open_recent"
|
||||
else:
|
||||
# Links if no recent files.
|
||||
col2_title.label(text="Getting Started")
|
||||
|
||||
Reference in New Issue
Block a user