mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[PR #713] [MERGED] Add initial global search setup #860
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#860
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/713
Author: @Komediruzecki
Created: 12/4/2020
Status: ✅ Merged
Merged: 12/22/2020
Merged by: @Rokt33r
Base:
master← Head:feature/improve-global-search📝 Commits (10+)
ee9fb64Add initial global search setup14e0924Fix initial focus preview out of focus if selection is below preview1f19c89Refactor SearchModal14209c7Improve style of search modal2809ab1Implement preview control24e68f3Adjust layout style833a6a3Style search modal note result item component2370c1bFix first line search bugf2310f2Discard comments in lib/search7efd4b3Apply overflow to container to trim coners of preview📊 Changes
18 files changed (+924 additions, -85 deletions)
View changed files
📝
src/components/PreferencesModal/styled.tsx(+21 -5)📝
src/components/molecules/SearchModalNoteResultItem.tsx(+243 -25)📝
src/components/organisms/NoteDetail.tsx(+13 -4)📝
src/components/organisms/NoteStorageNavigator.tsx(+4 -6)📝
src/components/organisms/SearchModal.tsx(+369 -37)📝
src/components/pages/NotePage.tsx(+22 -1)📝
src/components/pages/WikiNotePage.tsx(+33 -2)➕
src/lib/colors.ts(+40 -0)📝
src/lib/keyboard.ts(+11 -0)➕
src/lib/search/search.ts(+91 -0)📝
src/lib/storageRouter.ts(+16 -3)📝
src/lib/string.ts(+8 -0)📝
src/lib/styled/BaseTheme.ts(+8 -0)📝
src/themes/dark.ts(+9 -0)📝
src/themes/legacy.ts(+9 -1)📝
src/themes/light.ts(+9 -1)📝
src/themes/sepia.ts(+9 -0)📝
src/themes/solarizedDark.ts(+9 -0)📄 Description
Add tag colors setup (#219, #629, #681, #570):
General functionality:
Currently searches throught the content only (with some restrictions).
Setup for title/tags is commented out and can be added (title/tags highlighted etc) easily
When user clicks on any found item inside one note, that item is focused in preview (as seen in images below)
When user double clicks on an item in found items list of note, focused navigation takes place (navigates to note and focus the selected line in editor), the search dialog is closed
Currently the binding is still CTRL+P for searching globally, but we could easily replace this with CTRL+SHIFT+F for global and CTRL+F for local search (already set).
Restrictions:
First 10k lines of each note searched
Todo:
Few search examples:
Popup on hover when line is too long so it won't show the whole line

Test:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.