mirror of
https://github.com/j1g5awi/krunner-vscode.git
synced 2024-11-24 01:49:28 +00:00
fix: only search name
This commit is contained in:
parent
123344a875
commit
3d95df51d3
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import sqlite3
|
||||
from pathlib import Path
|
||||
from typing import NamedTuple
|
||||
|
||||
import dbus.service
|
||||
|
@ -61,14 +61,14 @@ class Runner(dbus.service.Object):
|
|||
return [
|
||||
Match(
|
||||
path,
|
||||
pathlib.Path(path).name,
|
||||
Path(path).name,
|
||||
"com.visualstudio.code.oss",
|
||||
100,
|
||||
1.0,
|
||||
{"subtext": path},
|
||||
)
|
||||
for path in get_path_list()
|
||||
if query.lower() in path.lower()
|
||||
if query.lower() in Path(path).name.lower()
|
||||
]
|
||||
|
||||
@dbus.service.method(iface, out_signature="a(sss)")
|
||||
|
|
Loading…
Reference in a new issue