mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[PR #782] [MERGED] Add local search component #890
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/782
Author: @Komediruzecki
Created: 2/14/2021
Status: ✅ Merged
Merged: 5/4/2021
Merged by: @Rokt33r
Base:
master← Head:feature/improve-local-search-consistency📝 Commits (10+)
c090cf7Add local search component05c9aacUpdate for review085b8ebFix some namings and typescfe4602Update tooltips for local search and replace73cbb5cDiscard unnecessary if statementse996a6eDiscard unnecessary type defs1c45b4bRefactor code based on review0f67a6fFix replaceAll hackc3fa1e9Fix event changes comments19f0c85Update focus management for local search📊 Changes
26 files changed (+1876 additions, -107 deletions)
View changed files
📝
jest.json(+2 -1)📝
package-lock.json(+9 -9)📝
package.json(+2 -2)📝
src/components/PreferencesModal/KeymapTab.tsx(+14 -21)📝
src/components/atoms/CodeEditor.tsx(+109 -19)📝
src/components/atoms/CustomizedCodeEditor.tsx(+13 -0)📝
src/components/atoms/KeymapItemSection.tsx(+26 -35)➕
src/components/atoms/search/LocalSearchButton.tsx(+75 -0)➕
src/components/atoms/search/SearchResultItem.tsx(+6 -0)📝
src/components/molecules/SearchModalNoteResultItem.tsx(+1 -1)➕
src/components/organisms/LocalReplace.tsx(+435 -0)➕
src/components/organisms/LocalSearch.tsx(+903 -0)📝
src/components/organisms/NoteDetail.tsx(+149 -2)📝
src/components/organisms/SearchModal.tsx(+9 -8)➕
src/components/pages/NotePage.tsx(+0 -0)📝
src/lib/CodeMirror.ts(+1 -3)📝
src/lib/keymap.ts(+33 -0)📝
src/lib/preferences.ts(+20 -3)📝
src/lib/search/search.ts(+14 -3)📝
src/lib/styled/BaseTheme.ts(+3 -0)...and 6 more files
📄 Description
Add local search component (#722, #762)
Fix VIM keybinding
Fix typo in NotePage styled component (Container)
Open Points:
Let me know if styling is fine (added background colors in themes), it's pretty basic.
The functionality works even without resolving all todos/optimizations/improvements.
Few examples of how it looks:






Keymaps (here for general usage but also for review if anything needs changing)
On focused editor
CTRL+F- opens search onlyCTRL+H- opens search and replace dialogsescape- closes search dialog in non VIM keymapOn focused search dialog
down arrow,enterorF3- navigates to next itemup arrow,SHIFT+F3- navigates to previous itemCTRL+H- opens replace dialogOn focused replace dialog
CTRL+F- opens search dialog and closes replace dialogdown arrow, orF3- navigates to next itemup arrow, orSHIFT+F3- navigates to previous itementer- replaces currently focused itemOn search or replace focused dialog
escape- closes search/replace dialogCTRL+SHIFT+Enter- adds newline to search/replace input dialogButtons available are self-explanatory (replace, replace all, close button in corner, navigation buttons and options)
State of case sensitive search, regex search (preserving case in replace dialog), and search/replace queries is persistent between search dialog toggling (open/close)
Tested in
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.