CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Drag and drop of a tab to another window doesn't work

Open andylima opened this issue 7 years ago • 4 comments

Yes, drag and drop of a tab to another window doesn't work… It only works to make the tab become a new window.

…So (it seems) we can't have two windows with tabs. Not easily at least.

I need to have several files open at the same time… This drag & drop to another (existing) window would allow me to have say, 3 windows, with several tabs efficiently organized.

(This drag & drop to another existing window is supported in many tab-based apps.)

andylima avatar Feb 18 '18 14:02 andylima

I also believe that's a natural behavior. However, unfortunately, the Apple's tabbing window implementation, which CotEditor depends on, supplies only minimal APIs to 3rd developers; and therefore, it seems impossible at the moment. I'll look into documents and codes later again, but I'm doubting if it's possible.

The single way, I can currently suggest is to drag tabs into tab area of another window. then you can combine multiple windows into a single with tabs.

1024jp avatar Feb 21 '18 03:02 1024jp

The single way, I can currently suggest is to drag tabs into tab area of another window. then you can combine multiple windows into a single with tabs.

Oh, so the problem is no tab area in a single-document window?

Then maybe we could have the option of always showing the tab bar?… A new preference setting for this? This would solve the problem.

andylima avatar Feb 21 '18 10:02 andylima

You can make tab area always visible by setting View > "Show Tab Bar" ("Hide Tab Bar" in the screenshot) in the menu.

screen shot 2018-02-21 at 8 19 16 pm

1024jp avatar Feb 21 '18 11:02 1024jp

View > "Show Tab Bar"

Aha! And new windows get it too. Very good!

Thank you!

andylima avatar Feb 21 '18 11:02 andylima