Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Force-ignore characters when aligning? #69

Open
ErikBraun251 opened this issue Sep 29, 2020 · 0 comments
Open

Force-ignore characters when aligning? #69

ErikBraun251 opened this issue Sep 29, 2020 · 0 comments

Comments

@ErikBraun251
Copy link

Thank you for your great addon. Is there a way (optimal: language specific) to tell Better Align to ignore specific characters when aligning?

Example (Source)

self.total_waves:int = -1
self.level_mult_per_wave:float = 1.1
self.victory_condition[0] = VictoryCondition.NEVER
self.victory_condition[1] = VictoryCondition.DESTROY_ALL
self.enemies_per_wave[1] = lambda: int(1 + math.log(self.wave_count + 1))
self.progress_title = lambda: 'Wave'
self.progress_subtitle = lambda: str(self.wave_count)
self.boss_spawn = 10

results in:

self.total_waves        :int                    = -1
self.level_mult_per_wave:float                  = 1.1
self.victory_condition  [0]                     = VictoryCondition.NEVER
self.victory_condition  [1]                     = VictoryCondition.DESTROY_ALL
self.enemies_per_wave   [1]                     = lambda: int(1 + math.log(self.wave_count + 1))
                         self.progress_title    = lambda: 'Wave'
                         self.progress_subtitle = lambda: str(self.wave_count)
                         self.boss_spawn        = 10

expected result: ignore brackets and colon, only align by assignment:

self.total_waves:int           = -1
self.level_mult_per_wave:float = 1.1
self.victory_condition[0]      = VictoryCondition.NEVER
self.victory_condition[1]      = VictoryCondition.DESTROY_ALL
self.enemies_per_wave[1]       = lambda: int(1 + math.log(self.wave_count + 1))
self.progress_title            = lambda: 'Wave'
self.progress_subtitle         = lambda: str(self.wave_count)
self.boss_spawn                = 10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant