Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Search

Full-text search, match highlighting and selecting results. Decisions: D-41.

  • Finds notes by text
    • Shared: NotesCoreTest.searchResultsCarryWhereTheTermsMatch
    • Android UI: HistorySearchTrashUiTest.searchFindsNotesByText
    • iOS UI: HistorySearchTrashUITests.SearchFindsNotesByText
  • No matches says so
    • Android UI: HistorySearchTrashUiTest.searchWithoutMatchesSaysSo
    • iOS UI: HistorySearchTrashUITests.SearchWithoutMatchesSaysSo
    • Not tested: Shared
  • Matches visible text, not Markdown syntax
    • Shared: NotesCoreTest.searchMatchesVisibleTextNotSyntax
    • Not tested: Android UI, iOS UI
  • Trashed notes aren’t found
    • Shared: NotesCoreTest.moveDeleteUndelete
    • Not tested: Android UI, iOS UI
  • Every occurrence is found, ignoring case
    • Shared: SearchIndexTest.findsEveryOccurrenceIgnoringCase
    • Not tested: Android UI, iOS UI
  • Each term of the query is matched
    • Shared: SearchIndexTest.findsEachTermOfTheQuery
    • Not tested: Android UI, iOS UI
  • Overlapping and touching matches merge
    • Shared: SearchIndexTest.mergesOverlappingAndTouchingMatches
    • Not tested: Android UI, iOS UI
  • Punctuation matches literally
    • Shared: SearchIndexTest.matchesPunctuationLiterally
    • Not tested: Android UI, iOS UI
  • Match offsets index the original text even when lower-casing changes length
    • Shared: SearchIndexTest.offsetsIndexTheOriginalTextEvenWhereLowerCasingChangesLength
    • Not tested: Android UI, iOS UI
  • An empty query matches nothing
    • Shared: SearchIndexTest.nothingMatchesAnEmptyQuery
    • Not tested: Android UI, iOS UI
  • Selected results move together
    • Android UI: HistorySearchTrashUiTest.selectedSearchResultsMoveTogether
    • iOS UI: HistorySearchTrashUITests.SelectedSearchResultsMoveTogether
    • Not tested: Shared
  • Selected results go to the trash together
    • Android UI: HistorySearchTrashUiTest.selectedSearchResultsGoToTheTrashTogether
    • iOS UI: HistorySearchTrashUITests.SelectedSearchResultsGoToTheTrashTogether
    • Not tested: Shared

The note lookup (inside a note) is in links-and-navigation.md.

Gaps

  • Select all in search results, and undo after moving results, are untested.
  • Results updating after a note is edited or deleted while search is open are untested.
  • Non-Latin text (accents, Cyrillic, CJK) in queries is untested beyond the lower-casing offset case.