-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Dialogue to show all keyboard shortcuts #5849
Dialogue to show all keyboard shortcuts #5849
Conversation
Syncing fork to repo
…resources) Tooltip Text from Resources.resw Files
…resources)-1 Tooltip Text for New Tab Split Button
Made the dialogue in TerminalPage.xaml. The labels will be in the resw file but not the actual keybinding since I believe that it's the same worldwide.
Wait, why are there commits unrelated to this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks like a great start.
I'd say the big thing that's missing here is that the dialog only displays a few of the default keybindings. Users could have set any key combination to any number of actions, including disabling these default keybindings. I'd think that the next step in this functionality would be enumerating all of those keybindings that are bound at runtime, and actually filling ShortcutsDialog
with those bindings at runtime
New misspellings found, please review:
To accept these changes, run the following commands
✏️ Contributor please read this
See the
|
@zadjii-msft Might I ask why you believe user defined keybindings? I'd look at it like a quick way to show default keybindings, to "learn and discover" what one can do. If one wants to see all keybindings it is always possible to open the settings.json file. |
@zadjii-msft, thus I was asking how to get data from json file to xaml. |
New misspellings found, please review:
To accept these changes, run the following commands
✏️ Contributor please read this
See the
|
Co-authored-by: Josh Soref <[email protected]>
So, I have here a binding that can possibly work. Problem is, I don't know what to put next in the if statement, as I need it to display text. Any help will be appreciated.
|
Another thing, how do I get it so that it can be displayed in |
Well, right now, I just can't get it to display based on settings, but what do you say we implement the default keybindings for now and we can work on getting it to change based on the settings.json file later on? |
If there're profile-specific keybindings supported in future, this dialog should also take some decisions about how to react/display to this specificity |
So is there a way to get the keybinding/profile into string then add it to XAML? |
@Chips1234 sorry for the delay - I'm assuming #6487 answered your question? |
Yes, but how do you get it inside the dialog? As in, how do you get the code into XAML? |
Oh so you can just construct the UI element at runtime. Take for example, the context menu on a tab - that's built at runtime in terminal/src/cascadia/TerminalApp/AppLogic.cpp Lines 340 to 382 in 6d2fc5d
|
Right now this PR displays to me as:
that seems like isaacs/github#168 -- but I'm confused because afaict this PR still exists. Does someone happen to know why it says |
@jsoref That's bizarre, I've never seen anything like that before. |
@zadjii-msft: I don't suppose you can find someone via the internal directory who could shine some light on this? |
Huh, I don't think I've ever actually mailed anyone from Github yet. Kinda forgot that they're under the MSFT umbrella 😅 Cold-emailing random @github.com emails doesn't really seem like it would work to find an appropriate engineer. Maybe @DHowett knows someone? |
Yes, unfortunately my fork is all messed up and U needed to delete my old one. Sorry, but I have to close this now. |
This is very much because the originating fork was deleted. |
Interesting. I'm surprised that the link presumes that the repository is this one even though it more or less knows it isn't. |
Summary of the Pull Request
Adds a dialogue that shows all keyboard shortcuts. If I'm missing anything, feel free to share!
References
Connected to #4695.
PR Checklist
Detailed Description of the Pull Request / Additional comments
A new dialogue launched by clicking on a new tab menu item.