Skip to content

Commit

Permalink
fixup! feat: can use ya emit for more accurate <tab> to file (opt-in)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Dec 8, 2024
1 parent 04c47e1 commit f59bf11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# yazi-fm is the `yazi` executable
crate: yazi-fm
git: https://github.com/sxyazi/yazi
tag: 0.4.0
tag: v0.4.0
# commit:
# # https://github.com/sxyazi/yazi/commit/d72f90356b98
# d72f90356b98
Expand All @@ -47,7 +47,7 @@ jobs:
# yazi-cli is the `ya` command line interface
crate: yazi-cli
git: https://github.com/sxyazi/yazi
tag: 0.4.0
tag: v0.4.0
# commit:
# # https://github.com/sxyazi/yazi/commit/d72f90356b98
# d72f90356b98
Expand Down
8 changes: 2 additions & 6 deletions spec/yazi/keybinding_helpers_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ describe("keybinding_helpers", function()
ya_process = { cwd = "/tmp" },
})

assert
.stub(vim_cmd_stub)
.called_with({ cmd = "cd", args = { "/tmp" } })
assert.stub(vim_cmd_stub).called_with({ cmd = "cd", args = { "/tmp" } })

assert.stub(vim_notify_stub).called_with('cwd changed to "/tmp"')
end
Expand All @@ -168,9 +166,7 @@ describe("keybinding_helpers", function()
},
})

assert
.stub(vim_cmd_stub)
.called_with({ cmd = "cd", args = { "/tmp" } })
assert.stub(vim_cmd_stub).called_with({ cmd = "cd", args = { "/tmp" } })
assert.stub(vim_notify_stub).called_with('cwd changed to "/tmp"')
end)

Expand Down

0 comments on commit f59bf11

Please sign in to comment.