diff --git a/README.md b/README.md index 606cbb2..fd15360 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ require("oil").setup({ ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", - ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory" }, + ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory", mode = "n" }, ["gs"] = "actions.change_sort", ["gx"] = "actions.open_external", ["g."] = "actions.toggle_hidden", diff --git a/doc/oil.txt b/doc/oil.txt index 4364ebb..2c1a107 100644 --- a/doc/oil.txt +++ b/doc/oil.txt @@ -86,7 +86,7 @@ CONFIG *oil-confi ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", - ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory" }, + ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory", mode = "n" }, ["gs"] = "actions.change_sort", ["gx"] = "actions.open_external", ["g."] = "actions.toggle_hidden", diff --git a/lua/oil/config.lua b/lua/oil/config.lua index e3fcc10..065dbbf 100644 --- a/lua/oil/config.lua +++ b/lua/oil/config.lua @@ -71,7 +71,7 @@ local default_config = { ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", - ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory" }, + ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory", mode = "n" }, ["gs"] = "actions.change_sort", ["gx"] = "actions.open_external", ["g."] = "actions.toggle_hidden",