Skip to content

Feature: Introduced Omnibar 1 #17023

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented Apr 6, 2025

Resolved / Related Issues

Steps used to test these changes

  1. Open Files app
  2. Enable Omnibar from Settings > Advanced
  3. Use it

image

@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-OmnibarIntroduction branch 4 times, most recently from f93960a to e1ee482 Compare April 10, 2025 02:54
@yaira2
Copy link
Member

yaira2 commented Apr 21, 2025

I found an issue where text entered into the address bar isn't cleared after removing the focus. The easiest way to test this is by removing the focus and then refocusing the address bar.

@0x5bfa 0x5bfa changed the title Feature: Introduced Omnibar Feature: Introduced Omnibar 1 Apr 22, 2025
@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-OmnibarIntroduction branch 2 times, most recently from 0aeb079 to e4ba94d Compare April 22, 2025 09:16
@yaira2 yaira2 force-pushed the main branch 2 times, most recently from 75d29b5 to aa7d7fa Compare April 22, 2025 22:33
@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-OmnibarIntroduction branch from 35ce79a to dc2399d Compare April 23, 2025 01:52
IconOnActive="{controls:ThemedIconMarkup Style={StaticResource App.ThemedIcons.Omnibar.Search}, IsFilled=True}"
IconOnInactive="{controls:ThemedIconMarkup Style={StaticResource App.ThemedIcons.Omnibar.Search}, IconType=Outline}"
ModeName="Search"
PlaceholderText="Enter a search query..." />
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to use a localized string?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah Ill make them string resources right before getting this ready.

ToolbarPathItemInvoked?.Invoke(this, new() { ItemPath = path });
}

public async Task HandleItemNavigationAsync(string path)
Copy link
Member

Choose a reason for hiding this comment

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

Where is all this logic taken from?

Copy link
Member Author

Choose a reason for hiding this comment

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

From here:

public async Task CheckPathInputAsync(string currentInput, string currentSelectedPath, IShellPage shellPage)

Copy link
Member

Choose a reason for hiding this comment

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

Are there any modifications?

@@ -885,6 +1030,107 @@ private static async Task<bool> LaunchApplicationFromPath(string currentInput, s
);
}

public async Task PopulateOmnibarSuggestionsForPathMode()
Copy link
Member

Choose a reason for hiding this comment

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

Where is this logic taken from?

Copy link
Member Author

Choose a reason for hiding this comment

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

From here:

public async Task SetAddressBarSuggestionsAsync(AutoSuggestBox sender, IShellPage shellpage)

Copy link
Member

Choose a reason for hiding this comment

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

Are there any modifications?

@0x5bfa 0x5bfa force-pushed the 5bfa/CQ-OmnibarIntroduction branch from 49fd456 to c93e9c0 Compare April 23, 2025 02:04
while (shellPage.BackwardStack.Last() != itemModel.PageStackEntry)
IHomeFolder homeFolder = new HomeFolder();

e.Flyout.Items.Add(new MenuFlyoutHeaderItem() { Text = "Quick access" });
Copy link
Member

Choose a reason for hiding this comment

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

Please use the localized resource.

@yaira2
Copy link
Member

yaira2 commented Apr 23, 2025

Two additional feedback items

  • Refreshing the location is incorrectly focusing the Omnibar.
  • Clicking on the current location in the Omnibar shouldn't reload the folder.

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.

2 participants