Björn Linse
1fe0b329fe
api/ui: win_viewport event for visible range and cursor position in window
2020-04-01 19:43:55 +02:00
Björn Linse
b51ba122c1
screen: use dedicated message grid
...
add proper msg_set_pos event, delet win_scroll_over_*
make compositor click through unfocusable grids
add MsgArea attribute for the message/cmdline area, and add docs and tests
2019-09-01 15:55:10 +02:00
Björn Linse
3397b8c51a
ui: use Window type in win_pos consistently with win_float_pos
...
Also check invalid positional arguments to screen:expect()
2019-08-17 20:52:08 +02:00
Björn Linse
857b29bdd8
highlight: expose builtin highlight groups using hl_group_set event
2019-07-14 13:26:40 +02:00
Björn Linse
be8ebba325
Allow using internal popupmenu or ext_popupmenu for wildmenu
...
Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor
position), and will allow further expansion (info about items).
2019-03-16 19:53:21 +01:00
Björn Linse
9a1675b065
floats: implement floating windows
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com >
2019-03-02 16:29:50 +01:00
Björn Linse
51fc54325c
ui: implement ext_messages
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com >
2019-02-10 13:36:46 +01:00
Björn Linse
69bdc4f072
ui/compositor: add redraws needed due to intersected doublewidth chars.
2019-02-02 16:31:49 +01:00
Björn Linse
31cbd34d97
UI: add "compositor" layer to merge grids for TUI use in a correct way
...
Initially we will use this for the popupmenu, floating windows will
follow soon
NB: writedelay + compositor is weird, we need more flexible
redraw introspection.
2019-02-02 16:31:49 +01:00
Björn Linse
c778c2e107
multigrid: API version bump
2018-12-31 16:24:07 +01:00
Björn Linse
db14d78e4f
multigrid: rename event to win_pos, make grid first
2018-12-31 12:44:22 +01:00
Björn Linse
f6f8f0ee76
multigrid: add msg_scroll_start and msg_scroll_reset events
2018-12-31 12:44:22 +01:00
Björn Linse
c3e2e40e02
multigrid: send win_hide events when changing tabpage
2018-12-31 12:44:22 +01:00
Björn Linse
16c3337122
multigrid: use grid-based coordinates for ext_popupmenu
2018-12-31 12:44:22 +01:00
Utkarsh Maheshwari
d5754eae02
multigrid: Add win_position event
...
Throttle win_position events
2018-12-31 12:44:22 +01:00
Utkarsh Maheshwari
f102f50ebe
multigrid: Change screen_* functions to grid_* functions
2018-12-31 12:44:21 +01:00
Björn Linse
bcab880bb6
api/ui: verify compatibility of UI events
2018-10-21 20:36:52 +02:00
Björn Linse
43823acae2
ui: rename ext_newgrid to ext_linegrid
2018-10-01 21:24:15 +02:00
Björn Linse
1adb01c120
ui: use line-based rather than char-based updates in screen.c
...
Add ext_newgrid and ext_hlstate extensions. These use predefined
highlights and line-segment based updates, for efficiency and
simplicity.. The ext_hlstate extension in addition allows semantic
identification of builtin and syntax highlights.
Reimplement the old char-based updates in the remote UI layer, for
compatibility. For the moment, this is still the default. The bulitin
TUI uses the new line-based protocol.
cmdline uses curwin cursor position when ext_cmdline is active.
2018-07-21 13:21:58 +02:00
Björn Linse
b8331e1a1c
tui: handle termguicolors rgb value in bridge for now
...
When/if TUI/bridge teardown is refactored to use events, this
commit can be reverted.
2018-06-02 17:44:48 +02:00
Björn Linse
c8189096e8
ui_events: correct wrong argument order
2018-04-17 19:09:18 +02:00
Björn Linse
5d8da126d0
ui/tui: highlighting refactor
...
Make HlAttr contain highlighting state for both color modes (cterm and rgb).
This allows us to implement termguicolors completely in the TUI.
Simplify some logic duplicated between ui.c and screen.c. Also avoid
some superfluous highlighting reset events.
2018-02-11 10:29:32 +01:00
Björn Linse
34057045be
ui: forward relevant option updates to UIs ( #7520 )
...
also make termguicolors mutable after startup
2017-12-12 18:23:19 +01:00
Justin M. Keyes
b67f58b284
Merge #7454 'ui: ext_wildmenu'
...
closes #6168
ref #5686
2017-10-31 10:45:06 +01:00
Dongdong Zhou
39e83fa7cb
ui: allow external ui to draw wildmenu
...
Co-authored-by: Björn Linse <bjorn.linse@gmail.com >
Updated docs and tests.
2017-10-29 08:18:03 +01:00
Björn Linse
f2aaa4ae8b
ext_cmdline: rename cmdline_char to cmdline_special_char
2017-10-26 20:28:49 +02:00
Björn Linse
a68817f565
ext_cmdline: extend "function" to generic "block" mechanism
2017-10-26 20:28:49 +02:00
Dongdong Zhou
5ad591ef2d
ext_cmdline: lint
2017-10-26 09:35:13 +02:00
Dongdong Zhou
fb389a6b4b
ext_cmdline: added indent
2017-10-26 09:35:13 +02:00
Dongdong Zhou
461ae69824
ext_cmdline: Add function block support
2017-10-26 09:35:13 +02:00
Dongdong Zhou
866dadaf75
ext_cmdline: added cmdline level
...
add cchar_to_string
2017-10-26 09:35:13 +02:00
Dongdong Zhou
ab85999eb7
ext_cmdline: change to use ui_call
2017-10-26 09:35:13 +02:00
Björn Linse
3f553ac0b9
lint: fix indentation of FUNC_ATTR lines
2017-06-03 08:17:22 +02:00
Björn Linse
2d5920ae1a
api: always use prefix FUNC_API, also change NOEVAL to REMOTE_ONLY
2017-05-10 17:37:34 +02:00
Björn Linse
e82cb5de4a
api: add metadata for ui events
2017-05-10 17:36:31 +02:00
Björn Linse
4eb781ce1d
api: use generated events for popupmenu and tabline
2017-05-10 16:14:12 +02:00
Björn Linse
489d10c57c
api: generate ui events
2017-05-10 16:14:10 +02:00