if I will open more "views" I must manually move tabs to those viewports - to groups
e.g. command: groups, 4 grid…, already have 4 tabs opened, I must to manually do three actions…
will be possible to add action _groups: arrange_?
_"arrange"_ will move tab 2 to group 2, tab 3 to group 3…
simple logic - take first n tabs and move it to n new created groups…
plus - will be nice to have new option: _new groups will arrange existing tabs_ - true/false, default will be false
thanks in advance
Miro
@kvichans
We have API for that
PROC_SET_GROUPING: Sets grouping mode in program, one of GROUPS_nnnn int contants.
PROP_INDEX_GROUP: int: index of group with editor's tab, 0-based.
so better to make these commands in CudaExt.
Выглядит как одноразовая задача. Без меня.
Могу помочь советами и ревью, если кто-то будет делать.
@MiroslavMatas Test this plugin, is it ok
cuda_arrange_tabs.zip
new fresh unzip from cudatext-win-x64-1.110.3.0.zip, install cuda_arrange_tabs, restart, 4x new tabs, arrange tabs - because there is only 1 group, I expect no change… but groups are changed to 4… not desired
the same environment - starting condition - group 1+2, and there are 5, 6… tabs - arrange will create group 6 grid - what is not expected from my point of view…
my personal preferences is - respect current groups, just move existing tabs to empty groups (not occupied)
that plugin will be useful also, but I have interest about a little bit different
maybe you can describe "logic" of the command? what it must do in all cases? with n files opened, in M group-view (1 / 2v / 2h / 3v / 3h / 4v /.....).
sure…
my expectation of _"arrange tabs to groups"_ will respect current groups and not change it, only move some tabs to that "empty" areas…
(so new command will not change existing groups - not change the count, not change the layout)
or at different words
n - number of tabs (opened files, tab1, tab2, …)
M group view/views (1, 2h/v, 1+2h/v, 3h/v, 4h/v/g…)
if ((M > 1) and (n > 1)) then {
move tab2 to group 2
move tab3 to group 3 /if possible…/
…
}
if (n -eq 1) do nothing
if (M -eq 1) smile again… or ask "do you want to open groups 2h/v, or 4g, or…"
but that last if you can ignore, here it is not so deterministic… even - also here is possible to create/make some good and useful "flowchart"
my initial reasons/motivation - user are avare how many groups and what layout want to see… so he/she will activate that groups/layout - and click on magic button and existing tabs will move to created viewports
and TIA for any progress at this direction - anything will helps to us, really
New version...
cuda_arrange_tabs.zip
just one milimeter from ideal solution : - )
it works fine, at general, really really good
do what I am asking…
only one thing, but it is ok to shift it to future upgrades/extensions…
situation - I can see three/four/… tabs, and open 2 groups horz… than arrange tabs - resulting state is that only tab1 is on group 1 and all tabs go to group 2… my expectations was, that only one tab will move to group 2
but - I agree, that can be based on personal preferences, and implemented "arrange tabs ver. II" is very good extension…
from my point of view - current addon arrange tabs will be better as new command> groups: arrange tabs - but I leave this decision on you
tab1 is on group 1 and all tabs go to group 2… my expectations was, that only one tab will move to group 2
Hmm, I made like you described. you told that "tab 1 goes to group 1.. tab2 goes to group 2...." It was blurry text.
I am very sorry for that… yes, not so precise formulation, and my bad input for you…
not wrong, only different - result, what is ok…
loop: "tab 1 goes to group 1… tab2 goes to group 2…" - this can lead to situation where (count (open tabs) > count of groups)
e.g. tabs - 3, groups 2: tab1 to group1 (no change), tab2 to group2, tab3 to ? - stay on original position
exactly at this moment I do not see a reason to move rest of tabs to group "last"… my silent expectations was - leave these tabs as it is
but current "arrange tabs ver. 2" is better than situation without this plugin
so - thansk again
Because not very hard to change...
update
cuda_arrange_tabs.zip
@kvichans Maybe embed this to CudaExt too?
_perfetto!_