Merge pull request #103 from jordoh/search-in-directory
Include directory in "All" scope searches
This commit is contained in:
commit
a5b9b74dae
1 changed files with 2 additions and 1 deletions
|
|
@ -456,7 +456,8 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
|
||||||
switch scope {
|
switch scope {
|
||||||
case "All":
|
case "All":
|
||||||
filteredPasswordsTableEntries = passwordsTableAllEntries.filter { entry in
|
filteredPasswordsTableEntries = passwordsTableAllEntries.filter { entry in
|
||||||
return entry.title.lowercased().contains(searchText.lowercased())
|
let name = entry.passwordEntity?.nameWithCategory ?? entry.title
|
||||||
|
return name.localizedCaseInsensitiveContains(searchText)
|
||||||
}
|
}
|
||||||
if searchController.isActive && searchController.searchBar.text != "" {
|
if searchController.isActive && searchController.searchBar.text != "" {
|
||||||
reloadTableView(data: filteredPasswordsTableEntries)
|
reloadTableView(data: filteredPasswordsTableEntries)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue