fix: fix file_browser on windows and potentially other file opens (#1026)

This commit is contained in:
Luke Kershaw
2021-08-03 10:08:42 +01:00
committed by GitHub
parent 5ff6f9ad07
commit f8caad1d6b
3 changed files with 7 additions and 4 deletions

View File

@@ -397,6 +397,8 @@ builtin.file_browser({opts}) *builtin.file_browser()*
{cwd} (string) directory path to browse (default is cwd) {cwd} (string) directory path to browse (default is cwd)
{depth} (number) file tree depth to display (default is 1) {depth} (number) file tree depth to display (default is 1)
{dir_icon} (string) change the icon for a directory. default:  {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()* builtin.treesitter() *builtin.treesitter()*

View File

@@ -94,7 +94,7 @@ action_set.edit = function(prompt_bufnr, command)
local filename, row, col local filename, row, col
if entry.filename then if entry.path or entry.filename then
filename = entry.path or entry.filename filename = entry.path or entry.filename
-- TODO: Check for off-by-one -- TODO: Check for off-by-one

View File

@@ -103,6 +103,7 @@ builtin.fd = builtin.find_files
---@field cwd string: directory path to browse (default is cwd) ---@field cwd string: directory path to browse (default is cwd)
---@field depth number: file tree depth to display (default is 1) ---@field depth number: file tree depth to display (default is 1)
---@field dir_icon string: change the icon for a directory. default:  ---@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 builtin.file_browser = require("telescope.builtin.files").file_browser
--- Lists function names, variables, and other symbols from treesitter queries --- Lists function names, variables, and other symbols from treesitter queries