Commit 98c83562 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

quickopen: extra points for already open files

If a file is already open, there is a higher chance that a user wants to
go to that file so give extra points to such matches.
parent f780dd10
Pipeline #238163 passed with stage
in 10 minutes and 54 seconds
......@@ -96,8 +96,8 @@ protected:
if (res) {
// +1 point for opened files
score += (sm->isOpened(sourceRow));
// extra points for opened files
score += (sm->isOpened(sourceRow)) * (score / 8);
// extra points if file exists in project root
// This gives priority to the files at the root
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment