UI: show recently selected items at the top of searches #110828

Merged
Jacques Lucke merged 24 commits from JacquesLucke/blender:recent-searches into main 2023-09-25 10:56:20 +02:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit d5e9574b2d - Show all commits

View File

@ -17,6 +17,10 @@ struct SearchItem {
Span<blender::StringRef> normalized_words;
int length;
int weight;
/**
JacquesLucke marked this conversation as resolved Outdated

Worth noting what units this is in & if it can ever be negative.

Worth noting what units this is in & if it can ever be negative.
* This is a logical time stamp, i.e. the greater it is, the more recent the item was used. The
* number is not based on an actual clock.
*/
int recent_time;
};
JacquesLucke marked this conversation as resolved Outdated

the more recent -> the more recently

`the more recent` -> `the more recently`