fix: fix file_browser on windows and potentially other file opens (#1026)
This commit is contained in:
@@ -394,9 +394,11 @@ builtin.file_browser({opts}) *builtin.file_browser()*
|
||||
{opts} (table) options to pass to the picker
|
||||
|
||||
Fields: ~
|
||||
{cwd} (string) directory path to browse (default is cwd)
|
||||
{depth} (number) file tree depth to display (default is 1)
|
||||
{dir_icon} (string) change the icon for a directory. default:
|
||||
{cwd} (string) directory path to browse (default is cwd)
|
||||
{depth} (number) file tree depth to display (default is 1)
|
||||
{dir_icon} (string) change the icon for a directory. default:
|
||||
{hidden} (boolean) determines whether to show hidden files or not
|
||||
(default is false)
|
||||
|
||||
|
||||
builtin.treesitter() *builtin.treesitter()*
|
||||
|
||||
@@ -94,7 +94,7 @@ action_set.edit = function(prompt_bufnr, command)
|
||||
|
||||
local filename, row, col
|
||||
|
||||
if entry.filename then
|
||||
if entry.path or entry.filename then
|
||||
filename = entry.path or entry.filename
|
||||
|
||||
-- TODO: Check for off-by-one
|
||||
|
||||
@@ -103,6 +103,7 @@ builtin.fd = builtin.find_files
|
||||
---@field cwd string: directory path to browse (default is cwd)
|
||||
---@field depth number: file tree depth to display (default is 1)
|
||||
---@field dir_icon string: change the icon for a directory. default:
|
||||
---@field hidden boolean: determines whether to show hidden files or not (default is false)
|
||||
builtin.file_browser = require("telescope.builtin.files").file_browser
|
||||
|
||||
--- Lists function names, variables, and other symbols from treesitter queries
|
||||
|
||||
Reference in New Issue
Block a user