-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
WindowSelector.txt
67 lines (50 loc) · 2.42 KB
/
WindowSelector.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
*Vital/App/WindowSelector.txt* Interface to visually select window
Author : Alisue <lambdalisue@hashnote.net>
=============================================================================
CONTENTS *Vital.App.WindowSelector-content*
INTRODUCTION |Vital.App.WindowSelector-introduction|
USAGE |Vital.App.WindowSelector-usage|
INTERFACE |Vital.App.WindowSelector-interface|
FUNCTION |Vital.App.WindowSelector-function|
=============================================================================
INTRODUCTION *Vital.App.WindowSelector-introduction*
*Vital.App.WindowSelector* is a |Vital| module used to add an interface to
select window visually.
=============================================================================
USAGE *Vital.App.WindowSelector-usage*
Call |Vital.App.WindowSelector.select()| with a |List| of window numbers like:
>
let cancelled = s:WindowSelector.select(range(1, winnr('$')))
<
Then the focus has moved to the selected window or {cancelled} is 1 if user
has cancelled.
=============================================================================
INTERFACE *Vital.App.WindowSelector-interface*
-----------------------------------------------------------------------------
FUNCTION *Vital.App.WindowSelector-function*
*Vital.App.WindowSelector.select()*
.select({ws}[, {options}])
Open an interface to select window from a window number |List| {ws}.
It moves the focus to the selected window or return 1 when user
cancelled.
The following attributes are available in {options}.
"auto_select" 1 to automatically select window if there is 1
or 0 window exists.
"select_chars" A |List| of |String| used as an window
indicator.
"use_popup" Use popup/float window to select window.
"popup_borderchars" A |List| of |String| used as an border chars of
popup/float window.
The default border chars:
"['╭', '─', '╮', '│', '╯', '─', '╰', '│']"
NOTE: The order of border chars in a popup
window is originally different from a float
window.
Please use the float window border chars
definition, as it is automatically converted
internally to the popup window border chars
definition.
"statusline_hl" A |String| highlight name used for statusline.
"indicator_hl" A |String| highlight name used for indicator.
=============================================================================
vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl