Skip to content
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

Add a key set command for opening a file #3315

Merged
merged 3 commits into from Aug 31, 2021
Merged

Conversation

elliette
Copy link
Member

Adds CTRL + P / CMD + P as a key set, which will be used to open the file opener dialog.

Also pulls the key sets definitions out into their own file within the debugger directory.

@elliette elliette linked an issue Aug 30, 2021 that may be closed by this pull request
@elliette elliette marked this pull request as ready for review August 30, 2021 22:09
HostPlatform.instance.isMacOS
? LogicalKeyboardKey.meta
: LogicalKeyboardKey.control,
LogicalKeyboardKey.keyP,
Copy link
Member

Choose a reason for hiding this comment

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

this is the same as focusLibraryFilterKeySet above. Maybe use 'o' for this one for now? At least until @bkonyi's changes land and we have ripped out the filter in the libraries window. Then we can decide whether we want to have this hot key be cmd + p or cmd + o long term. I expect both the open file feature and Ben's changes will be done for the Oct release.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh good catch! Switched to cmd + o

Copy link
Contributor

Choose a reason for hiding this comment

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

CTRL-P is definitely preferable since most editors use that as a shortcut for file searching. Will it help if I upload a small PR to remove the filter box? It shouldn't be very difficult to do.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, if that's not too much trouble that would be great! Thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

commented on Ben's PR, but will add a note here too - we shouldn't land #3319 until after the release goes out tomorrow. We don't want to remove the filtering functionality before we replace it with the open file dialog feature.

@elliette elliette merged commit 16d6069 into flutter:master Aug 31, 2021
@elliette elliette deleted the file-search branch December 24, 2021 00:24
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.

Improve debugger file search UX
3 participants