From 80c9d85f2bc45ce8991c4fb17cbb2739bbdcdad0 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 16 Oct 2026 11:19:09 +0200 Subject: feat(git): the global git config page Every global value as a row under its section, in file order: Enter saves, Escape undoes, Remove drops that one value, and an Add row takes section.key and a value. Each write goes through gitcfg and is followed by a fresh list, so a row shows what git holds; a failure shows git's reason under its row. "Edit in editor" opens ~/.gitconfig in Sublime Text. No tile: up is "user", so back returns to the user page it opens from. Co-Authored-By: Claude Sonnet 5.5 --- desktop/modules/git/GitModule.qml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 desktop/modules/git/GitModule.qml (limited to 'desktop/modules/git/GitModule.qml') diff --git a/desktop/modules/git/GitModule.qml b/desktop/modules/git/GitModule.qml new file mode 100644 index 0000000..7b1cecf --- /dev/null +++ b/desktop/modules/git/GitModule.qml @@ -0,0 +1,32 @@ +// Copyright (C) 2026 Danilo M. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +import QtQuick +import "../.." + +// The global git config. No tile: the user page's Git section opens it, and +// back returns there. +Module { + id: gm + name: "git" + label: "Git config" + // nf-dev-git, present in Inconsolata Nerd Font. + icon: "" + tiled: false + up: "user" + + page: Component { + Page { + title: "Git config" + GitPage { width: parent.width; owner: gm } + } + } +} -- cgit v1.2.3