stevearc / oil.nvim

Neovim file explorer: edit your filesystem like a buffer
MIT License
3.84k stars 110 forks source link

feature request: open current working directory in macos Finder #309

Closed timsofteng closed 7 months ago

timsofteng commented 7 months ago

Did you check existing requests?

Describe the feature

It would be cool to have an ability to open current working directory in default gui FM like Finder on macos.

Provide background

No response

What is the significance of this feature?

strongly desired

Additional details

No response

kevinm6 commented 7 months ago

@timsofteng Just open Oil and with the cursor on a directory press gx that should mapped by default to open.external action

stevearc commented 7 months ago

@kevinm6 has a great suggestion You can also create a mapping to do this. Something like

require("oil").setup({
  keymaps = {
    ["<leader>o"] = "<CMD>exec '!open ' . expand('%:p')[6:]<CR>",
  }
})