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

Changeable colors for commands #177

Open
Mike93041 opened this issue Dec 18, 2018 · 3 comments
Open

Changeable colors for commands #177

Mike93041 opened this issue Dec 18, 2018 · 3 comments
Labels
enhancement Issues concerning enhancements of the plugin

Comments

@Mike93041
Copy link

I´ve come with this idea when I was changing eclipse to a dark theme... I first realized that I needed to change the colors of the things in SQDev

This was the result: https://gyazo.com/e265b92dc32cfb580d2841115bb56603
Not bad but when your code is large enough it looks messy and it does because all the commands are recognized like keywords and the IDE colors them the same...
https://gyazo.com/3a7c67f386405f716a363e99267d0c6b (ignore the macro error)

So I tought why not doing it like this?: https://gyazo.com/e302466742cc9cf91a3cc998beeb6049

So my idea is to create a new tab in SQDev preferences called "commands colors" or something like that and there create a drop-down list with some common commands find here: https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3
like getText, isEqualTo/==, setVariable, getVariable, sleep, isNull, isNil, nearestObjects...
I´ll simplify it grouping commands correlated to each other, like getText,getNumber,getArray... =,isEqualTo... isNil, isNull...

It would be something unic right now for SQF and I think it´s a good idea

@Krzmbrzl Krzmbrzl added the enhancement Issues concerning enhancements of the plugin label Dec 19, 2018
@Krzmbrzl
Copy link
Owner

Krzmbrzl commented Dec 19, 2018

I really like the idea. The most problematic part of the suggested approach is the grouping of commands.

I'd say it'd be best if one was to create a few groups of commands that can be coloured individually. Every user then can do the following things

  1. Enable/Disable every single group separately so that no one is forced to set the color of that group to the same as the keywords in order for them to look the same
  2. Edit existing groups - The commands of every group should be freely selectable. If I feel like hint should be coloured in the same way as getNumber I should be able to add it to the respective group and if I don't want getString in that group (any more) I should be able to remove it
  3. Create new groups from scratch so that the colouring can be fully customized.

Did I miss something?

So in order for this to be implemented properly the following things have to be done (that's just a checklist for myself):

  • Create new settings area for grouping commands and configuring their colour
  • Create UI frontend for the respective actions
  • Create some default groups
  • Install a KeywordScanner for every activated group on editor initialization

@Krzmbrzl
Copy link
Owner

If you feel like it I'd appreciate if you provided the groups you had in mind with the commands you'd want to see in them :)

@Krzmbrzl
Copy link
Owner

Krzmbrzl commented Jan 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues concerning enhancements of the plugin
Projects
None yet
Development

No branches or pull requests

2 participants