tilix icon indicating copy to clipboard operation
tilix copied to clipboard

location of new tab

Open drdv opened this issue 3 years ago • 2 comments

Suppose I have 2 tabs [T1, T2] and T1 is currently active (i.e., I am working in it). If I create a new tab T3 (using e.g., C-S-T) it is placed after T2 in the window, so I have [T1, T2, T3] (in that order). I would rather prefer for T3 to be created between T1 and T2 so that the order is [T1, T3, T2].

Of course, I could press C-S-Page Up once and T3 would move one position to the left but if I have N windows, this becomes tedious. A setting like this might already exist, but I couldn't find it ...

drdv avatar Nov 28 '22 15:11 drdv

It's a nice feature to add, I also need it.

PRIHLOP avatar Nov 19 '24 11:11 PRIHLOP

I'll consider implementing it, though PRs aren't actively merged here anymore.

Changes need to be done here, this uses gtk.Notebook and we would need to replace it nb.appendPage with nb.insertPage which accepts an index:

https://github.com/gnunn1/tilix/blob/5289686c66fea93a285eb34f3877e8271178f39f/source/gx/tilix/appwindow.d#L774-L785

A combobox could be added here: https://github.com/gnunn1/tilix/blob/5289686c66fea93a285eb34f3877e8271178f39f/source/gx/tilix/prefeditor/prefdialog.d#L1593-L1605

And a new value after "SETTINGS_NEW_INSTANCE_MODE_VALUES" shall be added in source/gx/tilix/prefeditor/prefdialog.d and source/gx/tilix/preferences.d.

On New Tab/Session:
- Add to End
- Add After Current Tab
- Add to Beginning
- Add Before Current Tab

algj avatar Nov 23 '24 11:11 algj