From e861b8ca05b80ff073bce9a6d27f159dcccd364e Mon Sep 17 00:00:00 2001 From: Fabian David Schmidt Date: Sun, 19 Nov 2023 11:42:11 +0100 Subject: [PATCH] chore: prepare fork --- README.md | 25 +++++++++++++++++++ .../_extensions/file_browser/config.lua | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6dc91e43..69d9540b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,28 @@ +# Important Notice + +This fork has been my personal daily driver for a year. Use at your own risk. I do not plan to fix non-critical bugs or add features I do not need. + +This is a personal fork grown out of a highly requested tree view for [telescope-file-browser.nvim](https://github.com/nvim-telescope/telescope-file-browser.nvim). This branch will not get merged into the `master` branch of `telescope-file-browser.nvim`, since the backend, albeit with large overlap, is a different plugin. Sort of like `nvim` to `vim`. + +You probably want this configuration (in extensions setup of `telescope.nvim`) + +```lua +file_browser = { + grouped = true, + initial_browser = "tree", + -- searching activates a `telescope.find_files` like finder + -- you can use this to enter directories and remove ( move, copy) files to + -- selected dir (or selected dir of file) etc. + auto_depth = true, + depth = 1, +}, +``` + +# Differences from `telescope-file-browser.nvim` + +- Defaults to a `tree` view +- No distinction between `file` and `folder` browser. You can create your own browser (undocumented) + # telescope-file-browser.nvim `telescope-file-browser.nvim` is a file browser extension for telescope.nvim. It supports synchronized creation, deletion, renaming, and moving of files and folders powered by [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) and [plenary.nvim](https://github.com/nvim-lua/plenary.nvim). diff --git a/lua/telescope/_extensions/file_browser/config.lua b/lua/telescope/_extensions/file_browser/config.lua index 62c2159d..3332c01c 100644 --- a/lua/telescope/_extensions/file_browser/config.lua +++ b/lua/telescope/_extensions/file_browser/config.lua @@ -33,7 +33,8 @@ _TelescopeFileBrowserConfig = { return string.format("depth=%s / %s / %s / %s", depth, ww, xx, yy) end end, - browser_opts = {}, + initial_browser = "tree", + grouped = true, mappings = { ["i"] = { [""] = fb_actions.create,