Skip to content

feat: add gnome style type to search #1164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

IldySilva
Copy link
Contributor

@IldySilva IldySilva commented Feb 21, 2025

Closes #1142

@Feichtmeier
Copy link
Member

@IldySilva thanks for your PR!

For some reason this PR sometimes vanished then came back, did you do some magic? 😄 🪄

you need to resolve the conflicts then we can get it in!

@Feichtmeier Feichtmeier changed the title add gnome style type to search feat: add gnome style type to search Apr 6, 2025
@IldySilva
Copy link
Contributor Author

abracadrabra @Feichtmeier 😄 🪄

github flagged my account for about 2 Months,so my profile and contributions just vanished
i'm fixing the conflitcts

@Feichtmeier
Copy link
Member

abracadrabra @Feichtmeier 😄 🪄

github flagged my account for about 2 Months,so my profile and contributions just vanished
i'm fixing the conflitcts

Wow how did this happen?

@IldySilva
Copy link
Contributor Author

they flagged my account as spammy after notice some suspect activity (was just me deleting an old repo)

@IldySilva
Copy link
Contributor Author

@Feichtmeier pls review

@Feichtmeier
Copy link
Member

@IldySilva sorry I'll review it soon

One thing I already noticed was the wild focus node somewhere in a model. A focusnode only belongs in the widget tree
Full review coming in the next days
Thanks again for taking the time to contribute

@@ -308,4 +309,10 @@ class LibraryModel extends SafeChangeNotifier implements NavigatorObserver {
final GlobalKey<NavigatorState> _masterNavigatorKey =
GlobalKey<NavigatorState>();
GlobalKey<NavigatorState> get masterNavigatorKey => _masterNavigatorKey;

AudioType getCurrentAudioType() => switch (selectedPageId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sadly doesnt always work, as starred stations and subbed podcasts also are put into the sidebar and can be selected :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but you could add a function which uses something like isPageInLibrary like checking playlists, podcasts, starredStations, pinnedAlbums and the main page ids

@@ -58,6 +61,37 @@ class _DesktopHomePageState extends State<DesktopHomePage> {
});
}

void _onTypeHandler(KeyEvent event) {
if (!AppConfig.isGtkApp || event.logicalKey == LogicalKeyboardKey.control) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please also check for mac os (CMD) and windows (control)

Copy link
Member

@Feichtmeier Feichtmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left change requests in line, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat:add GNOME-style search-by-Typing
2 participants