Skip to content

Commit 2530156

Browse files
committed
#2868 notetree: search all folders in tree mode
1 parent ecd11c6 commit 2530156

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

CHANGELOG.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@
1515
the Note tab now shows sortable "Note", "Folder", and "Modified" columns,
1616
sorted by modification date descending by default, to make similarly named
1717
notes easier to distinguish (for [#3482](https://github.com/pbek/QOwnNotes/issues/3482))
18-
- In note tree mode, searching in the note list now hides folders that don't
19-
match and don't contain matching notes in their subtree, while keeping
20-
parent folders visible for matching note names or note content, and
21-
expanding visible folders so matching results are uncollapsed
22-
(for [#2868](https://github.com/pbek/QOwnNotes/issues/2868))
23-
- Fixed note tree mode not refreshing the note/folder tree after selecting a
24-
folder cleared the search text, so hidden items are now shown again
25-
(for [#2868](https://github.com/pbek/QOwnNotes/issues/2868))
18+
- Added more improvements to the note list search and filtering in note tree mode
19+
for [#790](https://github.com/pbek/QOwnNotes/issues/790))
20+
- In note tree mode, searching in the note list now hides folders that don't
21+
match and don't contain matching notes in their subtree, while keeping
22+
parent folders visible for matching note names or note content, and
23+
expanding visible folders so matching results are uncollapsed
24+
(for [#2868](https://github.com/pbek/QOwnNotes/issues/2868))
25+
- In note tree mode, note and folder search now always searches across all
26+
folders instead of only the currently selected folder
27+
(for [#2868](https://github.com/pbek/QOwnNotes/issues/2868))
28+
- Fixed note tree mode not refreshing the note/folder tree after selecting a
29+
folder cleared the search text, so hidden items are now shown again
30+
(for [#2868](https://github.com/pbek/QOwnNotes/issues/2868))
2631

2732
## 26.3.3
2833

src/mainwindow.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6002,9 +6002,10 @@ void MainWindow::filterNotesBySearchLineEditText(bool searchInNote) {
60026002
doSearchInNote(searchText);
60036003
}
60046004

6005-
QVector<int> noteIdList = Note::searchInNotes(
6006-
searchText, _showNotesFromAllNoteSubFolders ||
6007-
NoteSubFolder::isNoteSubfoldersPanelShowNotesRecursively());
6005+
const bool searchAllFolders = NoteFolder::isCurrentNoteTreeEnabled() ||
6006+
_showNotesFromAllNoteSubFolders ||
6007+
NoteSubFolder::isNoteSubfoldersPanelShowNotesRecursively();
6008+
QVector<int> noteIdList = Note::searchInNotes(searchText, searchAllFolders);
60086009

60096010
int columnWidth = ui->noteTreeWidget->columnWidth(0);
60106011
ui->noteTreeWidget->setColumnCount(2);

0 commit comments

Comments
 (0)