# Feature request

**URL:** <https://mworks.discourse.group/t/feature-request/99>\
**Category:** Support\
**Created:** [May 14, 2021, 1:39pm UTC](https://mworks.discourse.group/t/feature-request/99 "2021-05-14T13:39:51Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [May 14, 2021, 1:39pm UTC](https://mworks.discourse.group/t/feature-request/99/1 "2021-05-14T13:39:51Z")

</div>

Hi Chris,

Small feature requests:

Right now I can’t select stimulus groups with the keyboard in the Variables window. I expect to be able to use the down arrow to select a group/heading and then press the right arrow to expand and left arrow to close.

It would be nice to add descriptions or doc strings to variables and have those display in the variables window too.  
How about MWEL like this?  
var complicatedVariable = 0 (desc=‘set this to 1 for very complicated behavior’)

Any thoughts?

Also I just noticed that the ‘persistent’ spelling of the variable attribute doesn’t seem to induce persistence. Is that expected?

thanks,  
Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [May 14, 2021, 1:59pm UTC](https://mworks.discourse.group/t/feature-request/99/2 "2021-05-14T13:59:05Z")

</div>

Hi Mark,

> Right now I can’t select stimulus groups with the keyboard in the Variables window. I expect to be able to use the down arrow to select a group/heading and then press the right arrow to expand and left arrow to close.

OK, I will try to make that possible.

> It would be nice to add descriptions or doc strings to variables and have those display in the variables window too.

That’s a good idea. Maybe it could work using [tooltips](https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/help/), i.e. you hover the cursor over the variable name, and the description appears in a box.

> Also I just noticed that the ‘persistent’ spelling of the variable attribute doesn’t seem to induce persistence. Is that expected?

Yes, that is an [ongoing embarrassment](https://mworks.tenderapp.com/discussions/problems/511). I swear I’ll fix it eventually!

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [May 14, 2021, 2:53pm UTC](https://mworks.discourse.group/t/feature-request/99/3 "2021-05-14T14:53:40Z")

</div>

Sounds great on the keyboard shortcuts and the tooltip idea.

I had a distincy memory that both spellings used to work at some point, but obviously that was wrong. But I don’t mind spelling it with an “a” now that I know.

Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [May 14, 2021, 6:56pm UTC](https://mworks.discourse.group/t/feature-request/99/4 "2021-05-14T18:56:31Z")

</div>

Hi Chris,

To give you a flavor of the kind of docs I plan to have for our variables, see attached. Some are fairly long. Tooltips are still fine with me as long as they accomodate this.

Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [May 14, 2021, 6:56pm UTC](https://mworks.discourse.group/t/feature-request/99/5 "2021-05-14T18:56:31Z")

</div>

Attachment: [PastedGraphic-3.png](https://mworks.discourse.group/uploads/short-url/9mwg2eO3OGUkbNJzKx3ZNbjIuim.png) (1.16 MB)

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 16, 2021, 7:54pm UTC](https://mworks.discourse.group/t/feature-request/99/6 "2021-07-16T19:54:41Z")

</div>

Hi Mark,

> Right now I can’t select stimulus groups with the keyboard in the Variables window. I expect to be able to use the down arrow to select a group/heading and then press the right arrow to expand and left arrow to close.

I’ve modified the variables window to work as you expect. The change will be in Monday’s nightly build.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 14, 2021, 3:07pm UTC](https://mworks.discourse.group/t/feature-request/99/7 "2021-10-14T15:07:55Z")

</div>

Paul asked me about the below feature so I’m cc’ing him into this discussion:

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 6:58pm UTC](https://mworks.discourse.group/t/feature-request/99/8 "2022-07-19T18:58:07Z")

</div>

Closed on July 19, 2022, 6:58pm UTC



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 31, 2022, 2:27pm UTC](https://mworks.discourse.group/t/feature-request/99/10 "2022-10-31T14:27:28Z")

</div>

Opened on October 31, 2022, 2:27pm UTC



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 31, 2022, 2:44pm UTC](https://mworks.discourse.group/t/feature-request/99/11 "2022-10-31T14:44:09Z")

</div>

@histed As of the current nightly build, variable descriptions are now supported. They work just as we discussed. In your experiment file:

```auto
var my_var = 2 (desc = 'This is the description for my_var')

```

Then, in MWClient’s variables window, if you hover over the name “my\_var”, a tooltip will pop up with the provided description. (Here’s [another example](https://raw.githubusercontent.com/mworks/mworks/master/examples/Tests/Variable/Description.mwel).)

Both [regular](https://mworks.github.io/documentation/latest/components/variable.html) and [selection](https://mworks.github.io/documentation/latest/components/selection_variable.html) variables can have descriptions. The full name of the parameter is [description](https://mworks.github.io/documentation/latest/components/variable.html#id2), but “desc” is accepted as an alias.

Also, I added some general machinery to support parameter aliases, which means you’re now free to spell [persistent](https://mworks.github.io/documentation/latest/components/variable.html#persistent) correctly. “persistant” (ugh) is still accepted as an alias. I also added another alias, “saved”, which seems more intuitive and is probably what the parameter should have been named in the first place.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![histed](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@histed](https://mworks.discourse.group/u/histed)\
**Post date:** [November 2, 2022, 4:44am UTC](https://mworks.discourse.group/t/feature-request/99/12 "2022-11-02T04:44:40Z")

</div>

Very cool all around, aliases and descriptions- thank you!!  
Mark

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 28, 2022, 2:40pm UTC](https://mworks.discourse.group/t/feature-request/99/13 "2022-11-28T14:40:59Z")

</div>

Closed on November 28, 2022, 2:40pm UTC



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 13, 2023, 6:13pm UTC](https://mworks.discourse.group/t/feature-request/99/14 "2023-10-13T18:13:20Z")

</div>

Opened on October 13, 2023, 6:13pm UTC



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 13, 2023, 6:24pm UTC](https://mworks.discourse.group/t/feature-request/99/15 "2023-10-13T18:24:53Z")

</div>

Hi Mark,

> We just tried this, and we are not getting a tooltip to pop up.

The [example](https://raw.githubusercontent.com/mworks/mworks/master/examples/Tests/Variable/Description.mwel) I referenced still works for me, same as before. Note that the variables window needs to be the active window (i.e. the three dots/buttons in the upper left should be red, yellow, and green, not all gray), and you have to hover over the name of the variable (not its value). If those conditions apply, and you still don’t see a tooltip after a second or two, can you send me the experiment you’re running?

> Also, Chris, what do you think about adding a third “description” column in the variables window?

We could do that, although I think tooltips are less intrusive (and also don’t require the window to be any wider).

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 19, 2023, 1:48pm UTC](https://mworks.discourse.group/t/feature-request/99/16 "2023-10-19T13:48:07Z")

</div>

Nina:

> Fantastic thank you for the clarification! I think it just was slow to pop up - it takes about 3 seconds of hovering.

Great! Thanks for letting me know.

Mark:

> I’d vote for adding a documentation column to the window, maybe one that is normally mostly hidden, so the window doesn’t have to be any wider. but I guess I could be convinced it’s not needed.

I think it’d be fine to add a hidden-by-default third column. I’ll put it [on my to-do list](https://github.com/mworks/mworks-issues/issues/450).

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![histed](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@histed](https://mworks.discourse.group/u/histed)\
**Post date:** [October 19, 2023, 2:09pm UTC](https://mworks.discourse.group/t/feature-request/99/17 "2023-10-19T14:09:10Z")

</div>

Agree! Thanks

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 30, 2023, 1:01pm UTC](https://mworks.discourse.group/t/feature-request/99/18 "2023-10-30T13:01:05Z")

</div>

Closed on October 30, 2023, 1:01pm UTC


