Skip to content

feature request: open_external uses explorer.exe instead of wslview #273

Closed
@vunhatchuong

Description

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

Right now get_open_cmd(path) uses wslview to open file in external editor, which is really slow and require user to download a package from external PPA. WSL has builtin way to open which is much faster using: explorer.exe

Provide background

wslview requires external PPA and slower than builtin explorer.exe way.

What is the significance of this feature?

nice to have

Additional details

In lua/oil/actions.lua you can change this function on line 178:

local function get_open_cmd(path)
                   ....
  elseif vim.fn.executable("wslview") == 1 then
    return { "wslview", path }
                   ....

Into

local function get_open_cmd(path)
                   ....
  elseif vim.fn.executable("explorer.exe") == 1 then
    return { "explorer.exe", path }
                   ....

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions