fix: only map ~ for normal mode (#484)
Allows to switch character case with ~ (tilde) in visual mode while preserving existing ~ :tcd functionality. Related to [1]. [1]: https://github.com/stevearc/oil.nvim/issues/397 "bug: ~ not respected"
This commit is contained in:
parent
9e6fb844fe
commit
ccab9d5e09
3 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue