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

bug: Split layout p1 values reversed #100

Open
nikisix opened this issue Oct 24, 2023 · 0 comments
Open

bug: Split layout p1 values reversed #100

nikisix opened this issue Oct 24, 2023 · 0 comments

Comments

@nikisix
Copy link
Contributor

nikisix commented Oct 24, 2023

I have to set p1 to .4 in order to get the file content percentage to .6.
Should be an easy fix. I might take a look at fixing later if I have time.

Example below:

" ###### Split layout
" ```vim
" You can define a custom split layout as a dictionary, the default is:
let g:jukit_layout = {
    \'split': 'horizontal',
    \'p1': 0.4,
    \'val': [
        \'file_content',
        \{
            \'split': 'vertical',
            \'p1': 0.4,
            \'val': ['output', 'output_history']
        \}
    \]
\}

" this results in the following split layout:
"  ______________________________________
" |                      |               |
" |                      |               |
" |                      |               |
" |                      |               |
" |                      |     output    |
" |                      |               |
" |                      |               |
" |    file_content      |               |
" |                      |_______________|
" |                      |               |
" |                      |               |
" |                      | output_history|
" |                      |               |
" |                      |               |
" |______________________|_______________|
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

1 participant