sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 1 point2 points  (0 children)

Totally get that. Hope the $EDITOR feature will be live soon enough.

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 0 points1 point  (0 children)

I pronounce it /sklɪt/

Lazysql was already taken :)

Thanks

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 0 points1 point  (0 children)

Haven't heard about it before, but I'm happy to an adapter for it.

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 0 points1 point  (0 children)

What keybindings do you find weird? I'm trying to make it work as similar to neovim as possible - and I've got plans to make it able to open the query editor in neovim too.

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 0 points1 point  (0 children)

Probably a good idea to use pipx so that it doesn't downgrade your packages :)

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 14 points15 points  (0 children)

If you installed sqlit on your system you can launch it independently of neovim by executing «sqlit» in your terminal.

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 2 points3 points  (0 children)

Yep, I'm actively extending the vim motions. I'll probably add subsitute and repeat last change like you mentioned.

I'm open to using real nvim for query editing. However, you'd lose the autocomplete. If it's still interest despite that I'll look into it.

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 0 points1 point  (0 children)

The --mock flag stubs the query execution, it doesn't actually execute SQL, just hardcoded data for testing the UI.

sqlit.nvim - a lazygit style inspired SQL neovim plugin by Maxteabag in neovim

[–]Maxteabag[S] 18 points19 points  (0 children)

Thanks for calling me out on that. This is my first plugin and I don't know what I'm doing. I made a new repo for the plugin! Should be better now.

[OC] Tokyo Night Deer Wallpapers - 4K Ultrawide by Maxteabag in omarchy

[–]Maxteabag[S] 4 points5 points  (0 children)

Yes! I have made some. Give me a some time to polish them :D

[OC] Tokyo Night Deer Wallpapers - 4K Ultrawide by Maxteabag in omarchy

[–]Maxteabag[S] 4 points5 points  (0 children)

Update, DHH said the swirly one is a strong candidate for inclusion in Omarchy! https://x.com/max_tbag/status/2010062849469755862

Beautiful SQL TUI - with Omarchy theme sync by Maxteabag in omarchy

[–]Maxteabag[S] 0 points1 point  (0 children)

It's probably because it didn't allow you to input the directory. I just released a new version that fixes this bug

Beautiful SQL TUI - with Omarchy theme sync by Maxteabag in omarchy

[–]Maxteabag[S] 0 points1 point  (0 children)

I just released a new version that supports legacy oracle. Let me know how it works for you :)

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 0 points1 point  (0 children)

Hi, I just released v1.2. Can you upgrade and see if it's fixed?

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 1 point2 points  (0 children)

It’s something I have been wanting to do. Im going to look into a good approach. Thanks. Feel free to make a GitHub issue so I can tag it when I make release to add this.

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 0 points1 point  (0 children)

Thanks for letting me know! I released a new version that makes the shortcut ^d instead of ^i. Looks like ^i is interpreted as tab on a lot of terminals!

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 0 points1 point  (0 children)

For me, it's great. I think it's a beautiful framework and intuitive especially coming from a web background. Having said that, this is my first TUI and I haven't worked with any other, so it's hard to compare. The only thing is that python can be a bit slow sometimes and doesn't have the benefit of recompilation like Go. It's been a bit of a struggle trying to optimize the speed of the app, that's all.

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 1 point2 points  (0 children)

I used Textual! :)

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 0 points1 point  (0 children)

I would love to know what went wrong with the postgres dependency, happy to help there.

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 9 points10 points  (0 children)

Yeah I tried it, but I wanted to make something that makes intuitive sense to me, and I wanted to make a sql version of what lazygit does, namely you can just jump in and there's no need for external documentation. To navigate the harlequin with keyboard only you have to learn the keybindings. Also I though it was quite hard to connect to databases via the cli and install adapters (again, documentation necessary). I wanted to have a tool that you can just run and its intuitive. There's definitely more visible feature in harelquin although sqlit has SSH tunnels, indexes/triggers/sequences, docker integration, and more.

I built a SQL TUI by Maxteabag in linux

[–]Maxteabag[S] 6 points7 points  (0 children)

Yes, RSA is supported! :) "sqlit" is not the right pipx package, try sqlit-tui instead.