Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Manually sort of items in menu #306

Open
wini2 opened this issue Jan 31, 2022 · 4 comments
Open

[Feature] Manually sort of items in menu #306

wini2 opened this issue Jan 31, 2022 · 4 comments
Labels
Projects
Milestone

Comments

@wini2
Copy link

wini2 commented Jan 31, 2022

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.

@Hofknecht
Copy link
Owner

@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
Copy link
Owner

Hofknecht commented Feb 2, 2022

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

@wini2
Copy link
Author

wini2 commented Feb 2, 2022

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

@Hofknecht Hofknecht added this to Analyze / Spec in STM 1.3.0 Feb 6, 2022
@Hofknecht
Copy link
Owner

vote from @wssrandd for this issue

@Hofknecht Hofknecht changed the title [Feature] make results sortable manually [Feature] Manually sort of items in menu Jul 10, 2022
@Hofknecht Hofknecht added this to the 1.4 milestone Jul 10, 2022
@Hofknecht Hofknecht added this to Analyze / Spec in STM 1.4.0 Jul 10, 2022
@Hofknecht Hofknecht moved this from Analyze / Spec to Possible to start in STM 1.4.0 Jul 10, 2022
@Hofknecht Hofknecht removed this from Analyze / Spec in STM 1.3.0 Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
STM 1.4.0
  
Possible to start
Development

No branches or pull requests

2 participants