From bc5ac5984a703281c943664f71d0c7b1080d0171 Mon Sep 17 00:00:00 2001 From: "ADA (OpenClaw Agent)" Date: Tue, 22 Sep 2026 16:43:44 +0200 Subject: [PATCH] feat: open new tab from empty tab bar --- CHANGELOG.md | 10 +++++++++- package-lock.json | 4 ++-- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/i18n.ts | 1 + src/tabs.ts | 13 +++++++++---- 8 files changed, 25 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a307146..90194d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,13 @@ and the project uses [Semantic Versioning](https://semver.org/). - Automatic updates — the updater plugin and keys must be bundled, so this has to be decided before the first release that should support it +## [0.6.2] — 2026-09-22 + +### Added +- **Double-clicking the empty area beside the open tabs creates a new tab.** + It uses the same action as `Ctrl+T` and the plus button, while double-clicking + an existing tab continues to rename it. + ## [0.6.1] — 2026-09-22 ### Fixed @@ -980,7 +987,8 @@ Erste Veröffentlichung. - Builds sind unsigniert, SmartScreen warnt beim ersten Start - Sinnvolle Dateigrösse bei rund 25 MB gedeckelt -[Unveröffentlicht]: https://github.com/jli-software/Rui/compare/v0.6.1...HEAD +[Unveröffentlicht]: https://github.com/jli-software/Rui/compare/v0.6.2...HEAD +[0.6.2]: https://github.com/jli-software/Rui/compare/v0.6.1...v0.6.2 [0.6.1]: https://github.com/jli-software/Rui/compare/v0.6.0...v0.6.1 [0.6.0]: https://github.com/jli-software/Rui/compare/v0.5.4...v0.6.0 [0.5.4]: https://github.com/jli-software/Rui/compare/v0.5.3...v0.5.4 diff --git a/package-lock.json b/package-lock.json index 5b96adb..aff0328 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rui", - "version": "0.6.1", + "version": "0.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rui", - "version": "0.6.1", + "version": "0.6.2", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "^6.20.3", diff --git a/package.json b/package.json index 1af9e4e..44b8994 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "rui", "private": true, - "version": "0.6.1", + "version": "0.6.2", "description": "A lean text editor for snippets and notes", "license": "MIT", "author": "Jonas Gaiching", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 068992b..392b2fa 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3108,7 +3108,7 @@ dependencies = [ [[package]] name = "rui" -version = "0.6.1" +version = "0.6.2" dependencies = [ "chardetng", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 29804c4..f685ec3 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rui" -version = "0.6.1" +version = "0.6.2" description = "A lean text editor for snippets and notes" authors = ["Jonas Gaiching"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index da2d0f2..4d66a07 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Rui", - "version": "0.6.1", + "version": "0.6.2", "identifier": "ch.gaiching.rui", "build": { "beforeDevCommand": "npm run dev", diff --git a/src/i18n.ts b/src/i18n.ts index 3c9d5f2..d1471b7 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -141,6 +141,7 @@ const translations: Record = { "Ungespeichert": "Unsaved", "Datei umbenennen": "Rename file", "Doppelklick benennt um": "Double-click to rename", + "Doppelklick öffnet neuen Tab": "Double-click to open a new tab", "Klick kopiert den Pfad": "Click to copy the path", "Noch nicht gespeichert — Strg+S gibt der Notiz einen Namen": "Not saved yet — Ctrl+S gives the note a name", diff --git a/src/tabs.ts b/src/tabs.ts index de19759..2b168bf 100644 --- a/src/tabs.ts +++ b/src/tabs.ts @@ -96,14 +96,18 @@ export class TabBar { else this.actions.onSelect(id); }); - // Doppelklick benennt um — der Griff, den Dateimanager und die - // Editoren daneben alle kennen. Der erste Klick hat den Reiter dabei - // schon aktiviert, es wird also immer der bearbeitet, den man sieht. + // Doppelklick auf einen Reiter benennt ihn um; im freien Bereich öffnet + // er einen neuen Reiter, wie in Notepad++. Der erste Klick auf einen + // bestehenden Reiter hat ihn dabei schon aktiviert, es wird also immer + // der bearbeitet, den man sieht. this.list.addEventListener("dblclick", (event) => { if ((event.target as HTMLElement).closest(".tab-close")) return; const id = this.idFrom(event.target); - if (id === null) return; event.preventDefault(); + if (id === null) { + this.actions.onNew(); + return; + } this.startRename(id); }); @@ -229,6 +233,7 @@ export class TabBar { private draw(tabs: Tab[], activeId: number) { this.root.hidden = tabs.length < 2; + this.list.title = tr("Doppelklick öffnet neuen Tab"); this.list.innerHTML = ""; for (const tab of tabs) {