cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DeeTronSEAM
Kudo Collector
Kudo Collector

What is this right-click menu in expression builder? I.e. How do you use the Command Palette?

I just discovered that if I'm in the expression builder (aka formula builder, function builder, formula editor, etc.) and I right mouse click I get an unusual context menu that shows the following options:

 

  • Change All Occurrences
  • Cut
  • Copy
  • Paste
  • Command Palette

 

Does anybody know how to use the "Change All Occurrences" or "Command Palette" options?

I'm not even sure this is coming in from Power Automate or the Web browser (though it is obviously not the normal Chrome context menu shown for normal textboxes).

 

I'm hoping somebody knows more, and deep in my heart I'm nurturing a wish that the Command Palette is a terminal mode for Flow/Logic App expressions where you can quickly run/evaluate expressions without having to go use a stand-alone expression testing flow.

 

Anyone?

 

 

DeeTronSEAM_0-1652287886758.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rhiassuring
Resident Rockstar
Resident Rockstar

It appears to be an Azure Cloud Shell thing.

https://docs.microsoft.com/en-us/azure/cloud-shell/using-cloud-shell-editor

For the Command Palette, if you type in "Help", it pulls back the same info. 

I also sent through an "add cursor above", and it did indeed do that. I also highlighted a word, hit F1, and typed "cat" and it did go and highlight the other occurrence of "Cat" in my expression. 

Go here, press F1, and it gives a full list of commands.

https://microsoft.github.io/monaco-editor/index.html

 

 

For the Change All Occurrences, if you highlight one word and then right click and select that, it'll automatically highlight the others for  you so you can change them all at the same time. 

 

 

Rhiassuring_1-1652296664626.png

 

Three cursors at the same time!

 

 

R

View solution in original post

2 REPLIES 2
Rhiassuring
Resident Rockstar
Resident Rockstar

It appears to be an Azure Cloud Shell thing.

https://docs.microsoft.com/en-us/azure/cloud-shell/using-cloud-shell-editor

For the Command Palette, if you type in "Help", it pulls back the same info. 

I also sent through an "add cursor above", and it did indeed do that. I also highlighted a word, hit F1, and typed "cat" and it did go and highlight the other occurrence of "Cat" in my expression. 

Go here, press F1, and it gives a full list of commands.

https://microsoft.github.io/monaco-editor/index.html

 

 

For the Change All Occurrences, if you highlight one word and then right click and select that, it'll automatically highlight the others for  you so you can change them all at the same time. 

 

 

Rhiassuring_1-1652296664626.png

 

Three cursors at the same time!

 

 

R

DeeTronSEAM
Kudo Collector
Kudo Collector

@Rhiassuring you ROCK!  I didn't expect anybody to even surface this silly (off-topic) question, let alone answer it so quick and so well.

 

I'm glad I asked.  The multi-cursor editing from the Change All Occurrences option could be handy.  Normally I keep VS Code open as I build my flows and use its robust search/replace and text editing features, but for quick little changes (e.g. when I changed the name of a variable and have an expression with multiple references to it), this could be faster.  Thanks!

 

(edited to add the following...)

 

So I went to https://microsoft.github.io/monaco-editor/playground.html hit F1 and tried playing with the Monaco playground's command palette.  Then I tried to use some of the commands in the Flow Editor Builder (in its Command Palette), and yep, some of them worked (e.g. Add Cursors to Line Ends, Copy Line Down, Copy Line Up).  The F2 (shortcut for Change All Occurrences command) seems to be the most useful of the bunch....mainly as the commands' shortcuts don't seem to work in the Flow Editor Builder....and it's faster to copy/past->fix->copy/paste using VSCode than type the command phrases.  Nonetheless, pretty cool "bubbled-up feature" to "find."

DeeTronSEAM_0-1652314434221.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,114)