summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-08-25 08:43:40 +0200
committerDave Davenport <qball@gmpclient.org>2016-08-25 21:17:58 +0200
commit20e55e1e4e7a084e2e86c16e5b3f0497a14773a4 (patch)
treee3a45cbbbf93135bcafbdced2878bac0282d2fe6 /test
parenta657f81145465df1d8a75bedb1b56a0e99d541e0 (diff)
Add fuzzy matching, make a -matching option.
* -matching *method* option instead of -regex, -glob, -fuzzy. * Re-add fuzzy matching pattern. * When there are substrings in regex, only highlight those matches. Fixes: #447
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_glob_test.sh2
-rwxr-xr-xtest/run_regex_test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/run_glob_test.sh b/test/run_glob_test.sh
index 800b6222..52a5595a 100755
--- a/test/run_glob_test.sh
+++ b/test/run_glob_test.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-echo -en "nooty\naap\nnoot\nmies" | rofi -glob -dmenu > output.txt &
+echo -en "nooty\naap\nnoot\nmies" | rofi -matching glob -dmenu > output.txt &
RPID=$!
# send enter.
diff --git a/test/run_regex_test.sh b/test/run_regex_test.sh
index 454a9686..55c18e13 100755
--- a/test/run_regex_test.sh
+++ b/test/run_regex_test.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-echo -en "nooty\naap\nnoot\nmies" | rofi -regex -dmenu > output.txt &
+echo -en "nooty\naap\nnoot\nmies" | rofi -matching regex -dmenu > output.txt &
RPID=$!
# send enter.