Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: goto parent dir default key to <C-b>/b #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Note: `path` corresponds to the folder the `file_browser` is currently in.
| `<A-y>/y` | Copy (multi-)selected files/folders to current `path` |
| `<A-d>/d` | Delete (multi-)selected files/folders |
| `<C-o>/o` | Open file/folder with default system application |
| `<C-g>/g` | Go to parent directory |
| `<C-b>/b` | Go to parent directory |
| `<C-e>/e` | Go to home directory |
| `<C-w>/w` | Go to current working directory (cwd) |
| `<C-t>/t` | Change nvim's cwd to selected folder/file(parent) |
Expand Down
2 changes: 1 addition & 1 deletion doc/telescope-file-browser.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fb_picker.file_browser({opts}) *fb_picker.file_browser()*
- `<A-y>/y`: Copy (multi-)selected files/folders to current `path`
- `<A-d>/d`: Delete (multi-)selected files/folders
- `<C-o>/o`: Open file/folder with default system application
- `<C-g>/g`: Go to parent directory
- `<C-b>/b`: Go to parent directory
- `<C-e>/e`: Go to home directory
- `<C-w>/w`: Go to current working directory (cwd)
- `<C-t>/t`: Change nvim's cwd to selected folder/file(parent)
Expand Down
4 changes: 2 additions & 2 deletions lua/telescope/_extensions/file_browser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ local pconf = {
["<A-y>"] = fb_actions.copy,
["<A-d>"] = fb_actions.remove,
["<C-o>"] = fb_actions.open,
["<C-g>"] = fb_actions.goto_parent_dir,
["<C-e>"] = fb_actions.goto_home_dir,
["<C-w>"] = fb_actions.goto_cwd,
["<C-t>"] = fb_actions.change_cwd,
["<C-f>"] = fb_actions.toggle_browser,
["<C-h>"] = fb_actions.toggle_hidden,
["<C-s>"] = fb_actions.toggle_all,
["<C-b>"] = fb_actions.goto_parent_dir,
},
["n"] = {
["c"] = fb_actions.create,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/file_browser/picker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local fb_picker = {}
--- - `<A-y>/y`: Copy (multi-)selected files/folders to current `path`
--- - `<A-d>/d`: Delete (multi-)selected files/folders
--- - `<C-o>/o`: Open file/folder with default system application
--- - `<C-g>/g`: Go to parent directory
--- - `<C-b>/b`: Go to parent directory
--- - `<C-e>/e`: Go to home directory
--- - `<C-w>/w`: Go to current working directory (cwd)
--- - `<C-t>/t`: Change nvim's cwd to selected folder/file(parent)
Expand Down