diff --git a/CHANGELOG.md b/CHANGELOG.md index b87e4b30180caeee677a95d84a8abd4ac155aa5f..bd2898c7901fa372021a2988e4781543192edcec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Changed - Find Files now runs on text changed as well as on enter pressed + and interpretes entered text as a regex - use stc_entry_dialog instead of wxTextEntryDialog - added wex version to be used to find_package diff --git a/src/find-files.cpp b/src/find-files.cpp index 967359f3b4f711a9faeaca621e6d465e2575aa1c..a6602cea5c2c1443f88ab2a19d53afac692d3de9 100644 --- a/src/find-files.cpp +++ b/src/find-files.cpp @@ -102,7 +102,7 @@ void find_files::run(bool is_enter_key) wex::dir( m_root, wex::data::dir() - .file_spec("*" + m_value + "*") + .file_spec(m_value, true) .max_matches(wex::config(_("find.Max")).get(50)) .type(wex::data::dir::type_t() .set(wex::data::dir::FILES)