Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use vim.ui.input for rename and create #1097

Merged
merged 2 commits into from
Mar 22, 2022
Merged

feat: Use vim.ui.input for rename and create #1097

merged 2 commits into from
Mar 22, 2022

Conversation

baahrens
Copy link
Collaborator

No description provided.

Copy link
Member

@kyazdani42 kyazdani42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

@kyazdani42 kyazdani42 merged commit 7b0ebf8 into nvim-tree:master Mar 22, 2022
require("nvim-tree.actions.reloaders").reload_explorer()
local input_opts = { prompt = "Rename to", default = abs_path }

vim.ui.input(input_opts, function(new_file_path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants