hadronized / mind.nvim

The power of trees at your fingertips.
Other
688 stars 42 forks source link

[Suggestion] Add confirmation for creating files via <CR> #58

Open Maverun opened 2 years ago

Maverun commented 2 years ago

With you can create the file if it doesn't have one, or open a URL if there is one, which is nice However, amount of time I accidentally press when I meant to press or (my super key is next to and used for WM outside of nvim)

I think there should be "confirm" to create files, similar to delete

I think this can be used as an option for users who wants it enabled.

Or at least mapping to delete files but keep node(so it doesn't mess with children etc)?

idanarye commented 2 years ago

Rather than "confirm", I'd rather see a vim.ui.select call for the type of node (textfile, URL, or whatever other node types will be added in the future). If the vim.ui.select is cancelled so is the <Cr>.