Skip to content

Shortcut Guide V2#40834

Open
noraa-junker wants to merge 166 commits intomainfrom
feature/shortcutguidev2
Open

Shortcut Guide V2#40834
noraa-junker wants to merge 166 commits intomainfrom
feature/shortcutguidev2

Conversation

@noraa-junker
Copy link
Copy Markdown
Collaborator

@noraa-junker noraa-junker commented Jul 27, 2025

Summary of the Pull Request

PR Checklist

Detailed Description of the Pull Request / Additional comments

Work for future PRs:

  • Localization of built-in shortcut files
  • Further customization (we can wait on user feedback for that)
  • Reimplement holding windows key
  • Search bar
Images
Recording.2025-10-27.211717.mp4
image image image image

Validation Steps Performed

Comment thread src/modules/ShortcutGuide/ShortcutGuide/tasklist_positions.cpp Outdated
Comment thread src/modules/ShortcutGuide/ShortcutGuide/tasklist_positions.cpp Outdated
Comment thread src/modules/ShortcutGuide/ShortcutGuide/tasklist_positions.cpp Outdated
Comment thread src/modules/ShortcutGuideV2/ShortcutGuide.Ui/Models/ShortcutPageParameters.cs Outdated
Comment thread src/modules/ShortcutGuideV2/ShortcutGuide.Ui/Models/ShortcutPageParameters.cs Outdated
Comment thread src/modules/ShortcutGuideV2/ShortcutGuide.Ui/Strings/en-us/Resources.resw Outdated
Comment thread src/modules/ShortcutGuideV2/ShortcutGuide.Ui/Strings/en-us/Resources.resw Outdated
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread src/modules/ShortcutGuide/ShortcutGuide.Ui/Program.cs Fixed
@github-actions

This comment has been minimized.

@noraa-junker
Copy link
Copy Markdown
Collaborator Author

@copilot Add a dropdown menu to the Settings with which you can select if the Shortcut Guide window should appear on the left or the right side of the screen. Implement this dropdown and change the positioning logic of the Shortcut Guide window.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 20, 2026

@copilot Add a dropdown menu to the Settings with which you can select if the Shortcut Guide window should appear on the left or the right side of the screen. Implement this dropdown and change the po...

Done in commit 43b37bc7. Here's what was added:

  • ShortcutGuideProperties: New window_position setting (default: "left")
  • ShortcutGuideViewModel: New PositionIndex property (0 = Left, 1 = Right)
  • ShortcutGuidePage.xaml: New "Window position" SettingsCard with Left/Right ComboBox in the Appearance & behavior group
  • MainWindow.xaml.cs: SetWindowPosition() now checks the setting — Left places the window at monitorRect.X, Right places it at the opposite edge (monitorRect.X + monitorRect.Width − windowWidth)

The setting takes effect the next time Shortcut Guide is launched (same as the Theme setting).

@noraa-junker
Copy link
Copy Markdown
Collaborator Author

@copilot Fix the spelling check by adding these words into the exclusion file

Unrecognized words (10)

Datasheet
gridlines
msaccess
mspub
powerpnt
Scrollback
ungroup
visio
winproj
winword

<controls:PageLink x:Uid="LearnMore_ShortcutGuide" Link="https://aka.ms/PowerToysOverview_ShortcutGuide" />
</controls:SettingsPageControl.PrimaryLinks>
<controls:SettingsPageControl.SecondaryLinks>
<controls:PageLink Link="https://noraajunker.ch" Text="Noraa Junker's work on Shortcut Guide V2" />
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Needs to be locced

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These aren't loced for any module.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 20, 2026

@copilot Fix the spelling check by adding these words into the exclusion file

Unrecognized words (10)
...

Done in commit 0a20b7ef. All 10 words have been added to .github/actions/spell-check/expect.txt:

Datasheet, gridlines, msaccess, mspub, powerpnt, Scrollback, ungroup, visio, winproj, winword

Comment on lines -41 to -52
<tkcontrols:SettingsCard
Name="ShortcutGuidePressTimeForGlobalWindowsShortcuts"
x:Uid="ShortcutGuide_PressTimeForGlobalWindowsShortcuts"
HeaderIcon="{ui:FontIcon Glyph=&#xE916;}"
Visibility="{x:Bind ViewModel.UseLegacyPressWinKeyBehavior, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="100"
Minimum="100"
SmallChange="50"
SpinButtonPlacementMode="Compact"
Value="{x:Bind ViewModel.PressTime, Mode=TwoWay}" />
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are we losing the "hold the Windows key for Shortcut Guide to open"?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes. I tried implementing it, but it would require a whole different application logic, so I would like to postpone this to later.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@noraa-junker
Copy link
Copy Markdown
Collaborator Author

@copilot Fix expect.txt, remove all duplicate words and sort the file alphabetically. The entries are case-sensitive, so AAA is not the same as aaa

@github-actions

This comment has been minimized.

@noraa-junker
Copy link
Copy Markdown
Collaborator Author

@copilot Fix expect.txt, remove all duplicate words and sort the file alphabetically. The entries are case-sensitive, so AAA is not the same as aaa

…le sort (#47112)

## Summary of the Pull Request

This updates the spell-check allowlist at
`.github/actions/spell-check/expect.txt` to remove duplicate entries and
enforce a single alphabetical ordering. Matching remains case-sensitive
(e.g., `AAA` and `aaa` are treated as distinct entries).

## PR Checklist

- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [ ] **Tests:** Added/updated and all pass
- [ ] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

## Detailed Description of the Pull Request / Additional comments

- **Scope**
  - Updated only `.github/actions/spell-check/expect.txt`.

- **Changes**
  - Removed exact duplicate words.
  - Reordered file into strict alphabetical order.
  - Preserved case-sensitive distinctions.

- **Example**
  ```bash
LC_ALL=C sort -u .github/actions/spell-check/expect.txt -o
.github/actions/spell-check/expect.txt
  ```

## Validation Steps Performed

N/A (no behavioral/code-path changes; list normalization only).

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: noraa-junker <58633848+noraa-junker@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

❌ Errors Count
❌ forbidden-pattern 1

See ❌ Event descriptions for more information.

These words are not needed and should be removed bck diu DSVG IPREVIEW ITHUMBNAIL kdc LPCFHOOKPROC LUMA MAXDWORD MRT newcolor oldcolor outsourced pinboard rectp scanled suntimes timespan traies udit VSync workerw

Forbidden patterns 🙅 (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

Should be ; otherwise or . Otherwise

https://study.com/learn/lesson/otherwise-in-a-sentence.html

, [Oo]therwise\b
If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product-Shortcut Guide Refers to the Shortcut Guide PowerToy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants