openHAB-Alignment-Tool
openHAB-Alignment-Tool copied to clipboard
This extension adds support for formatting and indenting openHAB files. At the moment only the item-files are supported.
When using spaces instead of tabs, alignment with the tab key is off. This PR fixes that, now alignment should be exactly the same as when using tabs as separators.
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [![Dependabot...
Bumps [nanoid](https://github.com/ai/nanoid) to 3.3.3 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `nanoid` from 3.1.20 to 3.3.3 Changelog Sourced from nanoid's changelog. 3.3.3 Reduced size...
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...
I did file an issue [here](https://github.com/openhab/openhab-vscode/issues/317) but it turns out it is caused by the Alignment Tool.
Any Item "label" containing a < (less than) symbol results in strange formatting. Example Orignal ``` Number PV_West_Alert_Power "Alert When West Max Power < [%dW]" (gMapDBpersist,gLogChangesInfo) ``` After Formatting ```...
When a .items files is formatted containing tags then the tags are deleted and anything following the tag is also deleted. ``` Group Home "Home" [House] Group Indoor "Indoor" (Home)...
The following items: ``` Switch test1 "test 1" (All) Switch _test2 "_test 2" (All) ``` align to: ``` Switch test1 "test 1" (All)SwitchSwitch _test2 "_test 2" (All) ``` which is...
Hello, if i have an empty string and apply formatting it would delete the code after the empty string for the formatting of a. items file. Code prior to formatting...
Found another bug. This might be a tricky one, because it includes escaped characters. Example: ``` String AAA "BBB" {mqtt=">[mosquitto:ccc:command:open:{\"x\"\\: \"y\"}]"} ``` Result: ``` String AAA "BBB" {mqtt=">[mosquitto:ccc:command:open:{\"} ``` And...