Author Topic: References pane a pain for space (V24)  (Read 2207 times)

dunkers

  • Senior Community Member
  • Posts: 693
  • Hero Points: 28
References pane a pain for space (V24)
« on: October 28, 2019, 04:26:24 pm »
Can't believe no-one's brought this up yet, but I couldn't find owt in a search.

See the attached screenshot of my references pane. There are two problems with this:

1. That mass of unused grey at the bottom - no other panes have that, and it wasn't in previous references panes.

2. The big +/- for 'Look in' doesn't remember state across runs, so it is always opened and always taking up precious space. It should either remember state or default to closed.

joecar

  • Senior Community Member
  • Posts: 260
  • Hero Points: 9
  • engineer/gearhead
Re: References pane a pain for space (V24)
« Reply #1 on: October 28, 2019, 04:45:33 pm »
The space at the bottom typically shows statistics regarding the references...

dunkers

  • Senior Community Member
  • Posts: 693
  • Hero Points: 28
Re: References pane a pain for space (V24)
« Reply #2 on: October 28, 2019, 05:15:12 pm »
Ah, never noticed that  ::) Clearly, that info isn't important to me  ;)

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2456
  • Hero Points: 137
Re: References pane a pain for space (V24)
« Reply #3 on: October 28, 2019, 06:25:21 pm »
We'll look into restoring the state of this.

Have you tried the new features this real estate brings to the table?  You can see references only where a variable was assigned.  This is very, very cool.

dunkers

  • Senior Community Member
  • Posts: 693
  • Hero Points: 28
Re: References pane a pain for space (V24)
« Reply #4 on: October 28, 2019, 06:43:54 pm »
I confess that I hadn't yet given them much thought - the references I tend to look up don't create a long list. However, I just had a play with that and it is, as you say, cool. I will find myself relying on that, I think.

But... what would be a really super-cool feature would be to show where the reference is being assigned. That is, what's using it rather than what it's using.

joecar

  • Senior Community Member
  • Posts: 260
  • Hero Points: 9
  • engineer/gearhead
Re: References pane a pain for space (V24)
« Reply #5 on: October 29, 2019, 08:35:05 pm »
If you look carefully at the symbols in the References pane, you will see assignments to the reference are marked with a left-arrow (see attached highlight in yellow)...

it follows that any unmarked references are uses of the reference...

is this what you mean...?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2456
  • Hero Points: 137
Re: References pane a pain for space (V24)
« Reply #6 on: October 29, 2019, 08:49:21 pm »
Right.  And if you selected "Assigned", or one of the other ones, it would filter that tree down to only those items, so using find-next and find-prev will only show assignments (for example).

dunkers

  • Senior Community Member
  • Posts: 693
  • Hero Points: 28
Re: References pane a pain for space (V24)
« Reply #7 on: October 30, 2019, 12:27:56 am »
Quote
it follows that any unmarked references are uses of the reference...

Yes, but not necessarily an assignment. For example, we could have:

Code: [Select]
assigned_from = reference;
reference = assigned_to;
used_on[reference];

Little arrows are cool but, as you might have surmised, easily missed. And if it's useful to just show one kind of assignment, why wouldn't it be useful to show just the others?

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2966
  • Hero Points: 440
Re: References pane a pain for space (V24)
« Reply #8 on: October 31, 2019, 03:18:33 pm »
Normally a variable is read a lot more often than it is assigned, so I felt it would be very limited value to filter *out* assignments, however, since an assignment is a modification to the variable's value, it's special, and definitely helpful to be able to limit the search to that.