Skip to content

fix(run-command): handle current directory node #1046

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

Merged
merged 1 commit into from
Mar 4, 2022
Merged

fix(run-command): handle current directory node #1046

merged 1 commit into from
Mar 4, 2022

Conversation

Gelio
Copy link
Contributor

@Gelio Gelio commented Mar 4, 2022

Handle the node representing the current directory (the topmost node in the nvim-tree window). That node does not have the absolute_path set. Use TreeExplorer.cwd instead, similar to the logic in change-dir.

Bug reproduction

  1. :NvimTreeOpen
  2. gg
  3. .

Before:

image

After:

image

Handle the node representing the current directory (the topmost node in
the nvim-tree window). That node does not have the `absolute_path` set.
Use `TreeExplorer.cwd` instead, similar to the logic in `change-dir`.
@kyazdani42 kyazdani42 merged commit ac858a2 into nvim-tree:master Mar 4, 2022
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
Handle the node representing the current directory (the topmost node in
the nvim-tree window). That node does not have the `absolute_path` set.
Use `TreeExplorer.cwd` instead, similar to the logic in `change-dir`.
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.

2 participants