Giter Site home page Giter Site logo

Set popup window height about vim-ultest HOT 5 OPEN

cd-a avatar cd-a commented on August 17, 2024 1
Set popup window height

from vim-ultest.

Comments (5)

rcarriga avatar rcarriga commented on August 17, 2024 1

That's what happens when dealing with long and similar variable names 😅 Please try latest, should be working now

from vim-ultest.

wookayin avatar wookayin commented on August 17, 2024

Relevant lines: autoload/ultest/output.vim, function s:NvimOpenFloat. There is no such options yet and it is simply set to the content height. Some options like max_height should be added.

from vim-ultest.

rcarriga avatar rcarriga commented on August 17, 2024

I've added in config variables to control the window size. Please try the latest commit

                                                   *g:ultest_output_max_width*
Max width of the output window (default: 0)

                                                  *g:ultest_output_max_height*
Max height of the output window (default: 0)

                                                   *g:ultest_output_min_width*
Min width of the output window (default: 0)

                                                  *g:ultest_output_min_height*
Min height of the output window (default: 0)

from vim-ultest.

cd-a avatar cd-a commented on August 17, 2024

@rcarriga Thanks for taking this on, appreciate it.

A few things I noticed:

  1. The default width/height should probably be changed, without any settings it's just 20 wide. But that might also be because of the second point below

Screenshot 2022-02-19 at 10 50 23

  1. The width can not be higher than the height for some reason.
let g:ultest_output_min_width = 70
let g:ultest_output_max_width = 70 
let g:ultest_output_min_height = 10

This results in a 10:10 window
Screenshot 2022-02-19 at 10 59 13

Using the max here for the width has no effect. So the width seems to have the height as the upper boundary

When I set the height to 20 and keep width at 70, it is now 20:20

from vim-ultest.

cd-a avatar cd-a commented on August 17, 2024

Thank you so much, it works now, very cool!

One last thing: Is it possible to adjust the window distance at the bottom?
Screenshot 2022-02-19 at 12 53 09

My commandline is 2 lines high, and above that there is the status line. If I could add 2 extra lines distance then it would not clip. Is that possible?

from vim-ultest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.