kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.53k stars 91 forks source link

Use FZF to navigate the drawer #11

Open kristijanhusak opened 4 years ago

kristijanhusak commented 4 years ago

Create a fzf source that would allow navigating the drawer content by filtering through fzf.

glepnir commented 4 years ago

maybe vim-clap is better?

habamax commented 4 years ago

vim-clap is still not very stable on windows unfortunately

tamago324 commented 4 years ago

I think it should be fzf because it's the standard for what to source. If you have a standard, it will be easier to implement in other plugins.

kristijanhusak commented 4 years ago

I'm still trying to wrap my head around it, because drawer has mappings and actions (toggling databases/buffers/tables). Having those actions in fzf is a bit tricky. And only do listing what's currently in a drawer doesn't give too much value.

habamax commented 4 years ago

And only do listing what's currently in a drawer doesn't give too much value.

What about >10000 tables? Or FZF wouldn't help here?

image

glepnir commented 4 years ago

you can scroll on fzf window.

kristijanhusak commented 4 years ago

@habamax currently i'm using / in the drawer to find table which i want. What would you expect to happen if we list table in the fzf, and you select it?

habamax commented 4 years ago

you can scroll on fzf window.

I know, thank you

habamax commented 4 years ago

@habamax currently i'm using / in the drawer to find table which i want. What would you expect to happen if we list table in the fzf, and you select it?

Default action to create buffer with select from table, for example, but I am no sure ;)

hiberabyss commented 2 years ago

It will be useful if could open the saved query files with all things done (e.g. DB connection).

Then the saved query file could be opened via fzf and run the query with correct mappings.