folke / edgy.nvim

Easily create and manage predefined window layouts, bringing a new edge to your workflow
Apache License 2.0
822 stars 16 forks source link

feature: set layout for window /tab page #109

Open Ajaymamtora opened 1 month ago

Ajaymamtora commented 1 month ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

It would be handy to activate edgy for the current tabpage with a different layout to the one passed to setup.

E.g. open a git tab page where Diffview is opened and and git log is open in another pinned view.

Describe the solution you'd like

Be able to set the layout for vim.api.nvim_get_current_tabpage().

This way you can have an independent layout from the default.

it could be a new method that you pass left,right etc the same was as the setup function

Describe alternatives you've considered

I don’t think there’s another way to pin tabs in a different layout to the main one.

Additional context

Could easily be useful in other contexts.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Ajaymamtora commented 2 weeks ago

.

rocket-engineer commented 1 week ago

@Ajaymamtora Do you know edgy-group.nvim?

Ajaymamtora commented 1 week ago

Thanks that mostly does the job but I couldnt figure out how to load a specific group on demand through a keymap/lua -- also i couldnt get it to integrate with tabby.nvim so can only action the statusline icons

rocket-engineer commented 1 week ago

Yeah, I'm also not completely satisfied with the result, but maybe you can ask the maintainer for improvements. I have for example the same problem with loading specific groups. Currently, I'm using EdgyGroupSelect, but I also prefer a keymap for this task (and switching multiple groups at once). Switching to tabby.nvim is on my ToDo list.