From 6576e75eeb7d0a028638748b2009c5eb0eec720f Mon Sep 17 00:00:00 2001 From: Barrett Ruth <62671086+barrettruth@users.noreply.github.com> Date: Fri, 26 Jun 2026 05:17:00 -0500 Subject: feat(dir.lua): global "-" default mapping #40426 --- test/functional/plugin/dir_spec.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/functional/plugin/dir_spec.lua') diff --git a/test/functional/plugin/dir_spec.lua b/test/functional/plugin/dir_spec.lua index de73effd43..5f15d7d692 100644 --- a/test/functional/plugin/dir_spec.lua +++ b/test/functional/plugin/dir_spec.lua @@ -144,6 +144,18 @@ describe('nvim.dir', function() assert_directory(root) end) + it('maps - to open the parent directory of the current file', function() + make_fixture() + n.clear({ args_rm = { '-u' } }) + + edit(file) + feed('-') + poke_eventloop() + + assert_directory(root) + line_of('alpha.txt') + end) + it('uses an absolute buffer name for a relative startup directory argument', function() if t.is_zig_build() then return pending('broken with build.zig relative runtime paths after chdir') -- cgit