-
|
When i press |
Beta Was this translation helpful? Give feedback.
Answered by
cseickel
Jan 23, 2024
Replies: 1 comment 5 replies
-
tried this but doesnt work, not sure if theres a way to pass file_path to open action? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can update @pysan3's answer to use the utils.open_file method:
{ event = "file_added", handler = function(destination) local manager = require("neo-tree.sources.manager") local utils = require("neo-tree.utils") local uv = vim.loop local file_info = uv.fs_stat(destination) if file_info and file_info.type == "file" then vim.schedule(function() utils.open_file(manager.get_state_for_window(), destination) end) end end, },This is untested but it will probably work...