Commit graph

13 commits

Author SHA1 Message Date
Ben Jackson
2615cff97a If there isn't enough vertical space, we get vim errors (not enough room), so don't do that 2021-03-11 21:14:30 +00:00
Ben Jackson
7d2770f3c4 Add vertical (i.e. narrow) layout
This puts the 3 utility windows at the top, horizontally split, with the
code view below.  The terminal window is drawn either vertically split
(if there's room) or horizontally split otherwise.  The output window
remains at tht bottom.

We add equivalent sizing options too, setting some defauts that roughly
work on my macbook pro.

We try to guess the best layout to use. In particular we go into
'narrow' mode if there are not enough horizonal columns to fit the
sidebar, code and at least the minimum terminal size. We also try to
move the terminal to be horizontally spit (i.e. vertically stacked) if
we can fit the max number of lines, but only the min number of columns.

This is all a little heuristic, but when testing it myself, it feels
good and tends to pick a good option by default. Users can always
customise the ui mode (g:vimspector_ui_mode and all the various specific
width options)
2021-03-10 23:44:45 +00:00
Ben Jackson
3c7311e33a Test that the commands are fired when stepping through and continuing 2021-02-21 20:49:56 +00:00
przepompownia
bcf4120ba4 Do not send event after leave buffer. 2021-02-21 19:17:09 +00:00
__
840ee09242 Send an event before leave buffer in window 2021-02-21 19:17:09 +00:00
__
0bb8416e11 Add test 2021-02-21 19:17:09 +00:00
raochsinai
cb0eee180f Correct test function for CustomWinBar in ui.test.vim. 2020-07-25 17:03:04 +08:00
raochsinai
917b737486 Custom text of Winbar buttons. 2020-07-25 16:12:27 +08:00
Ben Jackson
99b582378a Allow ctrl-c to cancel when asked for a variable 2020-07-18 14:39:54 +01:00
Ben Jackson
47ace82364 FixUp: output window should set the global win id 2020-07-18 13:55:00 +01:00
Ben Jackson
80afb153b9 FixUp: Closing the output window causes errors on output 2020-07-18 13:21:17 +01:00
Ben Jackson
97f6dd29a6 Add some tests for expand/collapse variables; todo - fails on gdb/linux 2020-07-16 08:33:49 +01:00
Ben Jackson
727214c599 Add a bunch of tests for the ui customisation 2020-07-16 08:33:49 +01:00