SystemTrayMenu icon indicating copy to clipboard operation
SystemTrayMenu copied to clipboard

[Feature] Manually sort of items in menu

Open wini2 opened this issue 3 years ago • 4 comments

hi,

thanks a lot for that very useful program.

in opposite to the windows 10 toolbars it is not possible to sort the results manually. results show up only ascending. it would be great feature if the results could be sort/clustered manually.

wini2 avatar Jan 31 '22 13:01 wini2

@wini2 thanks for your feedback! yes, the manual sorting via drag drop from the windows toolbar is a very interesting feature. So far we have always avoided this. On the one hand, I personally didn't find it so good that you could unintentionally change the sorting (then it was somehow difficult to roll back) and on the other hand, it wasn't always identical on other systems. I have always preferred renaming the files so that the sorting fits everywhere.

It just poses the question of where to store the info about sorting. Maybe in a program variable, but then again it would be different per system or in our user.config, but that would go beyond the scope of the config . I'm not sure about the implementation yet.

It would be right to save it in the same folder as an extra invisible file similar to a gitignore file, but I don't think that's a good thing if the STM files were created in general

Hofknecht avatar Jan 31 '22 19:01 Hofknecht

If I understand correctly, we should do it like this: as soon as you move an entry, all entries (even those that you don't see in the search) have to get a sorting index with their current position in the list. This is then written to user.config as dictionary<stringFileNamePath, sotierungsindex>. It should be an option (default false). It means e.g. that new entries are always added to the end of the folder.

When loading, it is checked whether the paths are still in the main folder, if not then they are deleted. We should consider that if a folder is inaccessible only once, will the sorting then be deleted?

if i move a file out of the windows toolbar folder and move it back in, the sorting is cleared for this item and it's at the bottom of the list. Is that possible with a file watcher? Because it is no possible via 'created' or 'modfied timestamp'. Needs further analysis, but maybe this is also only a minor detail and would be e.g. not so important to us

Hofknecht avatar Feb 02 '22 19:02 Hofknecht

hi, thanks for your instant reply.

what I want is the same behaviour like the win10-default behaviour. Right-click on taskbar, 'Symbolleisten' (I think toolbar in englisch-versions), I can add a custom-toolbar. The entries can be sort/clustered manually.

sort-drag-and-drop2

It's true that altering the entries in the custom-windows-folder effects the sorting in the custom-toolbar display of win10 - that's annoying, but it's something I have learned to deal with.

I'd like to achive ths behaviour for STM, which is (still) not possible at the moment. For my needs it's not absolutely necessary to combine it with the search; this means the manually sorting should be possible in the unfiltered state.

sort-drag-and-drop3

wini2 avatar Feb 02 '22 22:02 wini2

vote from @wssrandd for this issue

Hofknecht avatar Jun 28 '22 14:06 Hofknecht