aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/git/GitModule.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 11:19:09 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 11:19:09 +0200
commit80c9d85f2bc45ce8991c4fb17cbb2739bbdcdad0 (patch)
tree57231052ce12809d0522ba07711e23f6e97ed964 /desktop/modules/git/GitModule.qml
parent31a6293e982e212ea5136659dcccce271fe37be1 (diff)
downloadquickshell-80c9d85f2bc45ce8991c4fb17cbb2739bbdcdad0.tar.gz
quickshell-80c9d85f2bc45ce8991c4fb17cbb2739bbdcdad0.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/git/GitModule.qml')
-rw-r--r--desktop/modules/git/GitModule.qml32
1 files changed, 32 insertions, 0 deletions
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. <danix@danix.xyz>
+//
+// 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 }
+ }
+ }
+}