Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure the size/location of floating panes before opening them #1778

Open
Integralist opened this issue Oct 5, 2022 · 13 comments
Open

Configure the size/location of floating panes before opening them #1778

Integralist opened this issue Oct 5, 2022 · 13 comments

Comments

@Integralist
Copy link

I love opening up a preview pane, but it's just a bit too small for my use cases, and so being able to configure the dimensions would be super helpful.

Thanks! Loving Zellij, thank you for sharing ❤️

@raphCode
Copy link
Contributor

raphCode commented Oct 5, 2022

Hey, thanks for contributing :)

What do you mean by the preview pane / What do you do to open it?

@Integralist
Copy link
Author

👋🏻

This is what I'm referring to when I say "preview pane"...

Screenshot 2022-10-05 at 16 10 29

I typically run tests in the preview window, just as a single example, and typically the height is just small enough to force me to have to scroll every time to see stuff outside of the current viewport size.

Considering my main monitor is so large, I have vertical and horizontal real-estate I can eat into, and so being able to configure it to be like 20% bigger either all around (top/right/bottom/left) or just top/bottom would be amazing and would greatly improve my quality of life as the need to have to scroll to see content in the preview pane can be quite tedious 🙊 (like I say I nearly always have to scrollback to see stuff).

@imsnif
Copy link
Member

imsnif commented Oct 5, 2022

You can increase the size of floating panes just like you increase the size of other panes. Try alt + or alt - for example

@Integralist
Copy link
Author

AHHH!!!!! Thanks @imsnif 🙂 that worked great.

@SimonMonecke
Copy link

Sorry, but I have to ask again because I am not completely happy with the answer.
The problem is that it is very annoying to manually enlarge the window again and again.
I open the floating pane with zellij run.
So it would be nice if there would be a parameter for zellij run or there would be a default value in the configuration.

Or is my workflow wrong? Whenever I want to commit, for example, I run zellij run --floating -- gitui

@imsnif
Copy link
Member

imsnif commented Oct 26, 2022

Your workflow is not wrong @SimonMonecke - and I definitely want to allow the size and location of floating panes to be configured (both from the CLI with zellij run and from the layouts), but right now it's not possible.

What I would suggest for your flow is to keep the floating pane open and then toggle its visibility with ctrl+p + w. Then you only have to enlarge it the first time.

I'm reopening this issue and renaming it to reflect this.

@imsnif imsnif reopened this Oct 26, 2022
@imsnif imsnif changed the title Is it possible to configure the size of the preview pane? Configure the size/location of floating panes before opening them Oct 26, 2022
@raphCode
Copy link
Contributor

I would like to suggest that we could configure a pane_template in some layout file which can be referenced in a zellij run command.
Then, often used commands can be saved there as well as the size and appearance of the pane it will open in.

@sebastiancarlos
Copy link

sebastiancarlos commented Apr 23, 2023

I agree that this would be a very nice feature. A configuration could re-use the x, y, width, height values of floating panes on layouts.

@YuFei29
Copy link

YuFei29 commented Jun 17, 2023

Your workflow is not wrong @SimonMonecke - and I definitely want to allow the size and location of floating panes to be configured (both from the CLI with zellij run and from the layouts), but right now it's not possible.

What I would suggest for your flow is to keep the floating pane open and then toggle its visibility with ctrl+p + w. Then you only have to enlarge it the first time.

I'm reopening this issue and renaming it to reflect this.

I have a similar requirement. I wonder what prevents us to implement it

@aldanor
Copy link

aldanor commented Nov 28, 2023

I agree that this would be a very nice feature. A configuration could re-use the x, y, width, height values of floating panes on layouts.

Usually, even huge monitors are ultra-wide and not ultra-high, so the main problem is height which is too precious of a space to chop it into thirds for floating windows.

Even if there was a single config option like default_floating_height = "85%", this could already be a humongous win.

@aadi58002
Copy link

aadi58002 commented Jan 19, 2024

Are there any updates regarding this feature request? I would also like this feature to be implemented.

(Thanks for the great work and effort. I love using zellij and the pleasant experience it provides)

@janbiasi
Copy link

janbiasi commented Jan 27, 2024

Just came across this issue having the same problem; not being able to configure floating pane sizes for custom keybindings is a big bummer when transitioning from tmux (I'm used to running lazygit in a floating pane).

I was quite surprised that this issue's still open, have there been any alternative ways to achieve this?

@smsossah
Copy link

Yes this would definitely be a nice feature add to have the ability to resize and position the panes as desired by default prior to opening zellij (in my case I wanted each floating window to appear at the top right of my screen since I am constantly moving it to that location when running unit tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants