Skip to content

Commit

Permalink
chore/docs: clean up (#315)
Browse files Browse the repository at this point in the history
* chore/docs: clean up

* [docgen] Update doc/telescope-file-browser.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
  • Loading branch information
jamestrew and Github Actions authored Sep 18, 2023
1 parent bbb5c3a commit c3670c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ local fb_actions = require "telescope._extensions.file_browser.actions"
require("telescope").setup {
extensions = {
file_browser = {
-- path
-- cwd
path = vim.loop.cwd()
cwd = vim.loop.cwd()
cwd_to_path = false,
grouped = false,
files = true,
Expand All @@ -105,10 +105,10 @@ require("telescope").setup {
auto_depth = false,
select_buffer = false,
hidden = { file_browser = false, folder_browser = false },
-- respect_gitignore
-- browse_files
-- browse_folders
respect_gitignore = vim.fn.executable "fd" == 1
follow_symlinks = false,
browse_files = require("telescope._extensions.file_browser.finders").browse_files,
browse_folders = require("telescope._extensions.file_browser.finders").browse_folders,
hide_parent_dir = false,
collapse_dirs = false,
prompt_path = false,
Expand Down
12 changes: 7 additions & 5 deletions doc/telescope-file-browser.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ fb_picker.file_browser({opts}) *telescope-file-browser.picker.file_browser()*
List, create, delete, rename, or move files and folders of your cwd.
Notes
- Default keymaps in insert/normal mode:
- `<cr>`: opens the currently selected file, or navigates to the
- `<cr>` : Opens the currently selected file, or navigates to the
currently selected directory
- `/`, `\` : (OS Path separator) When typing filepath, the path separator
will open a directory like `<cr>`.
- `<A-c>/c`: Create file/folder at current `path` (trailing path
separator creates folder)
- `<A-r>/r`: Rename multi-selected files/folders
Expand Down Expand Up @@ -132,8 +134,8 @@ fb_picker.file_browser({opts}) *telescope-file-browser.picker.file_browser()*
finder (default: false, true if
`fd` available)
{follow_symlinks} (boolean) traverse symbolic links, i.e.
files and folders (default: false,
only works with `fd` )
files and folders (default:
false, only works with `fd`)
{browse_files} (function) custom override for the file
browser (default:
|fb_finders.browse_files|)
Expand Down Expand Up @@ -467,8 +469,8 @@ fb_finders.finder({opts}) *telescope-file-browser.finders.finder()*
finder (default: false, true if
`fd` available)
{follow_symlinks} (boolean) traverse symbolic links, i.e.
files and folders (default: false,
only works with `fd`)
files and folders (default:
false, only works with `fd`)
{hide_parent_dir} (boolean) hide `../` in the file browser
(default: false)
{dir_icon} (string) change the icon for a directory
Expand Down
2 changes: 0 additions & 2 deletions lua/telescope/_extensions/file_browser/config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
local fb_actions = require "telescope._extensions.file_browser.actions"
local fb_utils = require "telescope._extensions.file_browser.utils"
local scan = require "plenary.scandir"
local Path = require "plenary.path"

local action_state = require "telescope.actions.state"
Expand Down

0 comments on commit c3670c0

Please sign in to comment.