Author Topic: v20 Tab Order Problem  (Read 2965 times)

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
v20 Tab Order Problem
« on: November 11, 2015, 03:19:24 PM »
I've noticed that even though I told the file tabs to sort alphabetically, it seems to ignore the extensions when sorting and leaves them in non-sorted order:


Is there any way to make the .h files always go to the right of the .c files?

SlickEdit Pro 2015 (v20.0.0.12 32-bit)

Build Date: November 03, 2015
Emulation: CUA
OS: Windows 7 x64

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: v20 Tab Order Problem
« Reply #1 on: November 11, 2015, 04:09:01 PM »
Sort must be sorting on name without extensions. Not sure if this can be changed. We will look into this.

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: v20 Tab Order Problem
« Reply #2 on: November 11, 2015, 05:45:49 PM »
I've been playing around with the tabs and it looks like the only times when the sort order is actually used is when you select a different sort order and when you open SE. In fact, you can mess up not only the order, but the mechanism that collapses the names and just shows the extension:


Good luck figuring which files go together!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: v20 Tab Order Problem
« Reply #3 on: November 12, 2015, 01:17:47 PM »
So far no luck reproducing this. In my tests, the files were always sorted in order with the .cpp file to the left of the .h.

Please give me really specific steps on how to reproduce this starting with a default config. There must be a trick to this.

Thanks

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: v20 Tab Order Problem
« Reply #4 on: November 13, 2015, 05:26:36 PM »
Here's what I did:
  • Opened SE with a brand new configuration
  • Opened a project
  • Checked to make sure that alphabetical sort is turned on
  • Clicked and dragged tabs around to make them non-alphabetical
  • Here is what I see:
I can't get it to handle the "collapsed to extension" tabs incorrectly, but it seems like any time the tabs are changed the sort ought to run to correct it.

If I can get the tab collapsing to screw up again, I'll try to figure out what I did and let you know.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: v20 Tab Order Problem
« Reply #5 on: November 13, 2015, 06:06:28 PM »
I thought SlickEdit was sorting them wrong but you're manually rearranging them to be wrong. Maybe we should disable manual rearrangement when sorting is on. The results will be strange at best.

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: v20 Tab Order Problem
« Reply #6 on: November 13, 2015, 06:51:24 PM »
Yes, to get them in the wrong order I dragged them. After playing around with them for a while I tried closing and opening some files and now those are in the wrong order. To clarify, I did not drag these, I just opened them and they showed up in this order.


Maybe this was caused by dragging the tabs around previously. I have no idea; that's not something I normally do. I only started doing it when I noticed the tab order was messed up yesterday.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: v20 Tab Order Problem
« Reply #7 on: November 13, 2015, 06:56:28 PM »
When a new file is added we can't resort because the performance would be aweful. Instead we do a sorted add. Hope that makes sense.

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: v20 Tab Order Problem
« Reply #8 on: November 13, 2015, 07:37:13 PM »
I assume you mean you are inserting the new item into the list based on how it falls in the sort rather than resort all the tabs. So, if the order is already messed up, opening a new file won't fix the order and the position of the new file will be right with respect to at least one other file.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: v20 Tab Order Problem
« Reply #9 on: November 13, 2015, 07:38:45 PM »
Yes, that's how it works.

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: v20 Tab Order Problem
« Reply #10 on: December 10, 2015, 05:36:09 PM »
It's been a while since I originally started this thread, and I don't usually pay a lot of attention to the tab order. I very rarely drag tabs from one pane to another. I know I didn't in this case.  Here is what my tabs look like right now:


They are set to alphabetical sort. I just created the file Notes.txt. Even if the sort works the way Clark says it does, I can't see how Notes.txt would end up at the beginning.

I really think there is something more going on here. Could you guys please take a look into how and when the tabs get sorted/inserted?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: v20 Tab Order Problem
« Reply #11 on: December 10, 2015, 07:32:08 PM »
If you close Notes.txt and open it again, does it go to the correct position?

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: v20 Tab Order Problem
« Reply #12 on: December 11, 2015, 01:00:58 PM »
Yes,