feat: «Здесь» from a machine's terminal opens the file pane in the terminal's folder (asked of the agent); Аккаунт › Вид can turn «Здесь» back to the home folder. Version 0.2.1

This commit is contained in:
redtea committed 2026-10-16 18:28:15 +03:00
1 parent 57c2f1338f
commit 087eabf3b4
12 files changed
+163 -6

No files matched your search

+6
View File
@@ -173,6 +173,7 @@ const (
TaskDBAdd = "db.add" // add a row
TaskDBDel = "db.del" // delete rows by their keys
TaskDBSQL = "db.sql" // run a statement typed in the panel
TaskTermCwd = "term.cwd" // the folder a terminal is in now (TermCwdArgs); result {path}
TaskSSHFSOpen = "sshfs.open" // connect to an SSH host for a file pane; result {id, home}
TaskSSHFSClose = "sshfs.close" // drop that connection
TaskSSHFSOp = "sshfs.op" // a file operation on the host: list, read, write, mkdir, delete, deltree, move, copy, stat, chmod
@@ -401,3 +402,8 @@ type ShipProgress struct {
Files int `json:"files"`
Note string `json:"note,omitempty"` // what is going on: connecting, signing in
}
// TermCwdArgs names the terminal session whose folder the panel asks for.
type TermCwdArgs struct {
Session string `json:"session"`
}