From 58a067177de9c525955c4449239ae3404bc97c19 Mon Sep 17 00:00:00 2001 From: Manuel Miethe Date: Tue, 6 Jan 2026 07:37:16 +0100 Subject: [PATCH 01/17] fix bug regarding curly braces --- package-lock.json | 20 ++++++++++++++------ package.json | 2 +- src/extension.ts | 5 +++-- src/utils.ts | 2 +- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0a42a9..5f57e91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "oh-alignment-tool", - "version": "2.1.3", + "version": "2.1.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "oh-alignment-tool", - "version": "2.1.3", + "version": "2.1.7", "license": "EPL-2.0", "dependencies": { "@types/semver": "^7.3.4", @@ -89,7 +89,8 @@ "node_modules/@types/semver": { "version": "7.3.4", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ==" + "integrity": "sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ==", + "dev": true }, "node_modules/@types/vscode": { "version": "1.55.0", @@ -913,6 +914,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, "dependencies": { "yallist": "^4.0.0" }, @@ -1231,6 +1233,7 @@ "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -1610,7 +1613,8 @@ "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/yargs": { "version": "16.2.0", @@ -1769,7 +1773,8 @@ "@types/semver": { "version": "7.3.4", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ==" + "integrity": "sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ==", + "dev": true }, "@types/vscode": { "version": "1.55.0", @@ -2408,6 +2413,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, "requires": { "yallist": "^4.0.0" } @@ -2642,6 +2648,7 @@ "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, "requires": { "lru-cache": "^6.0.0" } @@ -2941,7 +2948,8 @@ "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "yargs": { "version": "16.2.0", diff --git a/package.json b/package.json index b6f0b55..f1dbbb1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "oh-alignment-tool", "displayName": "openHAB Alignment Tool", - "version": "2.1.6", + "version": "2.1.7", "publisher": "max-beckenbauer", "contributors": [ "Mark Hilbush" diff --git a/src/extension.ts b/src/extension.ts index 835383f..55b818b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -31,9 +31,10 @@ const REGEX_ITEM_LABEL = /\".+?\"/; const REGEX_ITEM_ICON = /<.+?>/; const REGEX_ITEM_GROUP = /\(.+?\)/; const REGEX_ITEM_TAG = /\[\s*(\".+?\")\s*(,\s*\".+?\"\s*)*\]/; -const REGEX_ITEM_CHANNEL_START = /\{\s*(\w*\s?=\s?"[^\}]*"?,?\s*)+\}?/; +// Updated regex to handle nested curly braces inside quoted strings +const REGEX_ITEM_CHANNEL_START = /\{\s*(\w*\s?=\s?"(?:[^"\\]|\\.)*"?,?\s*)+\}?/; const REGEX_ITEM_CHANNEL_END = /.*[\},]/; -const REGEX_ITEM_CHANNEL_SECTION = /(\w+\=\".*?\"\s*(\[.*?\])?)+/g; +const REGEX_ITEM_CHANNEL_SECTION = /(\w+\=\"(?:[^"\\]|\\.)*\"\s*(\[.*?\])?)+/g; const REGEX_SITEMAP_ELEMENTS = /\b(Frame|Default|Text|Group|Switch|Selection|Setpoint|Slider|Colorpicker|Webview|Mapview|Image|Video|Chart)\b/g; diff --git a/src/utils.ts b/src/utils.ts index 3a53a74..3a8cd3a 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -63,7 +63,7 @@ export function fillColumns(str: string, finalLength: number): string { } if (editor.options.insertSpaces) { - for (let e = 0; e < tabSize + finalLength - str.length; e++) { + for (let e = 0; e < tabSize - finalLength % tabSize + finalLength - str.length; e++) { tab += " "; } str += tab; From 86d90e3fb8e0c4f3e88282e6aae662f691573542 Mon Sep 17 00:00:00 2001 From: Manuel Miethe Date: Tue, 6 Jan 2026 08:33:03 +0100 Subject: [PATCH 02/17] change --- src/extension.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 55b818b..bb11cca 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -32,9 +32,9 @@ const REGEX_ITEM_ICON = /<.+?>/; const REGEX_ITEM_GROUP = /\(.+?\)/; const REGEX_ITEM_TAG = /\[\s*(\".+?\")\s*(,\s*\".+?\"\s*)*\]/; // Updated regex to handle nested curly braces inside quoted strings -const REGEX_ITEM_CHANNEL_START = /\{\s*(\w*\s?=\s?"(?:[^"\\]|\\.)*"?,?\s*)+\}?/; -const REGEX_ITEM_CHANNEL_END = /.*[\},]/; -const REGEX_ITEM_CHANNEL_SECTION = /(\w+\=\"(?:[^"\\]|\\.)*\"\s*(\[.*?\])?)+/g; +const REGEX_ITEM_CHANNEL_START = /\{.*\}$/; +const REGEX_ITEM_CHANNEL_END = /.*\}$/; +const REGEX_ITEM_CHANNEL_SECTION = /\w+="[^"]*"(\s*\[[^\]]*\])?/g; const REGEX_SITEMAP_ELEMENTS = /\b(Frame|Default|Text|Group|Switch|Selection|Setpoint|Slider|Colorpicker|Webview|Mapview|Image|Video|Chart)\b/g; From 8994d75d8d8c25c23b9b1aa9a4cf68526731f319 Mon Sep 17 00:00:00 2001 From: Manuel Miethe Date: Tue, 6 Jan 2026 08:33:54 +0100 Subject: [PATCH 03/17] change semver --- .vscodeignore | 3 +++ package-lock.json | 12 ++---------- package.json | 2 -- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index 770963d..c6dbc7e 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -11,3 +11,6 @@ client/node_modules/** !client/node_modules/vscode-languageclient/** !client/node_modules/vscode-languageserver-protocol/** !client/node_modules/vscode-languageserver-types/** +**/node_modules/* +!**/node_modules/semver +!**/node_modules/semver/** diff --git a/package-lock.json b/package-lock.json index 5f57e91..b508cfb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "2.1.7", "license": "EPL-2.0", "dependencies": { - "@types/semver": "^7.3.4", "semver": "^7.3.5" }, "devDependencies": { @@ -20,7 +19,6 @@ "@types/vscode": "^1.55.0", "glob": "^7.1.6", "mocha": "^8.3.2", - "semver": "^7.3.5", "tslint": "^5.20.1", "typescript": "^4.2.4", "vscode-test": "^1.5.2" @@ -914,7 +912,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, "dependencies": { "yallist": "^4.0.0" }, @@ -1233,7 +1230,6 @@ "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -1613,8 +1609,7 @@ "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/yargs": { "version": "16.2.0", @@ -2413,7 +2408,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, "requires": { "yallist": "^4.0.0" } @@ -2648,7 +2642,6 @@ "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, "requires": { "lru-cache": "^6.0.0" } @@ -2948,8 +2941,7 @@ "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "yargs": { "version": "16.2.0", diff --git a/package.json b/package.json index f1dbbb1..d80cd15 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,6 @@ "test": "node ./out/test/runTest.js" }, "dependencies": { - "@types/semver": "^7.3.4", "semver": "^7.3.5" }, "devDependencies": { @@ -136,7 +135,6 @@ "@types/vscode": "^1.55.0", "glob": "^7.1.6", "mocha": "^8.3.2", - "semver": "^7.3.5", "tslint": "^5.20.1", "typescript": "^4.2.4", "vscode-test": "^1.5.2" From 4bddf000b18418375cb90848ea02f665069cb4e4 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 21:51:39 +0200 Subject: [PATCH 04/17] Prepare 2026 marketplace release --- CHANGELOG.md | 6 ++++++ README.md | 12 ++++++------ package-lock.json | 8 ++++---- package.json | 19 ++++++++++--------- src/contentProvider.ts | 2 +- src/extension.ts | 2 +- src/vscode-whats-new/ui/whats-new.html | 4 ++-- 7 files changed, 30 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6b51a5..6ab44e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # openHAB Alignment Tool Change Log +## 2026.0.0 + +- Community-maintained Marketplace release from the `mannemiethe/openHAB-Alignment-Tool` fork. +- Renamed extension package to `oh-alignment-tool-2026` to avoid colliding with the unmaintained original Marketplace listing. + + All notable changes to the openHAB Alignment Tool extension will be documented in this file. ## [2.1.6] - 30.04.2021 diff --git a/README.md b/README.md index fbfd1dc..a942d8d 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@
- +


[![Build Status](https://maxbec.visualstudio.com/openHAB%20Alignment%20Tool/_apis/build/status/MaxBec.openHAB-Alignment-Tool?branchName=master)](https://maxbec.visualstudio.com/openHAB%20Alignment%20Tool/_build/latest?definitionId=1&branchName=master) -[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/max-beckenbauer.oh-alignment-tool?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/max-beckenbauer.oh-alignment-tool?color=blue&label=Installs&logo=visual-studio-code) -[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/max-beckenbauer.oh-alignment-tool?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/max-beckenbauer.oh-alignment-tool?color=orange) -[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/max-beckenbauer.oh-alignment-tool?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/max-beckenbauer.oh-alignment-tool?label=Rating&logo=visual-studio-code) +[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/mannemiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/mannemiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code) +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/mannemiethe.oh-alignment-tool-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/mannemiethe.oh-alignment-tool-2026?color=orange) +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/mannemiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/mannemiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code) This extension adds support for formatting and indenting [openHAB](http://www.openhab.org) files like `*.items`, `*.sitemap`, etc. At the moment only `*.items` and `*.sitemap` files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types @@ -102,11 +102,11 @@ the different parts. ## Known Issues -See [Github Issues](https://github.com/MaxBec/openHAB-Alignment-Tool/issues) file for the details. +See [Github Issues](https://github.com/mannemiethe/openHAB-Alignment-Tool/issues) file for the details. ## Release Notes -See [CHANGELOG.md](https://github.com/MaxBec/openHAB-Alignment-Tool/blob/master/CHANGELOG.md) file for the details. +See [CHANGELOG.md](https://github.com/mannemiethe/openHAB-Alignment-Tool/blob/master/CHANGELOG.md) file for the details. --- diff --git a/package-lock.json b/package-lock.json index b508cfb..e246ba8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "oh-alignment-tool", - "version": "2.1.7", + "name": "oh-alignment-tool-2026", + "version": "2026.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "oh-alignment-tool", - "version": "2.1.7", + "name": "oh-alignment-tool-2026", + "version": "2026.0.0", "license": "EPL-2.0", "dependencies": { "semver": "^7.3.5" diff --git a/package.json b/package.json index d80cd15..d191db5 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { - "name": "oh-alignment-tool", - "displayName": "openHAB Alignment Tool", - "version": "2.1.7", - "publisher": "max-beckenbauer", + "name": "oh-alignment-tool-2026", + "displayName": "openHAB Alignment Tool 2026", + "version": "2026.0.0", + "publisher": "mannemiethe", "contributors": [ + "Manuel Miethe", "Mark Hilbush" ], - "description": "Tool to format and indent openHAB files. At the moment only item and sitemap files can be formatted.", + "description": "Community-maintained fork of the openHAB Alignment Tool for formatting and indenting openHAB item and sitemap files.", "author": { "name": "Maximilian Beckenbauer", "email": "max.bec92@gmail.com", @@ -19,12 +20,11 @@ ], "icon": "images/logo.png", "repository": { - "url": "https://github.com/MaxBec/openHAB-Alignment-Tool", + "url": "https://github.com/mannemiethe/openHAB-Alignment-Tool", "type": "git" }, "bugs": { - "url": "https://github.com/MaxBec/openHAB-Alignment-Tool/issues", - "email": "max.bec92@gmail.com" + "url": "https://github.com/mannemiethe/openHAB-Alignment-Tool/issues" }, "engines": { "vscode": "^1.55.0" @@ -138,5 +138,6 @@ "tslint": "^5.20.1", "typescript": "^4.2.4", "vscode-test": "^1.5.2" - } + }, + "homepage": "https://github.com/mannemiethe/openHAB-Alignment-Tool#readme" } diff --git a/src/contentProvider.ts b/src/contentProvider.ts index 56dfeee..1bf3693 100644 --- a/src/contentProvider.ts +++ b/src/contentProvider.ts @@ -122,7 +122,7 @@ export class BookmarksSocialMediaProvider implements SocialMediaProvider { return [ { title: "Follow me on GitHub", - link: "https://github.com/MaxBec", + link: "https://github.com/mannemiethe", }, ]; } diff --git a/src/extension.ts b/src/extension.ts index bb11cca..411fb4f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1029,7 +1029,7 @@ function formatThing(thing: Thing): string { *---------------------------------------------------------------------------------------------------------*/ function registerWhatsNew(context: vscode.ExtensionContext) { const provider = new BookmarksContentProvider(); - const viewer = new WhatsNewManager(context).registerContentProvider("max-beckenbauer", "oh-alignment-tool", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); + const viewer = new WhatsNewManager(context).registerContentProvider("mannemiethe", "oh-alignment-tool-2026", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); viewer.showPageInActivation(); context.subscriptions.push(commands.registerCommand("extension.whatsNew", () => viewer.showPage())); context.subscriptions.push(commands.registerCommand("_extension.whatsNewContextMenu", () => viewer.showPage())); diff --git a/src/vscode-whats-new/ui/whats-new.html b/src/vscode-whats-new/ui/whats-new.html index 9c0a8e6..9bdea43 100644 --- a/src/vscode-whats-new/ui/whats-new.html +++ b/src/vscode-whats-new/ui/whats-new.html @@ -42,7 +42,7 @@

What's New in ${extensionDisplayName} ${extensio

Need Help?

  • - Homepage + Homepage
  • Questions & Issues @@ -60,7 +60,7 @@

    Show Your Support

    ${supportChannels} ${sponsors} From 4b731ec40b2394df2cd1be837db1dd8f2a2c788b Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:20:00 +0200 Subject: [PATCH 05/17] Set 2026 fork version to 2.1.8 --- CHANGELOG.md | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab44e3..207336c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # openHAB Alignment Tool Change Log -## 2026.0.0 +## [2.1.8] - 01.05.2026 - Community-maintained Marketplace release from the `mannemiethe/openHAB-Alignment-Tool` fork. -- Renamed extension package to `oh-alignment-tool-2026` to avoid colliding with the unmaintained original Marketplace listing. +- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Alignment Tool 2026` to avoid colliding with the unmaintained original Marketplace listing. All notable changes to the openHAB Alignment Tool extension will be documented in this file. diff --git a/package-lock.json b/package-lock.json index e246ba8..d005732 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "oh-alignment-tool-2026", - "version": "2026.0.0", + "version": "2.1.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "oh-alignment-tool-2026", - "version": "2026.0.0", + "version": "2.1.8", "license": "EPL-2.0", "dependencies": { "semver": "^7.3.5" diff --git a/package.json b/package.json index d191db5..9e6e0ff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "oh-alignment-tool-2026", "displayName": "openHAB Alignment Tool 2026", - "version": "2026.0.0", + "version": "2.1.8", "publisher": "mannemiethe", "contributors": [ "Manuel Miethe", From b94cb4acfa3326d916ca365d5cfdab462107ae32 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:35:00 +0200 Subject: [PATCH 06/17] Use ManuelMiethe marketplace publisher --- README.md | 6 +++--- package.json | 2 +- src/extension.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a942d8d..92b6e4b 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@

    [![Build Status](https://maxbec.visualstudio.com/openHAB%20Alignment%20Tool/_apis/build/status/MaxBec.openHAB-Alignment-Tool?branchName=master)](https://maxbec.visualstudio.com/openHAB%20Alignment%20Tool/_build/latest?definitionId=1&branchName=master) -[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/mannemiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/mannemiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code) -[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/mannemiethe.oh-alignment-tool-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/mannemiethe.oh-alignment-tool-2026?color=orange) -[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/mannemiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/mannemiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code) +[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code) +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.oh-alignment-tool-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.oh-alignment-tool-2026?color=orange) +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code) This extension adds support for formatting and indenting [openHAB](http://www.openhab.org) files like `*.items`, `*.sitemap`, etc. At the moment only `*.items` and `*.sitemap` files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types diff --git a/package.json b/package.json index 9e6e0ff..b2b5df9 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "oh-alignment-tool-2026", "displayName": "openHAB Alignment Tool 2026", "version": "2.1.8", - "publisher": "mannemiethe", + "publisher": "ManuelMiethe", "contributors": [ "Manuel Miethe", "Mark Hilbush" diff --git a/src/extension.ts b/src/extension.ts index 411fb4f..d0446b1 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1029,7 +1029,7 @@ function formatThing(thing: Thing): string { *---------------------------------------------------------------------------------------------------------*/ function registerWhatsNew(context: vscode.ExtensionContext) { const provider = new BookmarksContentProvider(); - const viewer = new WhatsNewManager(context).registerContentProvider("mannemiethe", "oh-alignment-tool-2026", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); + const viewer = new WhatsNewManager(context).registerContentProvider("ManuelMiethe", "oh-alignment-tool-2026", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); viewer.showPageInActivation(); context.subscriptions.push(commands.registerCommand("extension.whatsNew", () => viewer.showPage())); context.subscriptions.push(commands.registerCommand("_extension.whatsNewContextMenu", () => viewer.showPage())); From 2ff82bd62c6f047790bc0ddadf493c5dbc74ae87 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:37:29 +0200 Subject: [PATCH 07/17] Clarify 2026 release lineage --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 207336c..6ddacd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## [2.1.8] - 01.05.2026 -- Community-maintained Marketplace release from the `mannemiethe/openHAB-Alignment-Tool` fork. +- First community-maintained release after the original project went quiet in 2021. +- Continued the upstream package version from `2.1.7` to `2.1.8` instead of resetting to a year-based version. - Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Alignment Tool 2026` to avoid colliding with the unmaintained original Marketplace listing. From 2350150122fdb271759c248c3561c1ce08c19534 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:44:14 +0200 Subject: [PATCH 08/17] Use distinct marketplace display name --- CHANGELOG.md | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ddacd3..4a5d246 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - First community-maintained release after the original project went quiet in 2021. - Continued the upstream package version from `2.1.7` to `2.1.8` instead of resetting to a year-based version. -- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Alignment Tool 2026` to avoid colliding with the unmaintained original Marketplace listing. +- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Config Formatter 2026` to avoid colliding with the unmaintained original Marketplace listing. All notable changes to the openHAB Alignment Tool extension will be documented in this file. diff --git a/package.json b/package.json index b2b5df9..b43ed56 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "oh-alignment-tool-2026", - "displayName": "openHAB Alignment Tool 2026", + "displayName": "openHAB Config Formatter 2026", "version": "2.1.8", "publisher": "ManuelMiethe", "contributors": [ "Manuel Miethe", "Mark Hilbush" ], - "description": "Community-maintained fork of the openHAB Alignment Tool for formatting and indenting openHAB item and sitemap files.", + "description": "Community-maintained formatter and alignment tool for openHAB item and sitemap configuration files.", "author": { "name": "Maximilian Beckenbauer", "email": "max.bec92@gmail.com", From 738a5c47bf14a516e1d1baa3eed822cae4f64442 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:46:29 +0200 Subject: [PATCH 09/17] Move 2026 into display name --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a5d246..227f0c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - First community-maintained release after the original project went quiet in 2021. - Continued the upstream package version from `2.1.7` to `2.1.8` instead of resetting to a year-based version. -- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Config Formatter 2026` to avoid colliding with the unmaintained original Marketplace listing. +- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB 2026 Alignment Tool` to avoid colliding with the unmaintained original Marketplace listing. All notable changes to the openHAB Alignment Tool extension will be documented in this file. diff --git a/package.json b/package.json index b43ed56..9a8b207 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oh-alignment-tool-2026", - "displayName": "openHAB Config Formatter 2026", + "displayName": "openHAB 2026 Alignment Tool", "version": "2.1.8", "publisher": "ManuelMiethe", "contributors": [ From ec4b3fe846472c9409d590613072b785c386968e Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:50:08 +0200 Subject: [PATCH 10/17] Use marketplace-distinct display name --- CHANGELOG.md | 2 +- package.json | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 227f0c5..f6418ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - First community-maintained release after the original project went quiet in 2021. - Continued the upstream package version from `2.1.7` to `2.1.8` instead of resetting to a year-based version. -- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB 2026 Alignment Tool` to avoid colliding with the unmaintained original Marketplace listing. +- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Config Aligner 2026` to avoid colliding with the unmaintained original Marketplace listing. All notable changes to the openHAB Alignment Tool extension will be documented in this file. diff --git a/package.json b/package.json index 9a8b207..de6c842 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "oh-alignment-tool-2026", - "displayName": "openHAB 2026 Alignment Tool", + "displayName": "openHAB Config Aligner 2026", "version": "2.1.8", "publisher": "ManuelMiethe", "contributors": [ "Manuel Miethe", "Mark Hilbush" ], - "description": "Community-maintained formatter and alignment tool for openHAB item and sitemap configuration files.", + "description": "Community-maintained config alignment and formatting tool for openHAB item and sitemap files.", "author": { "name": "Maximilian Beckenbauer", "email": "max.bec92@gmail.com", @@ -139,5 +139,13 @@ "typescript": "^4.2.4", "vscode-test": "^1.5.2" }, - "homepage": "https://github.com/mannemiethe/openHAB-Alignment-Tool#readme" + "homepage": "https://github.com/mannemiethe/openHAB-Alignment-Tool#readme", + "keywords": [ + "openHAB", + "formatter", + "alignment", + "items", + "sitemap", + "config" + ] } From ad7a1213753f137e158f1c1991bcbb079b72287f Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:55:04 +0200 Subject: [PATCH 11/17] Remove original install-facing identifiers --- CHANGELOG.md | 4 ++-- README.md | 8 +++----- package.json | 45 +++++++++++++++++++++--------------------- src/contentProvider.ts | 2 +- src/extension.ts | 26 ++++++++++++------------ 5 files changed, 41 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6418ec..27beb7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# openHAB Alignment Tool Change Log +# openHAB Config Aligner 2026 Change Log ## [2.1.8] - 01.05.2026 @@ -7,7 +7,7 @@ - Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Config Aligner 2026` to avoid colliding with the unmaintained original Marketplace listing. -All notable changes to the openHAB Alignment Tool extension will be documented in this file. +All notable changes to the openHAB Config Aligner 2026 extension will be documented in this file. ## [2.1.6] - 30.04.2021 diff --git a/README.md b/README.md index 92b6e4b..27e2d9c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@

    -[![Build Status](https://maxbec.visualstudio.com/openHAB%20Alignment%20Tool/_apis/build/status/MaxBec.openHAB-Alignment-Tool?branchName=master)](https://maxbec.visualstudio.com/openHAB%20Alignment%20Tool/_build/latest?definitionId=1&branchName=master) [![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code) [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.oh-alignment-tool-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.oh-alignment-tool-2026?color=orange) [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code) @@ -14,7 +13,6 @@ and other format-types will be added. Feel free to add feature-requests on the g If you've found the extension helpful or useful, then please consider throwing a coffee my way to help support my work. As i am a student and would like to invest more time and effort in this project this would really help me. -- [Ko-Fi Donation to MaxBec](https://ko-fi.com/C0C01XTXB) - [PayPal Donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url) ## Features @@ -75,19 +73,19 @@ The formatting is available for the following openhab file types: With this option you can choose if you want to have a new line inserted after each item. If there is already a single empty line after an item this settings is ignored. -`"oh-alignment-tool.newLineAfterItem": true` +`"oh-alignment-tool-2026.newLineAfterItem": true` ### Preserve Whitespace Whitespaces (tabs or spaces) in front of items get preserved and won't be deleted. -`"oh-alignment-tool.preserveWhitespace": true` +`"oh-alignment-tool-2026.preserveWhitespace": true` ### Multiline Indent Amount With this option you can control the amount of indent when using the Multiline format. -`"oh-alignment-tool.multilineIndentAmount": 28` +`"oh-alignment-tool-2026.multilineIndentAmount": 28` ### Format Style diff --git a/package.json b/package.json index de6c842..c5cce90 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,8 @@ ], "description": "Community-maintained config alignment and formatting tool for openHAB item and sitemap files.", "author": { - "name": "Maximilian Beckenbauer", - "email": "max.bec92@gmail.com", - "url": "https://github.com/MaxBec/openHAB-Alignment-Tool" + "name": "Manuel Miethe", + "url": "https://github.com/mannemiethe" }, "categories": [ "Other", @@ -37,60 +36,60 @@ "contributes": { "commands": [ { - "command": "extension.insert-item-generic", - "category": "openHAB Alignment", + "command": "oh-alignment-tool-2026.insert-item-generic", + "category": "openHAB Config Aligner", "title": "Insert Item" }, { - "command": "extension.insert-item-switch", - "category": "openHAB Alignment", + "command": "oh-alignment-tool-2026.insert-item-switch", + "category": "openHAB Config Aligner", "title": "Insert Switch Item" }, { - "command": "extension.insert-item-dimmer", - "category": "openHAB Alignment", + "command": "oh-alignment-tool-2026.insert-item-dimmer", + "category": "openHAB Config Aligner", "title": "Insert Dimmer Item" }, { - "command": "extension.insert-item-string", - "category": "openHAB Alignment", + "command": "oh-alignment-tool-2026.insert-item-string", + "category": "openHAB Config Aligner", "title": "Insert String Item" }, { - "command": "extension.insert-item-number", - "category": "openHAB Alignment", + "command": "oh-alignment-tool-2026.insert-item-number", + "category": "openHAB Config Aligner", "title": "Insert Number Item" }, { - "command": "extension.insert-item-datetime", - "category": "openHAB Alignment", + "command": "oh-alignment-tool-2026.insert-item-datetime", + "category": "openHAB Config Aligner", "title": "Insert DateTime Item" }, { - "command": "extension.whatsNew", + "command": "oh-alignment-tool-2026.whatsNew", "title": "%extension.commands.whatsNew.title%", "category": "%extension.commands.category.bookmarks%" }, { - "command": "_extension.whatsNewContextMenu", + "command": "_oh-alignment-tool-2026.whatsNewContextMenu", "title": "%extension.commands.whatsNewContextMenu.title%" } ], "configuration": { "type": "object", - "title": "openHAB Alignment Tool", + "title": "openHAB Config Aligner 2026", "properties": { - "oh-alignment-tool.preserveWhitespace": { + "oh-alignment-tool-2026.preserveWhitespace": { "type": "boolean", "default": false, "description": "Preserves any leading whitespace when reformatting an item." }, - "oh-alignment-tool.newLineAfterItem": { + "oh-alignment-tool-2026.newLineAfterItem": { "type": "boolean", "default": false, "description": "Choose if you want to have a new line inserted after each item." }, - "oh-alignment-tool.formatStyle": { + "oh-alignment-tool-2026.formatStyle": { "type": "string", "default": "Column", "enum": [ @@ -104,12 +103,12 @@ "Formats the files in a multiline-style. E.g. in an items file each part of an item is written in a new line." ] }, - "oh-alignment-tool.minimumIndentAmount": { + "oh-alignment-tool-2026.minimumIndentAmount": { "type": "number", "default": 4, "description": "Minimum separation of thing or item parts." }, - "oh-alignment-tool.enableBetaFeatures": { + "oh-alignment-tool-2026.enableBetaFeatures": { "type": "boolean", "default": false, "description": "Enable beta features like sitemap formatting or thing file formatting." diff --git a/src/contentProvider.ts b/src/contentProvider.ts index 1bf3693..6070459 100644 --- a/src/contentProvider.ts +++ b/src/contentProvider.ts @@ -10,7 +10,7 @@ export class BookmarksContentProvider implements ContentProvider { public provideHeader(logoUrl: string): Header { return
    { logo: { src: logoUrl, height: 50, width: 40 }, - message: `openHAB Alignment Tool This extension adds support for formatting and indenting openHAB + message: `openHAB Config Aligner 2026 This extension adds support for formatting and indenting openHAB files like *.items, *.sitemap, etc. At the moment only *.items and *.sitemap files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types and other format-types will be added. diff --git a/src/extension.ts b/src/extension.ts index d0446b1..46a3acc 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -79,7 +79,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push( vscode.languages.registerDocumentFormattingEditProvider("openhab", { provideDocumentFormattingEdits: (document, options, token) => { - let config = vscode.workspace.getConfiguration("oh-alignment-tool"); + let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); // Check the file type, clean the file and format it if (document.fileName.includes(".sitemap")) { return config.enableBetaFeatures ? formatSitemapFile() : undefined; @@ -105,27 +105,27 @@ export function activate(context: vscode.ExtensionContext) { ); // Insert a generic item - vscode.commands.registerCommand("extension.insert-item-generic", () => { + vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-generic", () => { commandInsertNewGenericItem(); }); // Insert a Switch item - vscode.commands.registerCommand("extension.insert-item-switch", () => { + vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-switch", () => { commandInsertNewSwitchItem(); }); // Insert a Dimmer item - vscode.commands.registerCommand("extension.insert-item-dimmer", () => { + vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-dimmer", () => { commandInsertNewDimmerItem(); }); // Insert a String item - vscode.commands.registerCommand("extension.insert-item-string", () => { + vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-string", () => { commandInsertNewStringItem(); }); // Insert a Number item - vscode.commands.registerCommand("extension.insert-item-number", () => { + vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-number", () => { commandInsertNewNumberItem(); }); // Insert a DateTime item - vscode.commands.registerCommand("extension.insert-item-datetime", () => { + vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-datetime", () => { commandInsertNewDateTimeItem(); }); @@ -276,7 +276,7 @@ function formatItemFile(range?: vscode.Range): vscode.TextEdit[] { var itemBlockCounter = 0; // Get the format configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool"); + let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); let preserveWhitespace = config.preserveWhitespace; let newLineAfterItem = config.newLineAfterItem; @@ -570,7 +570,7 @@ function formatThingFile(range?: vscode.Range): vscode.TextEdit[] { let channelPending = false; // Get the format configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool"); + let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); let preserveWhitespace = config.preserveWhitespace; let newLineAfterItem = config.newLineAfterItem; @@ -832,7 +832,7 @@ function insertItem(type: string, name: string, label: string, icon: string, gro */ function formatItem(item: Item): string { // Get the configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool"); + let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); let formatStyle = item.formatOption ? item.formatOption : config.formatStyle; let newLineAfterItem = config.newLineAfterItem; let editor = vscode.window.activeTextEditor; @@ -972,7 +972,7 @@ function formatItem(item: Item): string { */ function formatThing(thing: Thing): string { // Get the configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool"); + let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); let formatStyle = config.formatStyle; let newLineAfterItem = config.newLineAfterItem; let multilineIndentAmount = config.multilineIndentAmount; @@ -1031,6 +1031,6 @@ function registerWhatsNew(context: vscode.ExtensionContext) { const provider = new BookmarksContentProvider(); const viewer = new WhatsNewManager(context).registerContentProvider("ManuelMiethe", "oh-alignment-tool-2026", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); viewer.showPageInActivation(); - context.subscriptions.push(commands.registerCommand("extension.whatsNew", () => viewer.showPage())); - context.subscriptions.push(commands.registerCommand("_extension.whatsNewContextMenu", () => viewer.showPage())); + context.subscriptions.push(commands.registerCommand("oh-alignment-tool-2026.whatsNew", () => viewer.showPage())); + context.subscriptions.push(commands.registerCommand("_oh-alignment-tool-2026.whatsNewContextMenu", () => viewer.showPage())); } From 5823362866e3ef3abcef217e392e6de1b617c35c Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 22:57:44 +0200 Subject: [PATCH 12/17] Align extension id with marketplace name --- CHANGELOG.md | 2 +- README.md | 12 ++++++------ package-lock.json | 4 ++-- package.json | 28 ++++++++++++++-------------- src/extension.ts | 28 ++++++++++++++-------------- 5 files changed, 37 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27beb7f..0da6065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - First community-maintained release after the original project went quiet in 2021. - Continued the upstream package version from `2.1.7` to `2.1.8` instead of resetting to a year-based version. -- Renamed extension package to `oh-alignment-tool-2026` / display name `openHAB Config Aligner 2026` to avoid colliding with the unmaintained original Marketplace listing. +- Renamed extension package to `openhab-config-aligner-2026` / display name `openHAB Config Aligner 2026` to avoid colliding with the unmaintained original Marketplace listing. All notable changes to the openHAB Config Aligner 2026 extension will be documented in this file. diff --git a/README.md b/README.md index 27e2d9c..88eb659 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@

    -[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.oh-alignment-tool-2026?color=blue&label=Installs&logo=visual-studio-code) -[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.oh-alignment-tool-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.oh-alignment-tool-2026?color=orange) -[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.oh-alignment-tool-2026?label=Rating&logo=visual-studio-code) +[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.openhab-config-aligner-2026?color=blue&label=Installs&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/i/ManuelMiethe.openhab-config-aligner-2026?color=blue&label=Installs&logo=visual-studio-code) +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.openhab-config-aligner-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.openhab-config-aligner-2026?color=orange) +[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.openhab-config-aligner-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.openhab-config-aligner-2026?label=Rating&logo=visual-studio-code) This extension adds support for formatting and indenting [openHAB](http://www.openhab.org) files like `*.items`, `*.sitemap`, etc. At the moment only `*.items` and `*.sitemap` files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types @@ -73,19 +73,19 @@ The formatting is available for the following openhab file types: With this option you can choose if you want to have a new line inserted after each item. If there is already a single empty line after an item this settings is ignored. -`"oh-alignment-tool-2026.newLineAfterItem": true` +`"openhab-config-aligner-2026.newLineAfterItem": true` ### Preserve Whitespace Whitespaces (tabs or spaces) in front of items get preserved and won't be deleted. -`"oh-alignment-tool-2026.preserveWhitespace": true` +`"openhab-config-aligner-2026.preserveWhitespace": true` ### Multiline Indent Amount With this option you can control the amount of indent when using the Multiline format. -`"oh-alignment-tool-2026.multilineIndentAmount": 28` +`"openhab-config-aligner-2026.multilineIndentAmount": 28` ### Format Style diff --git a/package-lock.json b/package-lock.json index d005732..c9f330e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "oh-alignment-tool-2026", + "name": "openhab-config-aligner-2026", "version": "2.1.8", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "oh-alignment-tool-2026", + "name": "openhab-config-aligner-2026", "version": "2.1.8", "license": "EPL-2.0", "dependencies": { diff --git a/package.json b/package.json index c5cce90..de796c6 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "oh-alignment-tool-2026", + "name": "openhab-config-aligner-2026", "displayName": "openHAB Config Aligner 2026", "version": "2.1.8", "publisher": "ManuelMiethe", @@ -36,42 +36,42 @@ "contributes": { "commands": [ { - "command": "oh-alignment-tool-2026.insert-item-generic", + "command": "openhab-config-aligner-2026.insert-item-generic", "category": "openHAB Config Aligner", "title": "Insert Item" }, { - "command": "oh-alignment-tool-2026.insert-item-switch", + "command": "openhab-config-aligner-2026.insert-item-switch", "category": "openHAB Config Aligner", "title": "Insert Switch Item" }, { - "command": "oh-alignment-tool-2026.insert-item-dimmer", + "command": "openhab-config-aligner-2026.insert-item-dimmer", "category": "openHAB Config Aligner", "title": "Insert Dimmer Item" }, { - "command": "oh-alignment-tool-2026.insert-item-string", + "command": "openhab-config-aligner-2026.insert-item-string", "category": "openHAB Config Aligner", "title": "Insert String Item" }, { - "command": "oh-alignment-tool-2026.insert-item-number", + "command": "openhab-config-aligner-2026.insert-item-number", "category": "openHAB Config Aligner", "title": "Insert Number Item" }, { - "command": "oh-alignment-tool-2026.insert-item-datetime", + "command": "openhab-config-aligner-2026.insert-item-datetime", "category": "openHAB Config Aligner", "title": "Insert DateTime Item" }, { - "command": "oh-alignment-tool-2026.whatsNew", + "command": "openhab-config-aligner-2026.whatsNew", "title": "%extension.commands.whatsNew.title%", "category": "%extension.commands.category.bookmarks%" }, { - "command": "_oh-alignment-tool-2026.whatsNewContextMenu", + "command": "_openhab-config-aligner-2026.whatsNewContextMenu", "title": "%extension.commands.whatsNewContextMenu.title%" } ], @@ -79,17 +79,17 @@ "type": "object", "title": "openHAB Config Aligner 2026", "properties": { - "oh-alignment-tool-2026.preserveWhitespace": { + "openhab-config-aligner-2026.preserveWhitespace": { "type": "boolean", "default": false, "description": "Preserves any leading whitespace when reformatting an item." }, - "oh-alignment-tool-2026.newLineAfterItem": { + "openhab-config-aligner-2026.newLineAfterItem": { "type": "boolean", "default": false, "description": "Choose if you want to have a new line inserted after each item." }, - "oh-alignment-tool-2026.formatStyle": { + "openhab-config-aligner-2026.formatStyle": { "type": "string", "default": "Column", "enum": [ @@ -103,12 +103,12 @@ "Formats the files in a multiline-style. E.g. in an items file each part of an item is written in a new line." ] }, - "oh-alignment-tool-2026.minimumIndentAmount": { + "openhab-config-aligner-2026.minimumIndentAmount": { "type": "number", "default": 4, "description": "Minimum separation of thing or item parts." }, - "oh-alignment-tool-2026.enableBetaFeatures": { + "openhab-config-aligner-2026.enableBetaFeatures": { "type": "boolean", "default": false, "description": "Enable beta features like sitemap formatting or thing file formatting." diff --git a/src/extension.ts b/src/extension.ts index 46a3acc..6cbed9a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -79,7 +79,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push( vscode.languages.registerDocumentFormattingEditProvider("openhab", { provideDocumentFormattingEdits: (document, options, token) => { - let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); + let config = vscode.workspace.getConfiguration("openhab-config-aligner-2026"); // Check the file type, clean the file and format it if (document.fileName.includes(".sitemap")) { return config.enableBetaFeatures ? formatSitemapFile() : undefined; @@ -105,27 +105,27 @@ export function activate(context: vscode.ExtensionContext) { ); // Insert a generic item - vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-generic", () => { + vscode.commands.registerCommand("openhab-config-aligner-2026.insert-item-generic", () => { commandInsertNewGenericItem(); }); // Insert a Switch item - vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-switch", () => { + vscode.commands.registerCommand("openhab-config-aligner-2026.insert-item-switch", () => { commandInsertNewSwitchItem(); }); // Insert a Dimmer item - vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-dimmer", () => { + vscode.commands.registerCommand("openhab-config-aligner-2026.insert-item-dimmer", () => { commandInsertNewDimmerItem(); }); // Insert a String item - vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-string", () => { + vscode.commands.registerCommand("openhab-config-aligner-2026.insert-item-string", () => { commandInsertNewStringItem(); }); // Insert a Number item - vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-number", () => { + vscode.commands.registerCommand("openhab-config-aligner-2026.insert-item-number", () => { commandInsertNewNumberItem(); }); // Insert a DateTime item - vscode.commands.registerCommand("oh-alignment-tool-2026.insert-item-datetime", () => { + vscode.commands.registerCommand("openhab-config-aligner-2026.insert-item-datetime", () => { commandInsertNewDateTimeItem(); }); @@ -276,7 +276,7 @@ function formatItemFile(range?: vscode.Range): vscode.TextEdit[] { var itemBlockCounter = 0; // Get the format configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); + let config = vscode.workspace.getConfiguration("openhab-config-aligner-2026"); let preserveWhitespace = config.preserveWhitespace; let newLineAfterItem = config.newLineAfterItem; @@ -570,7 +570,7 @@ function formatThingFile(range?: vscode.Range): vscode.TextEdit[] { let channelPending = false; // Get the format configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); + let config = vscode.workspace.getConfiguration("openhab-config-aligner-2026"); let preserveWhitespace = config.preserveWhitespace; let newLineAfterItem = config.newLineAfterItem; @@ -832,7 +832,7 @@ function insertItem(type: string, name: string, label: string, icon: string, gro */ function formatItem(item: Item): string { // Get the configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); + let config = vscode.workspace.getConfiguration("openhab-config-aligner-2026"); let formatStyle = item.formatOption ? item.formatOption : config.formatStyle; let newLineAfterItem = config.newLineAfterItem; let editor = vscode.window.activeTextEditor; @@ -972,7 +972,7 @@ function formatItem(item: Item): string { */ function formatThing(thing: Thing): string { // Get the configuration settings - let config = vscode.workspace.getConfiguration("oh-alignment-tool-2026"); + let config = vscode.workspace.getConfiguration("openhab-config-aligner-2026"); let formatStyle = config.formatStyle; let newLineAfterItem = config.newLineAfterItem; let multilineIndentAmount = config.multilineIndentAmount; @@ -1029,8 +1029,8 @@ function formatThing(thing: Thing): string { *---------------------------------------------------------------------------------------------------------*/ function registerWhatsNew(context: vscode.ExtensionContext) { const provider = new BookmarksContentProvider(); - const viewer = new WhatsNewManager(context).registerContentProvider("ManuelMiethe", "oh-alignment-tool-2026", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); + const viewer = new WhatsNewManager(context).registerContentProvider("ManuelMiethe", "openhab-config-aligner-2026", provider).registerSocialMediaProvider(new BookmarksSocialMediaProvider()).registerSponsorProvider(new BookmarksSponsorProvider()); viewer.showPageInActivation(); - context.subscriptions.push(commands.registerCommand("oh-alignment-tool-2026.whatsNew", () => viewer.showPage())); - context.subscriptions.push(commands.registerCommand("_oh-alignment-tool-2026.whatsNewContextMenu", () => viewer.showPage())); + context.subscriptions.push(commands.registerCommand("openhab-config-aligner-2026.whatsNew", () => viewer.showPage())); + context.subscriptions.push(commands.registerCommand("_openhab-config-aligner-2026.whatsNewContextMenu", () => viewer.showPage())); } From e3df0f02a8a72fe74ee509209ed640a91b26b3e2 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 23:07:00 +0200 Subject: [PATCH 13/17] Update support links --- .github/FUNDING.yml | 6 ++++-- README.md | 8 ++++++-- src/contentProvider.ts | 10 +++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 5872608..6a0274f 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,4 @@ -ko_fi: maxbec -custom: ["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url"] +github: mannemiethe +custom: + - "https://www.buymeacoffee.com/mannemiethe" + - "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url" # Original developer: Maximilian Beckenbauer diff --git a/README.md b/README.md index 88eb659..3a0ff5b 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,13 @@ This extension adds support for formatting and indenting [openHAB](http://www.openhab.org) files like `*.items`, `*.sitemap`, etc. At the moment only `*.items` and `*.sitemap` files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types and other format-types will be added. Feel free to add feature-requests on the github repository. -If you've found the extension helpful or useful, then please consider throwing a coffee my way to help support my work. As i am a student and would like to invest more time and effort in this project this would really help me. +If this maintained fork helps you, please consider supporting the ongoing maintenance: -- [PayPal Donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url) +- [Buy Manuel Miethe a coffee](https://www.buymeacoffee.com/mannemiethe) + +If you want to thank the original developer as well: + +- [PayPal donation for Maximilian Beckenbauer, the original developer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url) ## Features diff --git a/src/contentProvider.ts b/src/contentProvider.ts index 6070459..33c0a82 100644 --- a/src/contentProvider.ts +++ b/src/contentProvider.ts @@ -63,14 +63,14 @@ export class BookmarksContentProvider implements ContentProvider { public provideSupportChannels(): SupportChannel[] { const supportChannels: SupportChannel[] = []; supportChannels.push({ - title: "Get me a coffee on Ko-Fi", - link: "https://ko-fi.com/C0C01XTXB", - message: "Buy me a coffe :)", + title: "Buy Manuel Miethe a coffee", + link: "https://www.buymeacoffee.com/mannemiethe", + message: "Support ongoing maintenance", }); supportChannels.push({ - title: "Donate via PayPal", + title: "PayPal donation for the original developer", link: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url", - message: "Donate via PayPal", + message: "Support Maximilian Beckenbauer, the original developer", }); return supportChannels; } From fa45d234879ae000d25a18e5049dd87cfac31945 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 23:10:28 +0200 Subject: [PATCH 14/17] Document fixed formatting bugs in README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3a0ff5b..a686a1d 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,12 @@ If you want to thank the original developer as well: - [PayPal donation for Maximilian Beckenbauer, the original developer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url) +## Maintained Fork / Fixed Bug + +This 2026 maintained fork includes the upstream fixes and adds a fix for item channel binding configurations where curly braces inside quoted strings could break formatting. Example affected cases are channel parameters that contain JSON-like values or text with `{...}` inside quotes. + +It also corrects space-based column padding when `editor.insertSpaces` is enabled, so aligned columns stay consistent with the configured tab size. + ## Features The tool is available as a standard Visual-Studio-Code formatter as it uses the original vsc formatter API. You can force to formatting with right-clicking the document and clicking `Format Document...` or `Format Selection...`. If you have enabled the function in the vsc settings it even can From b71200e5298c163cb3303bc6fc8fcde338708525 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 23:32:58 +0200 Subject: [PATCH 15/17] Bump marketplace package to 2.1.9 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0da6065..1d637bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # openHAB Config Aligner 2026 Change Log +## [2.1.9] - 01.05.2026 + +- Updated Marketplace package identity to `ManuelMiethe.openhab-config-aligner-2026`. +- Renamed install-facing settings and command IDs to `openhab-config-aligner-2026.*`. +- Added README notes for the maintained fork, fixed formatting bugs, and support links. + + ## [2.1.8] - 01.05.2026 - First community-maintained release after the original project went quiet in 2021. diff --git a/package-lock.json b/package-lock.json index c9f330e..69fbd42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openhab-config-aligner-2026", - "version": "2.1.8", + "version": "2.1.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openhab-config-aligner-2026", - "version": "2.1.8", + "version": "2.1.9", "license": "EPL-2.0", "dependencies": { "semver": "^7.3.5" diff --git a/package.json b/package.json index de796c6..b6e09e8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "openhab-config-aligner-2026", "displayName": "openHAB Config Aligner 2026", - "version": "2.1.8", + "version": "2.1.9", "publisher": "ManuelMiethe", "contributors": [ "Manuel Miethe", From 38f928c429546796d0cc933fd404cd4bcc605110 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 23:41:33 +0200 Subject: [PATCH 16/17] Update whats new for 2.1.9 --- src/contentProvider.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/contentProvider.ts b/src/contentProvider.ts index 33c0a82..ad0ed73 100644 --- a/src/contentProvider.ts +++ b/src/contentProvider.ts @@ -21,6 +21,28 @@ export class BookmarksContentProvider implements ContentProvider { public provideChangeLog(): ChangeLogItem[] { const changeLog: ChangeLogItem[] = []; + changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: "2.1.9", releaseDate: "May 2026" } }); + changeLog.push({ + kind: ChangeLogKind.FIXED, + detail: "Fixed formatting for item channel binding configurations where curly braces inside quoted strings could break alignment.", + }); + changeLog.push({ + kind: ChangeLogKind.FIXED, + detail: "Fixed space-based column padding when editor.insertSpaces is enabled, keeping aligned columns consistent with the configured tab size.", + }); + changeLog.push({ + kind: ChangeLogKind.CHANGED, + detail: "This maintained fork is published as openHAB Config Aligner 2026 under ManuelMiethe.openhab-config-aligner-2026.", + }); + changeLog.push({ + kind: ChangeLogKind.CHANGED, + detail: "Support ongoing maintenance: Buy Manuel Miethe a coffee at https://www.buymeacoffee.com/mannemiethe", + }); + changeLog.push({ + kind: ChangeLogKind.CHANGED, + detail: "Original developer support: PayPal donation for Maximilian Beckenbauer is still linked in the README and support section.", + }); + changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: "2.1.0", releaseDate: "April 2021" } }); changeLog.push({ kind: ChangeLogKind.FIXED, From d771360a261ac6708fdd8fc0a8174d0dbe6e7461 Mon Sep 17 00:00:00 2001 From: mannemiethebot Date: Fri, 1 May 2026 23:44:42 +0200 Subject: [PATCH 17/17] Promote support links in marketplace overview --- CHANGELOG.md | 6 ++++++ README.md | 13 ++++++++----- package-lock.json | 4 ++-- package.json | 7 +++++-- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d637bf..0b79f1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # openHAB Config Aligner 2026 Change Log +## [2.1.10] - 01.05.2026 + +- Moved support and original-author credit links to the top of the Marketplace README overview. +- Added extension sponsor metadata pointing to Manuel Miethe's Buy Me a Coffee page. + + ## [2.1.9] - 01.05.2026 - Updated Marketplace package identity to `ManuelMiethe.openhab-config-aligner-2026`. diff --git a/README.md b/README.md index a686a1d..46a73e4 100644 --- a/README.md +++ b/README.md @@ -7,17 +7,20 @@ [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.openhab-config-aligner-2026?color=orange&label=Version)](https://img.shields.io/visual-studio-marketplace/v/ManuelMiethe.openhab-config-aligner-2026?color=orange) [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.openhab-config-aligner-2026?label=Rating&logo=visual-studio-code)](https://img.shields.io/visual-studio-marketplace/stars/ManuelMiethe.openhab-config-aligner-2026?label=Rating&logo=visual-studio-code) - -This extension adds support for formatting and indenting [openHAB](http://www.openhab.org) files like `*.items`, `*.sitemap`, etc. At the moment only `*.items` and `*.sitemap` files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types -and other format-types will be added. Feel free to add feature-requests on the github repository. +## Support & Credits If this maintained fork helps you, please consider supporting the ongoing maintenance: -- [Buy Manuel Miethe a coffee](https://www.buymeacoffee.com/mannemiethe) +- ☕ [Buy Manuel Miethe a coffee](https://www.buymeacoffee.com/mannemiethe) +This extension is a maintained community fork of the original openHAB Alignment Tool by Maximilian Beckenbauer. If you want to thank the original developer as well: -- [PayPal donation for Maximilian Beckenbauer, the original developer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url) +- 💙 [PayPal donation for Maximilian Beckenbauer, the original developer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58GE7PE2EAQAY&source=url) + + +This extension adds support for formatting and indenting [openHAB](http://www.openhab.org) files like `*.items`, `*.sitemap`, etc. At the moment only `*.items` and `*.sitemap` files are supported. They can be formatted in a column channel-column or multiline style. In the future the other file types +and other format-types will be added. Feel free to add feature-requests on the github repository. ## Maintained Fork / Fixed Bug diff --git a/package-lock.json b/package-lock.json index 69fbd42..3ed924b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openhab-config-aligner-2026", - "version": "2.1.9", + "version": "2.1.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openhab-config-aligner-2026", - "version": "2.1.9", + "version": "2.1.10", "license": "EPL-2.0", "dependencies": { "semver": "^7.3.5" diff --git a/package.json b/package.json index b6e09e8..921fdb4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "openhab-config-aligner-2026", "displayName": "openHAB Config Aligner 2026", - "version": "2.1.9", + "version": "2.1.10", "publisher": "ManuelMiethe", "contributors": [ "Manuel Miethe", @@ -146,5 +146,8 @@ "items", "sitemap", "config" - ] + ], + "sponsor": { + "url": "https://www.buymeacoffee.com/mannemiethe" + } }