iron.nvim icon indicating copy to clipboard operation
iron.nvim copied to clipboard

[Feature Request] Allow propotional width panel opening

Open tristone13th opened this issue 3 years ago • 1 comments

When calling require('iron.view').curry.bottom(40), it will start a panel at the bottom with 40 characters height, but we want to make it proportional to the terminal height width, like require('iron.view').curry.bottom(0.5) will open a half-height panel, is this possible?

tristone13th avatar Jul 30 '22 17:07 tristone13th

Hi @tristone13th, This is in the making with the PR I have baking there. I'll make sure to check out for this.

hkupty avatar Jul 31 '22 20:07 hkupty

It should be fixed now. The new API allows for fractions, percentages or functions to allow for even more flexible decision making when opening up the windows :)

Sorry for taking long to merge that, vacations got in the way 😅

hkupty avatar Aug 31 '22 07:08 hkupty

It should be fixed now. The new API allows for fractions, percentages or functions to allow for even more flexible decision making when opening up the windows :)

Sorry for taking long to merge that, vacations got in the way 😅

Great work!

tristone13th avatar Aug 31 '22 07:08 tristone13th