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:
13 files changed
+546
-10
No files matched your search
@@ -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"}
|
||||
|
||||
Reference in new issue
Block a user