Skip to content

Conversation

@alex-courtis
Copy link
Member

fixes #2830

@alex-courtis
Copy link
Member Author

Your review would be most gratefully appreciated @raaymax

I've invited you to the project for easier PRs and issue management.

return function(node, ...)
node = node or lib.get_node_at_cursor()
fn(node, ...)
return fn(node, ...)
Copy link
Member Author

Choose a reason for hiding this comment

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

existing bug

return explorer[explorer_member][member_method](explorer[explorer_member], ...)
end
end)
end
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't the final state, but will allow for easier class creation.

---@return HighlightedString[]|nil icons
function DecoratorBookmarks:calculate_icons(node)
if marks.get_mark(node) then
if core.get_explorer() and core.get_explorer().marks:get_mark(node) then
Copy link
Member Author

Choose a reason for hiding this comment

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

Impractical to access Explorer at this point.

if explorer then
for _, node in pairs(explorer.marks:get_marks()) do
status.bookmarks[node.absolute_path] = node.type
end
Copy link
Member Author

Choose a reason for hiding this comment

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

Impractical to access Explorer at this point.

Copy link
Collaborator

@raaymax raaymax left a comment

Choose a reason for hiding this comment

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

Seen, applied changes to my PR. Seems legit to me.

@alex-courtis
Copy link
Member Author

Seen, applied changes to my PR. Seems legit to me.

Many thanks, I'll let you go first - you're making all the progress.

@alex-courtis
Copy link
Member Author

Pushing this one through; it's been soaking for a week and won't interfere with the other 2 WIP.

@alex-courtis alex-courtis merged commit 4e396b2 into master Jul 21, 2024
@alex-courtis alex-courtis deleted the 2830-multi-instance-refactor-nvim-tree-marks branch July 21, 2024 06:12
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.

Multi Instance: Refactor: nvim-tree.marks

3 participants