From 0ea5512012cef93ea4325e9ee48266cf7abf1edf Mon Sep 17 00:00:00 2001 From: Fabian David Schmidt Date: Wed, 12 Jan 2022 14:35:33 +0100 Subject: [PATCH 1/2] fix!: goto parent dir default key to /b --- README.md | 2 +- lua/telescope/_extensions/file_browser.lua | 4 ++-- lua/telescope/_extensions/file_browser/picker.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 538c5d48..ebf6b1f3 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Note: `path` corresponds to the folder the `file_browser` is currently in. | `/y` | Copy (multi-)selected files/folders to current `path` | | `/d` | Delete (multi-)selected files/folders | | `/o` | Open file/folder with default system application | -| `/g` | Go to parent directory | +| `/b` | Go to parent directory | | `/e` | Go to home directory | | `/w` | Go to current working directory (cwd) | | `/t` | Change nvim's cwd to selected folder/file(parent) | diff --git a/lua/telescope/_extensions/file_browser.lua b/lua/telescope/_extensions/file_browser.lua index 904ff721..0645b955 100644 --- a/lua/telescope/_extensions/file_browser.lua +++ b/lua/telescope/_extensions/file_browser.lua @@ -67,13 +67,13 @@ local pconf = { [""] = fb_actions.copy, [""] = fb_actions.remove, [""] = fb_actions.open, - [""] = fb_actions.goto_parent_dir, [""] = fb_actions.goto_home_dir, [""] = fb_actions.goto_cwd, [""] = fb_actions.change_cwd, [""] = fb_actions.toggle_browser, [""] = fb_actions.toggle_hidden, [""] = fb_actions.toggle_all, + [""] = fb_actions.goto_parent_dir, }, ["n"] = { ["c"] = fb_actions.create, @@ -82,7 +82,7 @@ local pconf = { ["y"] = fb_actions.copy, ["d"] = fb_actions.remove, ["o"] = fb_actions.open, - ["g"] = fb_actions.goto_parent_dir, + ["b"] = fb_actions.goto_parent_dir, ["e"] = fb_actions.goto_home_dir, ["w"] = fb_actions.goto_cwd, ["t"] = fb_actions.change_cwd, diff --git a/lua/telescope/_extensions/file_browser/picker.lua b/lua/telescope/_extensions/file_browser/picker.lua index 37a87eac..96d4a16e 100644 --- a/lua/telescope/_extensions/file_browser/picker.lua +++ b/lua/telescope/_extensions/file_browser/picker.lua @@ -34,7 +34,7 @@ local fb_picker = {} --- - `/y`: Copy (multi-)selected files/folders to current `path` --- - `/d`: Delete (multi-)selected files/folders --- - `/o`: Open file/folder with default system application ---- - `/g`: Go to parent directory +--- - `/b`: Go to parent directory --- - `/e`: Go to home directory --- - `/w`: Go to current working directory (cwd) --- - `/t`: Change nvim's cwd to selected folder/file(parent) From 4f02faa7c8947de06bd60de2f92d8211395772a3 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 12 Jan 2022 13:35:58 +0000 Subject: [PATCH 2/2] [docgen] Update doc/telescope-file-browser.txt skip-checks: true --- doc/telescope-file-browser.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/telescope-file-browser.txt b/doc/telescope-file-browser.txt index 4ffd9688..cd1e4c47 100644 --- a/doc/telescope-file-browser.txt +++ b/doc/telescope-file-browser.txt @@ -61,7 +61,7 @@ fb_picker.file_browser({opts}) *fb_picker.file_browser()* - `/y`: Copy (multi-)selected files/folders to current `path` - `/d`: Delete (multi-)selected files/folders - `/o`: Open file/folder with default system application - - `/g`: Go to parent directory + - `/b`: Go to parent directory - `/e`: Go to home directory - `/w`: Go to current working directory (cwd) - `/t`: Change nvim's cwd to selected folder/file(parent)