25 Commits

Author SHA1 Message Date
Mike Griese
ae6b7ac68c add it back to the toolkit
Some checks failed
Spell checking / Check Spelling (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled
Spell checking / Report (Push) (push) Has been cancelled
Spell checking / Report (PR) (push) Has been cancelled
2025-08-20 06:57:56 -05:00
Mike Griese
a7bd521b46 add it back to the toolkit 2025-08-20 06:55:22 -05:00
Mike Griese
2fee0aef2a ValueSet it is 2025-08-20 06:35:54 -05:00
Mike Griese
c3c1afaa4f Fine. Whatever. 2025-08-19 16:08:55 -05:00
Mike Griese
419341f850 Revert "what the hell is going on here"
This reverts commit 29e13df9cb307f04d80d339aed4244feeadaa4d0.
2025-08-19 16:04:58 -05:00
Mike Griese
29e13df9cb what the hell is going on here 2025-08-19 11:00:19 -05:00
Mike Griese
13b7ff1315 Revert "a property definitely works, wtf"
This reverts commit 9e20d014aa032abf0b016d58ce097e1e295d0a37.
2025-08-19 09:12:36 -05:00
Mike Griese
9e20d014aa a property definitely works, wtf 2025-08-19 09:07:04 -05:00
Mike Griese
e7dd3acf51 Reapply "more updates"
This reverts commit a78ce3843a3fddbaed5aa343809ff9322f8aa9b6.
2025-08-13 08:42:48 -05:00
Mike Griese
a78ce3843a Revert "more updates"
This reverts commit b1432c7f5495a73c5df9e864aa052b2a0cc31160.
2025-08-13 08:42:11 -05:00
Mike Griese
b1432c7f54 more updates 2025-08-13 08:41:51 -05:00
Mike Griese
c5db9d2bd6 rename; use IDictionary instead of IPropertySet 2025-08-11 06:34:15 -05:00
Mike Griese
9ecd374574 spel 2025-08-08 06:50:12 -05:00
Mike Griese
940e71f2a8 stupid levels returning to nominal values 2025-08-08 05:57:58 -05:00
Mike Griese
36f85218e1 :shipit: 2025-08-07 17:06:55 -05:00
Mike Griese
73bc438042 I keep thinking it can't get any stupider and they keep bringing me back 2025-08-07 15:27:38 -05:00
Mike Griese
88111e2fbd Revert "not this"
This reverts commit 7eaa70192021a3aad9e80f3b404eca957cad72bd.
2025-08-07 14:19:11 -05:00
Mike Griese
7eaa701920 not this 2025-08-07 14:19:06 -05:00
Mike Griese
95cfdbb93d oh god oh god what have i done 2025-08-07 10:51:14 -05:00
Mike Griese
2990aad9fd this didn't work and no one knows why 2025-08-06 06:08:01 -05:00
Michael Jolley
6642c805b7
Context menu cleanup (#40584)
Some checks failed
Spell checking / Check Spelling (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled
Spell checking / Report (Push) (push) Has been cancelled
Spell checking / Report (PR) (push) Has been cancelled
Addressing items in #40583

- [x] When navigating the context menu with the up/down keys, separators
should not be selectable.
- [x] [For context items with a super long title, we need to trim those
with an ellipsis. Ideally, we'd show a tooltip for just those
items.](https://github.com/microsoft/PowerToys/issues/40313)
- [x] [Context menu search bar text size doesn't update after changing
system text size](https://github.com/microsoft/PowerToys/issues/39648)
- [x] Weird "kick out" on first context menu item
- [x] [Primary button doesn't work if the command has more items (fix
regression)](https://github.com/microsoft/PowerToys/issues/40624)

Example of long context menu item titles with tooltips: (@niels9001,
look okay?)


https://github.com/user-attachments/assets/fc0a4034-9c22-48ee-a3f0-44fcc2f294a6

closes #40624
2025-07-16 06:25:24 -05:00
Michael Jolley
100fca4468
CmdPal: Refactoring ContextMenu adding separators, IsCritical styling, and right-click context menus for list items (#40189)
Refactored ContextMenu into it's own control to allow displaying in
CommandBar and in response to right click on list items.

- Adds "critical" styling to context menu items flagged as `IsCritical`.
This will use the theme to style with correct color.
- Added `SeparatorContextItem` and modified `MoreCommands` to allow for
both `CommandContextItem`s and `SeparatorContextItem`s.
- Right clicking a list item with a context menu will open the context
menu at the position of the click and position the filter box at the top
of the context menu.


![image](https://github.com/user-attachments/assets/3bef6b04-28bb-4a17-b731-d9ed20c0566f)


![image](https://github.com/user-attachments/assets/37ed497c-6d98-4f04-8114-d9952127ca2e)


This PR covers:

- closes #38308
- closes #39211
- closes #38307
- closes #38261
2025-07-09 14:53:47 -05:00
Mike Griese
f63fcfd91c
Add support for filterable, nested context menus (#38776)
Some checks are pending
Spell checking / Check Spelling (push) Waiting to run
Spell checking / Report (Push) (push) Blocked by required conditions
Spell checking / Report (PR) (push) Blocked by required conditions
Spell checking / Update PR (push) Waiting to run
_targets #38573_

At first I just wanted to add support for nested context menus.

But then I also had to add a search box, so the focus wouldn't get weird.

End result:

![nested-menus-001](https://github.com/user-attachments/assets/4e8f1ec8-4b09-4095-9b81-caf7abde8aea)

This gets rid of the need to have the search box and the command bar both track item keybindings - now it's just in the command bar.

Closes #38299
Closes #38442
2025-04-24 13:32:07 -05:00
Mike Griese
05218e8af6
Add the list item requested shortcuts back (#38573)
Some checks are pending
Spell checking / Check Spelling (push) Waiting to run
Spell checking / Report (Push) (push) Blocked by required conditions
Spell checking / Report (PR) (push) Blocked by required conditions
Spell checking / Update PR (push) Waiting to run
* [x] Re-adds the context menu shortcut text
* [x] Hooks up the keybindings to the search box so that you can just press the keys while you have an item selected, and do a context command
* [x] Hook these keybindings up to the context flyout itself
* [x] Adds a sample for testing

Solves #38271
2025-04-17 06:13:11 -05:00
Mike Griese
2b5181b4c9
Rename the [Ee]xts dir to ext (#38852)
Some checks are pending
Spell checking / Check Spelling (push) Waiting to run
Spell checking / Report (Push) (push) Blocked by required conditions
Spell checking / Report (PR) (push) Blocked by required conditions
Spell checking / Update PR (push) Waiting to run
**WARNING:** This PR will probably blow up all in-flight PRs

at some point in the early days of CmdPal, two of us created seperate
`Exts` and `exts` dirs. Depending on what the casing was on the branch
that you checked one of those out from, it'd get stuck like that on your
PC forever.

Windows didn't care, so we never noticed.

But GitHub does care, and now browsing the source on GitHub is basically
impossible.

Closes #38081
2025-04-15 06:07:22 -05:00