Fenrir can now create aliases for application overrides and put them in your clipboard.

This commit is contained in:
Storm Dragon committed 2026-10-28 22:59:13 -04:00
1 parent 7df1fa3ecb
commit 7d82105d1d
15 files changed
+594 -114

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
package app
import (
"strings"
"git.stormux.org/storm/fenrir/internal/control"
)
// Runs after the command authorization and enablement gates.
func (a *application) remote_application(parameter string, request control.Request) {
id := strings.ToLower(strings.TrimSpace(parameter))
switch id {
case "default", "networkmanager", "ninjam", "rogue", "codex":
default:
remote_reply(request.Reply, "APPLICATION requires one ID: default, networkmanager, ninjam, rogue, codex")
return
}
if a.saver.busy || a.speechPending || a.overrideTransition {
remote_reply(request.Reply, "Settings are busy; try again after the current operation")
return
}
if a.lastTerminal == 0 || !a.lastActive {
remote_reply(request.Reply, "No active terminal for application selection")
return
}
a.select_override_result(id, func(response string) { remote_reply(request.Reply, response) })
}