Skip to content

fix(#3327): pass nvim_tree.api.node.open.Opts to all applicable nvim_tree.api.node.open function#3329

Merged
alex-courtis merged 5 commits into
masterfrom
3327
May 15, 2026
Merged

fix(#3327): pass nvim_tree.api.node.open.Opts to all applicable nvim_tree.api.node.open function#3329
alex-courtis merged 5 commits into
masterfrom
3327

Conversation

@alex-courtis
Copy link
Copy Markdown
Member

@alex-courtis alex-courtis commented May 14, 2026

fixes #3327

Scope of changes: #3327 (comment)

-- Parameter naming conventions:
-- `e` explorer
-- `n` node
-- `o` opts
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We ran out of horizontal space, hence compressed the names.


local mode_unsupported_focus = mode == "drop" or mode == "tab_drop" or mode == "edit_in_place"
local focus = edit_opts.focus == nil or edit_opts.focus == true
local focus = edit_opts.focus == nil or edit_opts.focus == false
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was incorrect. Fixed to match doc.

@alex-courtis alex-courtis marked this pull request as ready for review May 14, 2026 01:38
@alex-courtis alex-courtis requested a review from simonmandlik May 14, 2026 01:38
Copy link
Copy Markdown
Collaborator

@simonmandlik simonmandlik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you :)

Comment thread doc/nvim-tree-lua.txt
|:drop|

Parameters: ~
• {node} (`nvim_tree.api.Node?`) directory or file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why no quit_on_open and focus here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It looks like we had some logical or eventing problems with (tab_)drop and decided to exclude them.

#3054 (comment)

@alex-courtis alex-courtis merged commit 07f541f into master May 15, 2026
5 checks passed
@alex-courtis alex-courtis deleted the 3327 branch May 15, 2026 22:49
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.

api.node.open Functions Missing opts Param

2 participants