copilot-core
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -33,3 +33,3 @@ "use strict"; | ||
maxPatternLength: 32, | ||
minMatchCharLength: 2, | ||
minMatchCharLength: 1, | ||
keys, | ||
@@ -40,2 +40,5 @@ }; | ||
let result = fuse.search(op.strings.join(" ")); | ||
if (op.strings.length === 0) { | ||
return list; | ||
} | ||
return result.map(ret => { | ||
@@ -42,0 +45,0 @@ debug(ret); |
@@ -17,2 +17,3 @@ import { IResult } from "../types"; | ||
text: string; | ||
value: string; | ||
param: { | ||
@@ -27,2 +28,3 @@ action: string; | ||
text: string; | ||
value: string; | ||
param: { | ||
@@ -37,2 +39,3 @@ action: string; | ||
text: string; | ||
value: string; | ||
param: { | ||
@@ -47,2 +50,3 @@ action: string; | ||
text: string; | ||
value: string; | ||
param: { | ||
@@ -49,0 +53,0 @@ action: string; |
@@ -37,5 +37,5 @@ "use strict"; | ||
return ret.split("\n") | ||
.map(line => line.split(/\s/)) | ||
.map(line => line.split(/\s+/)) | ||
.map(([id, desktop, pid, machine, ...rest]) => ({ | ||
id, desktop, pid, machine, title: rest.join(" ") | ||
id, desktop, pid, title: rest.join(" ") | ||
})) | ||
@@ -55,2 +55,3 @@ .map((param) => ({ | ||
text: `Active ${item.text}`, | ||
value: `Active ${item.value}`, | ||
param: { | ||
@@ -67,2 +68,3 @@ action: "cmd", | ||
text: `Close ${item.text}`, | ||
value: `Close ${item.value}`, | ||
param: { | ||
@@ -86,2 +88,3 @@ action: "cmd", | ||
text: `Move to (${x},${y})`, | ||
value: `Move to (${x},${y})`, | ||
param: { | ||
@@ -100,2 +103,3 @@ action: "cmd", | ||
text: `Move window to workspace ${wsName}`, | ||
value: `Move window to workspace ${wsName}`, | ||
param: { | ||
@@ -102,0 +106,0 @@ action: "cmd", |
{ | ||
"name": "copilot-core", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "copilot", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
43601
1243