PedramNavid / dbtpal

Neovim plugin for dbt
106 stars 11 forks source link

Feature Request: Telescope pickers for upstream and downstream models #34

Open Doekeb opened 2 weeks ago

Doekeb commented 2 weeks ago

Would love to see two more telescope pickers: one for models downstream from the current, and one for models upstream. I guess picker performance #18 is a bit of a prerequisite

cmpadden commented 1 week ago

@Doekeb -

I took a stab at implementing this using the --select=current_model+ and --select=+current_model syntax.

https://github.com/PedramNavid/dbtpal/pull/35

Open to suggestions on the implementation and naming. Here is how I currently configure it:

vim.keymap.set("n", "<leader>dm", require("dbtpal.telescope").dbt_picker)
vim.keymap.set("n", "<leader>dd", require("dbtpal.telescope").dbt_picker_downstream)
vim.keymap.set("n", "<leader>du", require("dbtpal.telescope").dbt_picker_upstream)