goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.84k stars 109 forks source link

show cmd output in floating window #50

Closed danielnehrig closed 1 year ago

danielnehrig commented 2 years ago

dashboard.nvim has the ability to cat files and put the output as a floating term on the dashboard screen would be cool if we could have it here as well it also allows for piping into lolcat etc see: https://github.com/danielnehrig/nvim/blob/71d05338354edf3b8f1b8cc30fdec77ad74b5e60/lua/plugins/dashboard/init.lua

goolord commented 2 years ago

yeah this is easily doable i think, mostly adding another entry to layout_element and keymaps_element and making sure the geometry is correct, should be a pretty small change

ben-hansske commented 2 years ago

I would like to give this a try.

danielnehrig commented 2 years ago

@ben-hansske looking forward

olimorris commented 2 years ago

Hey all. Has anyone actively worked on a pull request for this? Recent changes in dashboard.nvim make it look quite simple

goolord commented 2 years ago

there exists a pr at https://github.com/goolord/alpha-nvim/pull/63, it's less simple for alpha since we're trying to get the window to change positions when there is a redraw. you can use this branch, the alpha api is extensible, if you are really so inclined it would probably be simple to add dashboard's terminal preview : )

goolord commented 1 year ago

"terminal" type added here https://github.com/goolord/alpha-nvim/pull/124