# How is ctrl z supposed to work in designer?

**URL:** <https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635>\
**Category:** Ignition\
**Created:** [December 14, 2022, 9:47pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635 "2022-12-14T21:47:09Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 14, 2022, 9:47pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/1 "2022-12-14T21:47:09Z")

</div>

I think I might be misunderstanding.

I was writing some queries and using ctrl+z to edit the query.

One of my queries I had copied vanished.

I think I had control z'd the pasting of the copy.

How do I make sure I am only undoing the typing of text in my query?  
And not unpasting copied queries?  
I know it must be simple, but it has burned my time on occasion.  
It only happens when I am trying to do a complex query, flipping through tabs to try to figure out how to do the query.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 14, 2022, 9:57pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/2 "2022-12-14T21:57:13Z")

</div>

This is basically just a bug.

The script editing component is likely applying the text from the query as one operation as soon as you select the tab (and not doing the right things in the code) - so, when you 'undo' from that initial state, the component treats that as you "undo"ing the entire insert of the query.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 15, 2022, 5:39pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/3 "2022-12-15T17:39:56Z")

</div>

What version are you using? This should be fixed in 8.1.10.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 15, 2022, 6:01pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/4 "2022-12-15T18:01:01Z")

</div>

8.1.19

Thank you for helping to clarify for me, and checking version info.

I have been backing up my queries having notepad++ copies of them open when working on them.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 15, 2022, 6:29pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/5 "2022-12-15T18:29:45Z")

</div>

Can you get a video or exact sequence of steps of what you're doing that ends up with the query being completely removed? This shouldn't be possible anymore.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 15, 2022, 7:53pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/6 "2022-12-15T19:53:34Z")

</div>

I sometimes see people post really handy videos on here.  
Is there a handy microsoft capture to make those efficiently like the screen capture tool?

* * *

I copy paste some queries.  
I work on the query.  
I click on another window on my other monitor, usually chrome.  
I go back to the designer.  
I press control z.  
I don't think it happens all the time.  
I did get a new mouse pad, and it has a wrinkle on one side.  
I think I clicked directly on the project browser window.  
It may be working as intended.

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [December 15, 2022, 8:02pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/7 "2022-12-15T20:02:49Z")

</div>

> [@zacharyw.larson](#):
>
> I sometimes see people post really handy videos on here

I think most use snagit for the video feature (and some good screen grab features), you can get a free trial..

> **[TechSmith Snagit | Screen capture and screen recorder](https://www.techsmith.com/screen-capture.html)**
>
> Screen capture and recording software for Windows and Mac. Quickly get images and videos. Start your free trial today!

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 15, 2022, 8:12pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/8 "2022-12-15T20:12:10Z")

</div>

~~Thanks, you press the finish, it saves to their site, and is stored there.  
That seems easy.~~

Is there a completely free version, and is there one from Microsoft?

* * *

Oh I found it, but it looks windows 11 has it.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 15, 2022, 8:24pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/9 "2022-12-15T20:24:08Z")

</div>

ShareX is FOSS and works on Windows 10 & 11.

> **[ShareX - The best free and open source screenshot tool for Windows](https://getsharex.com/)**
>
> ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose...

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 15, 2022, 8:30pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/10 "2022-12-15T20:30:42Z")

</div>

I wasn't sure of the difference in sharex and screenrec.  
You use sharex personally?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 15, 2022, 8:35pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/11 "2022-12-15T20:35:26Z")

</div>

I don't daily drive Windows anymore, but I used ShareX happily for the years that I did.

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [December 15, 2022, 8:40pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/12 "2022-12-15T20:40:23Z")

</div>

be aware that by default ShareX automatically uploads all screen snips you take and you'll need to go in and opt-out of that "feature"

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 29, 2022, 4:13pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/13 "2022-12-29T16:13:43Z")

</div>

@paul-griffith

I was making a named query in version 8.1.19  
I copied and pasted a copy of an existing query to my folder of queries, the main default folder.

I edited the query multiple times:  
calculate hours from seconds  
tested  
switched to calculate minutes  
tested  
added a cast to int  
tested

Then, I went to try to edit the round.  
I removed `round(` and then removed `,2)`  
I pressed testing, pressed execute, already had my parameters entered from pervious testing before.  
I did not like the results of the query test.  
I pressed Authoring to return the rounding to my query.

I do not know if I clicked in the query window of authoring, but I thought I had.  
then Ctrl+Z and my query vanished.

The paste of the query to the folder was undone instead of removing my last change in the query.

* * *

I tested again.  
If I test a query, when I click back to Authoring, unless I click inside the editing window, my previous paste of the query will be undone.  
If I click inside the authoring window, then the text editing will be undone.  
Wish it were only the last thing changed, instead of context oriented, but that is me.  
Maybe it is better with context for other people.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 29, 2022, 4:27pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/14 "2022-12-29T16:27:10Z")

</div>

> [@zacharyw.larson](#):
>
> I sometimes see people post really handy videos on here.

[ScreenToGif](https://screentogif.com) works well on Windows and is free.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [December 29, 2022, 4:33pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/15 "2022-12-29T16:33:07Z")

</div>

I plan to wait for the windows snip tool upgrade in Q3, unless it ends up only being Win11 that gets it.  
I did get permission to purchase the Snagit license, but I thought maybe I would just waste time editing gifs haha.

* * *

ScreenToGif is fishy to me.  
They are linked to a [Datamate.org](http://Datamate.org) which is associated with some cyber fishing attacks it looks like.  
I can be cyber paranoid sometimes though.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 3, 2023, 7:39am UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/16 "2023-01-03T07:39:07Z")

</div>

[Fastone Capture](https://www.faststone.org/FSCaptureDetail.htm) has been my latest weapon of choice.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [January 13, 2023, 8:30pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/17 "2023-01-13T20:30:34Z")

</div>

ctrl Z got me bad today.

I had a union of unions of group sub query pivots.....deleted the whole thing....

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [January 14, 2023, 12:36am UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/18 "2023-01-14T00:36:42Z")

</div>

If you right click on the script console, there is an option to redo.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1a3f73e62cf159f660cd05c362001d316a622499.png)

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [March 31, 2023, 7:21pm UTC](https://forum.inductiveautomation.com/t/how-is-ctrl-z-supposed-to-work-in-designer/67635/19 "2023-03-31T19:21:14Z")

</div>

Will that undo the control z removing a query I was working on?

I am getting this horrible event where I had just lost a query again.

I had it on a notepad as a backup, because it keeps happeneing.  
However, when I made the query again, this querey doesn't utilize the index anymore.

Now the query is taking 50 seconds for what I was just moments ago doing in 6 seconds.  
I am getting half a million rows.

My index is on t\_stamp, line, and code.  
Those are my first 3 selects.  
Then I calculate a lead(t\_stamp) using some cases.  
The index was working, and suddenly the index isn't being used.

It's frustrating. Not sure how to make the index work again.  
If I try to just get all the rows from the base table, only takes 21 seconds, 2.5 million rows.

Edit: Seems to randomly use or not use the index.  
Just got half a million in under 3 seconds.  
I don't get it. I changed nothing except I capitalized one 't\_stamp' to 'T\_stamp'.  
Not sure if that mattered, but when I reverted to the lowercase the fetch time didn't go back up.
