Ability to manually arrange the query tabs

Heidegger's profile image Heidegger posted 1 year ago in Feature discussion Permalink

I think there would be value in being able to let users arrange them as they choose. I thought I could "control" them by opening in a certain order, but it seems they're automatically arranged alphabetically. Hopefully that means they can be arranged arbitrarily.

ansgar's profile image ansgar posted 1 year ago Permalink

No, the query tabs cannot be rearranged currently.

Heidegger's profile image Heidegger posted 1 year ago Permalink

I am aware. I was hoping it would be considered as a new feature. It's obviously not an urgent request, but it would help to be able to arrange logically (according to task/workflow).

Is there anything to be interpreted from your use of "currently"? :)

ansgar's profile image ansgar posted 1 year ago Permalink

Indeed, "currently" means there is some room for new things and enhancements, although my spare time for HeidiSQL is getting tighter. If I recall right there is no such feature request in the tracker yet.

Technically: Delphi does not provide a native way for dragging tabs by mouse. Though the events OnMouseDown, OnDragDrop and OnDragOver might be the key to a solution here. Not sure if that works in conjunction with all the other existing events.

There is one way of applying a custom tab order:

  • ensure Tools > Preferences > Files and Tabs > "Reopen previously used SQL files" is activated
  • exit HeidiSQL
  • start a text editor and open tabs.ini, located in C:\Users\yourUsername\AppData\Roaming\HeidiSQL\
  • rearrange the ini sections as a whole to the order you like

Please login to leave a reply, or register at first.