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

Sort "Select Scheme" #169

Closed
hankache opened this issue Mar 18, 2020 · 9 comments
Closed

Sort "Select Scheme" #169

hankache opened this issue Mar 18, 2020 · 9 comments

Comments

@hankache
Copy link

hankache commented Mar 18, 2020

It would be nice if the "Select Scheme" Window shows items listed in alphabetical order.

@zufuliu
Copy link
Owner

zufuliu commented Mar 18, 2020

It's strictly listed in alphabetical order, the scheme list has five parts:

// 1 global styles, not visible in "Select Scheme" Window
Global Styles
2nd Global Styles

// 2 text files
Text File
2nd Text File

// 3 favorite schemes, currently not changeable
C/C++ Source
...
XML Document

// 4 alphabetical listed other schemes

// 5 the last one
ANSI Art

@hankache
Copy link
Author

I see. May I propose to add some kind of heading to these categories? It would make it obvious.

@zufuliu
Copy link
Owner

zufuliu commented Mar 19, 2020

my proposal is convert the schemes list to a tree with three parts:
// 1 text files
Text File
2nd Text File

// 2 favorite schemes
C/C++ Source
...
XML Document

// 3 alphabetical listed other schemes, grouped by first letter in upper case

The finally result will looks similar to our "Select Encoding" dialog (which can be opened via File => Encoding => More...).
Select Scheme

@zufuliu
Copy link
Owner

zufuliu commented Mar 29, 2020

Two UI prototypes with schemes grouped by first letter, because the group label is very short, none of them look beautiful.

CustomizeSchemes
CustomizeSchemes2

@hankache
Copy link
Author

I'd personally go with option number 2 (with the counter)
Another point worth looking at is that maybe it would look better to create folders even for single entries, i.e. H -> HaXe Script and K -> Kotlin Source

What do you think?

@hankache
Copy link
Author

hankache commented Mar 29, 2020

Also what if by default they all render expanded (like the C folder in the screenshot). With no option to collapse. That way it will look less empty?

@zufuliu
Copy link
Owner

zufuliu commented Mar 30, 2020

Screenshot for Customize Schemes, Select Scheme and Favorite Schemes dialogs.
The Favorite Schemes dialog lacks up and down arrow buttons to arrange favorite schemes.

Schemes

@zufuliu
Copy link
Owner

zufuliu commented Apr 1, 2020

Final appearance for Customize Schemes, Select Scheme and Favorite Schemes dialogs:
CustomizeSchemes

Up and down buttons not added on to Favorite Schemes dialog, but drag & drop is added, which is easy to use, see animation made by https://github.com/NickeManarin/ScreenToGif
Drag Drop

I think this feature is completed, feel free to test latest AppVeyor builds from https://ci.appveyor.com/project/zufuliu/notepad2

@zufuliu
Copy link
Owner

zufuliu commented Apr 2, 2020

Wki for Customize Schemes, Select Scheme and Favorite Schemes is added at https://github.com/zufuliu/notepad2/wiki/Customize-Schemes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants