Alexander Courtis
Alexander Courtis
The callback needs to be a lua function. `:help nvim-tree-mappings` Something like this to set your sort then refresh the tree: ```lua { key = "T", action = "sort_by_time", action_cb...
> ```lua > sort_by = vim.g.my_sort_by, > ``` You need to set `sort_by` to your function, not your own state variable. Complete working example to run with `nvim -nu ~/nvt-min.lua`...
> 2\. Whenever I press `T` I get: `sorters.node_comparator_modification_time` is not API. It relies on extra information present in the node that is not available to `sort_by`. > At the...
~~You can reach in and get the all the nodes:~~ ~~local log = require "nvim-tree.log"~~ ~~local core = require "nvim-tree.core"~~ ~~log.line("dev", "all nodes %s", vim.inspect(core.get_explorer().nodes))~~ ~~`git_status` contains the first two...
Events are useful, however it does seem that the ability to fetch all nodes via API would be useful. Idea: API to retrieve a sanitised / cloned map of all...
API added. Please update to latest and try out: ```lua vim.inspect(require("nvim-tree.api").tree.get_nodes()) ``` This isn't set in stone; we can add to this.
Tracking at - #2255
> I've squashed your commits and added a few fixes/style tweaks in a separate commit myself rather than bothering you with another round of review and more delay. Thank you....
Builds are [currently failing](https://builds.sr.ht/~emersion/job/665607) as they are not using the mirror branch of wlroots. Is it possible to direct CI to use that branch? Or do we simply wait until...
> I guess missing bit still is > > > For the release workflow to work, someone with a LuaRocks account will have to add their API key to this...