branch: elpa/helm
commit 1e104474e7e8397de5131f1298aa1f588136c124
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Allow entering multi match in HFF without the need to prefix BN
with a space. Space can be entered later in BN to kickin multi match.
---
helm-files.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/helm-files.el b/helm-files.el
index 0a28bb6025..7e2084e1c4 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -3637,10 +3637,10 @@ If PATTERN is a valid directory name, return PATTERN
unchanged."
;; FIXME: some multi-match methods may not work here.
(dir-p (concat (regexp-quote bd) " " (regexp-quote bn)))
((or (not (helm-ff-fuzzy-matching-p))
- (string-match "\\s-" bn)) ; Fall back to multi-match.
- (concat (regexp-quote bd) bn))
+ (string-match "[ !]" bn)) ; Fall back to multi-match.
+ (concat (regexp-quote bd) " " bn))
((or (string-match "[*][.]?.*" bn) ; Allow entering wildcard.
- (string-match "/$" pattern) ; Allow mkdir.
+ (string-match "/\\'" pattern) ; Allow mkdir.
(string-match helm-ff-url-regexp pattern)
(and (string= helm-ff-default-directory "/") tramp-p))
;; Don't treat wildcards ("*") as regexp char.