Merge branch 'feat/cwd-sync'

Keep the file manager panel and the shell in the same directory in both
directions, through the shell integration instead of typing commands.
This commit is contained in:
BlackAngelTV committed 2026-11-12 07:32:09 +01:00
commit 13c49c89aa
13 files changed
+546 -10

No files matched your search

+13
View File
@@ -182,6 +182,19 @@ func TestOpenWithSudoOption(t *testing.T) {
}
}
func TestSyncCwdIsOnByDefault(t *testing.T) {
c := NewConfig()
if !c.Sync_cwd {
t.Fatal("the panel must follow the shell by default")
}
if err := c.Parse("sync_cwd", "no"); err != nil {
t.Fatal(err)
}
if c.Sync_cwd {
t.Fatal("sync_cwd = no must keep the two directories independent")
}
}
func TestEditArgs(t *testing.T) {
got := edit_args("/tmp/a.py")
want := []string{"edit-in-kitty", "--type=tab", "/tmp/a.py"}